Hi,
I'm using a STM32L100RC discovery board for a project. I'm trying to communicate with the USB port (Communication Device Class). After configuring the USB and USB_DEVICE part with STM32CubeMX, I have the following errors on Keil :
".\Objects\Keil_TEST.axf: Error: L6218E: Undefined symbol MX_USB_DEVICE_Init (referred from main.o)..\Objects\Keil_TEST.axf: Error: L6218E: Undefined symbol hpcd_USB_FS (referred from stm32l1xx_it.o).Not enough information to list image symbols.Not enough information to list load addresses in the image map.Finished: 2 information, 0 warning and 2 error messages."
I tried to search for more information but I can't find anything. Does anyone know how to solve this issue?
Thank you in advance,
Jay.
I stil have ".\Objects\Keil_TEST.axf: Error: L6218E: Undefined symbol hpcd_USB_FS (referred from stm32l1xx_it.o)." even after adding "extern PCD_HandleTypeDef hpcd_USB_FS;" in the file stm32l1xx_it.c.
EGGA JIAR said:extern PCD_HandleTypeDef hpcd_USB_FS
Again, that's just a declaration.
The message says it's un-defined - not un-declared - so it's the definition that you need to find.
Again, see http://c-faq.com/decl/decldef.html for the distinction.
This is standard C stuff - not specific to Keil or ARM or STM32;
eg, https://www.avrfreaks.net/comment/2545726#comment-2545726
This is great advice! Very honest and practical. greatpeople
I really enjoyed this post.
Nice post!!