No compiling , error in adc
centiane opened this issue · 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
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
- Use GigaDevice.GD32F1x0_DFP.3.1.0.pack, version 3.2.0 will not do
- 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
- In uVision project settings (Linker tab) set checkbox: "Use Memory Layout form Target Dialog". It is necessary for generation of Hoverboard.sct file
- Compile
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?
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.
3.1.0 pack available here https://github.com/gearsincorg/Hoverboard_Utility_Gateway_System