2016-10-19 02:47 PM
Hey guys,
as stated in the title i created a clean STM32 Cube MX Project for my32F429IDISCOVERY
board. However there are lots of missing include errors (Field xxx could not be resolved).
These all occur in the STM32F4xx Hal Driver Libary. my main.c includes [code] /* Includes ------------------------------------------------------------------*/ #include ''stm32f4xx_hal.h'' #include ''cmsis_os.h'' #include ''adc.h'' #include ''crc.h'' #include ''dac.h'' #include ''i2c.h'' #include ''ltdc.h'' #include ''spi.h'' #include ''usart.h'' #include ''usb_device.h'' #include ''gpio.h'' #include ''fmc.h'' [/code] But still i get for ex. a '' __HAL_RCC_PWR_CLK_ENABLE()'' could not be resolved error Am I missing something or why does a clean cube mx project not compile correctly? I'd glad for some hints how to resolve this problem ;)2016-10-19 03:59 PM
Looks like an odd collection of include files, wouldn't these normally pull from the xx_conf.h file?
You are building this with what ? Is the compiler missing some command-line defines?2016-10-20 03:48 AM
Hello,
Which version are you using ?You can share your project to check with you this case.Regards2016-10-21 03:07 PM
Hey guys thx for your replies.
To clarify ;) I'm using OpenSTM Eclipse with GCC Compiler.
I did some checking, the console Shows no Errors, and the elf file is generated although eclipse tells me there are some undefined symbols.
The wired part is: When you open the Project at first eclipse does not Show any Errors.
However once you have opened the main.c (or some HAL Driver files) there are lots of undefined symbols.
I tried cleaning and rebuilding and rebuilding the index but no Change.
Do you have any suggestions how to fix this Problem.
A friend of mine checked my Project as well. Same behaviour, once he opened the main.c undefined Symbol Errors popped up. I'll attach my Project. Maybe you can have a look at it. That would be great
________________ Attachments : giessomat.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I1Ae&d=%2Fa%2F0X0000000bk0%2Fzsf.QkNwejKld9jAC_jQU_9p7B68s95yyZu3KcoDRVk&asPdf=false2016-10-24 06:04 AM
Hello,
I think the Undefined symbol error means that your application does not include object, source or libraries including the related function.You should review the configuration of your project, and the files included and make sure that your project contains all the required library source files.Regards