Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No compiling , error in adc #15

Open
centiane opened this issue Aug 31, 2020 · 5 comments
Open

No compiling , error in adc #15

centiane opened this issue Aug 31, 2020 · 5 comments

Comments

@centiane
Copy link

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
Copy link

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

@Dennis-Gee
Copy link

Dennis-Gee commented Jun 8, 2021

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
Copy link

cfox570 commented Jun 8, 2021

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
Copy link

rokars commented Jun 6, 2022

@alexismailov2
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants