Hoverboard-Firmware-Hack-Gen2 icon indicating copy to clipboard operation
Hoverboard-Firmware-Hack-Gen2 copied to clipboard

No compiling , error in adc

Open centiane opened this issue 5 years ago • 5 comments

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

centiane avatar Aug 31 '20 22:08 centiane

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<your_user_name>\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

mmaslyukov avatar Jan 25 '21 08:01 mmaslyukov

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?

Dennis-Gee avatar Jun 08 '21 12:06 Dennis-Gee

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.

cfox570 avatar Jun 08 '21 19:06 cfox570

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

rokars avatar Jun 06 '22 14:06 rokars

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?

alexismailov2 avatar Aug 11 '24 18:08 alexismailov2