flo199213 / Hoverboard-Firmware-Hack-Gen2

Hoverboard Hack Firmware Generation 2 for the Hoverboard with the two Mainboards instead of the Sensorboards (See Readme.md).
GNU General Public License v3.0
150 stars 112 forks source link

No compiling , error in adc #15

Open centiane opened 4 years ago

centiane commented 4 years ago

No compiling ok, this error show, help me, please.

** Using Compiler 'V5.06 update 6 (build 750)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin' Rebuild target 'Target 1' compiling setup.c... Src\setup.c(343): error: #167: argument of type "dma_parameter_struct" is incompatible with parameter of type "dma_parameter_struct " dma_init(DMA_CH0, dma_init_struct_adc); Src\setup.c(365): error: #20: identifier "ADC_EXTTRIG_REGULAR_SWRCST" is undefined adc_external_trigger_source_config(ADC_REGULAR_CHANNEL, ADC_EXTTRIG_REGULAR_SWRCST); Src\setup.c(424): error: #167: argument of type "dma_parameter_struct" is incompatible with parameter of type "dma_parameter_struct " dma_init(DMA_CH4, dma_init_struct_usart); Src\setup.c(480): error: #167: argument of type "dma_parameter_struct" is incompatible with parameter of type "dma_parameter_struct " dma_init(DMA_CH2, dma_init_struct_usart); Src\setup.c: 0 warnings, 4 errors

mmaslyukov commented 3 years ago

No compiling ok, this error show, help me, please.

** Using Compiler 'V5.06 update 6 (build 750)', folder: 'C:\Keil_v5\ARM\ARMCC\Bin' Rebuild target 'Target 1' compiling setup.c... Src\setup.c(343): error: #167: argument of type "dma_parameter_struct" is incompatible with parameter of type "dma_parameter_struct " dma_init(DMA_CH0, dma_init_struct_adc); Src\setup.c(365): error: #20: identifier "ADC_EXTTRIG_REGULAR_SWRCST" is undefined adc_external_trigger_source_config(ADC_REGULAR_CHANNEL, ADC_EXTTRIG_REGULAR_SWRCST); Src\setup.c(424): error: #167: argument of type "dma_parameter_struct" is incompatible with parameter of type "dma_parameter_struct " dma_init(DMA_CH4, dma_init_struct_usart); Src\setup.c(480): error: #167: argument of type "dma_parameter_struct" is incompatible with parameter of type "dma_parameter_struct " dma_init(DMA_CH2, dma_init_struct_usart); Src\setup.c: 0 warnings, 4 errors

Recently tried to compile it, but got the same errors. However after downgrading GigaDevice pack to 3.1.0 and going through steps mentioned in other threads I was able to successfully build it. Here is a brief list of neccessery steps to do

  1. Use GigaDevice.GD32F1x0_DFP.3.1.0.pack, version 3.2.0 will not do
  2. In uVision project settings (C/C++ tab) add "C:\Users\\AppData\Local\Arm\Packs\ARM\CMSIS\5.7.0\CMSIS\Include" to include path
  3. In uVision project settings (Linker tab) set checkbox: "Use Memory Layout form Target Dialog". It is necessary for generation of Hoverboard.sct file
  4. Compile
Dennis-Gee commented 3 years ago

Hello, the GigaDevice.GD32F1x0_DFP.3.1.0.pack is no longer available. could someone compile the two firmwares and upload it somewhere so the project isnt dying?

cfox570 commented 3 years ago

Have you tried running Pack Installer? Select device. Under Pack Device Specific, look for Previous. Or you can get GD32F1x0_Addon_V3.1.0.rar from http://www.gd32mcu.com/en/download/7/p/2 Use the pack installer to downgrade to 3.1.

rokars commented 2 years ago

3.1.0 pack available here https://github.com/gearsincorg/Hoverboard_Utility_Gateway_System

alexismailov2 commented 2 months ago

using 3.1.0 fixed previous problems but. Apeared additional problem .\Objects\Hoverboard.axf: error: L6031U: Could not open scatter description file .\Objects\Hoverboard.sct: No such file or directory Could someone help?