Random Errors while build file [message #1746969] |
Tue, 08 November 2016 08:11 |
|
Hi,
In the project properties setting, I am using arm-none-eabi-gcc toolchain.
This time toolchain is Ac6 STM32 MCU GCC and builder CDT internal.
Problem is if I add h files in HAL library that error log suggest me to do, it solved and if I build project again it shows the problem in CMSIS include H files.
Such as,
1. C:\STM32_toolchain\common\Drivers\CMSIS\Device\ST\STM32F0xx\Include/stm32f0xx.h:187:3: error: declaration for parameter 'FunctionalState' but no such parameter
} FunctionalState;
^
..\inc\Src\stm32f0xx_hal_flash_ex.c:990:1: error: expected '{' at end of input
}
^
..\inc\Src\stm32f0xx_hal_flash_ex.c:990:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
How to solve it?
|
|
|
|
Re: Random Errors while build file [message #1747053 is a reply to message #1746983] |
Wed, 09 November 2016 00:32 |
|
Dear Sir Devid,
Thank you once again.
Even I worked MCU coding for 2 years, it looks things are going much complex if you want to do something new. Still I am newcomer in this area!
My company gave me a reference code to develop, It has a main file with hundreds of supporting HAL header and c.
APIs, Headers,state machine files are exists in Project branch, but why the compiler showing errors in H files of driver ?
Looking at your C code structure related reason, yes I found some style of C coding in CMSIS h files is different.
I tried to build this file in COOCOX, its fine in errors but build fails due to,
C:\Users\swend95_하산\Desktop\Old_rice_cooker\Source_bak\common\Drivers\CMSIS\Device\ST\STM32F0xx\Source\Templates\gcc does not exist.
It might tell something about s files or directory that I cant solve.
In ecilipse what should I do now?
1. CDT does not showing errors of my main files, there was a return type problem, I solved it.
3. I think compiler is compiling all files listed in project branch , do you want me to remove some of the files from project folder, is it repeating again as I include paths from C driver?
4. Is there any setting for which only compile my c file?
5. Do you believe, updated version of Java/gcc/Eclipse is needed ?
I am using this HAL driver STM32Cube_FW_F0_V1.6.0 downloaded from STM website.
Hope you will give me some good suggestions.
Regards
HASAN
|
|
|
Powered by
FUDForum. Page generated in 0.04906 seconds