We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi everyone, I have a problem when compiling my program. When Keil Links the program appears some errors that I don't understand. I copy what I get. Thank you!
compiling system_stm32f4xx.c... assembling startup_stm32f427x.s... linking... .\STM324x7I_EVAL\STM324x7I_EVAL.axf: Error: L6218E: Undefined symbol ff_convert (referred from ff.o). .\STM324x7I_EVAL\STM324x7I_EVAL.axf: Error: L6218E: Undefined symbol ff_memalloc (referred from ff.o). .\STM324x7I_EVAL\STM324x7I_EVAL.axf: Error: L6218E: Undefined symbol ff_memfree (referred from ff.o). .\STM324x7I_EVAL\STM324x7I_EVAL.axf: Error: L6218E: Undefined symbol ff_wtoupper (referred from ff.o). .\STM324x7I_EVAL\STM324x7I_EVAL.axf: Error: L6218E: Undefined symbol SD_Detect (referred from diskio.o). .\STM324x7I_EVAL\STM324x7I_EVAL.axf: Error: L6218E: Undefined symbol SD_GetCardInfo (referred from diskio.o). .\STM324x7I_EVAL\STM324x7I_EVAL.axf: Error: L6218E: Undefined symbol SD_GetStatus (referred from diskio.o). .\STM324x7I_EVAL\STM324x7I_EVAL.axf: Error: L6218E: Undefined symbol SD_Init (referred from diskio.o). .\STM324x7I_EVAL\STM324x7I_EVAL.axf: Error: L6218E: Undefined symbol SD_ReadBlock (referred from diskio.o). .\STM324x7I_EVAL\STM324x7I_EVAL.axf: Error: L6218E: Undefined symbol SD_ReadMultiBlocks (referred from diskio.o). .\STM324x7I_EVAL\STM324x7I_EVAL.axf: Error: L6218E: Undefined symbol SD_WaitReadOperation (referred from diskio.o). .\STM324x7I_EVAL\STM324x7I_EVAL.axf: Error: L6218E: Undefined symbol SD_WaitWriteOperation (referred from diskio.o). .\STM324x7I_EVAL\STM324x7I_EVAL.axf: Error: L6218E: Undefined symbol SD_WriteBlock (referred from diskio.o). .\STM324x7I_EVAL\STM324x7I_EVAL.axf: Error: L6218E: Undefined symbol SD_WriteMultiBlocks (referred from diskio.o). .\STM324x7I_EVAL\STM324x7I_EVAL.axf: Error: L6218E: Undefined symbol USBH_MSC_Param (referred from diskio.o). Target not created
The project is missing several source files, you'll need to examine the project, and target/board selection, to see if that impacts which files are pulled in.
Hello and thanks for answering.
But this error appears when Keil try to create the object files (*.o). I have the .c and .h files in my project, and I don't know why Keil not find those files to link them.. :(
I'm using STM32F417IG, and in project options I have selected this device.
Thanks in advance!
Check that you have all the necessary include paths in your project, including the ones for libraries, those are located in "include paths" under the c/c++ tab on options for target.