Hi all,
I make my first steps on STM32F4-discovery. I want to create my own base project with Keil µVision V5 13.0.0
I created a blank project with some includes but when i want to compile i have these errors :
linking... .\Objects\First_project.axf: Error: L6218E: Undefined symbol EXTI_Init (referred from stm32f4_discovery.o). .\Objects\First_project.axf: Error: L6218E: Undefined symbol GPIO_Init (referred from stm32f4_discovery.o). .\Objects\First_project.axf: Error: L6218E: Undefined symbol GPIO_ReadInputDataBit (referred from stm32f4_discovery.o). .\Objects\First_project.axf: Error: L6218E: Undefined symbol RCC_AHB1PeriphClockCmd (referred from stm32f4_discovery.o). .\Objects\First_project.axf: Error: L6218E: Undefined symbol RCC_APB2PeriphClockCmd (referred from stm32f4_discovery.o). .\Objects\First_project.axf: Error: L6218E: Undefined symbol SYSCFG_EXTILineConfig (referred from stm32f4_discovery.o). .\Objects\First_project.axf: Error: L6218E: Undefined symbol RCC_APB2PeriphResetCmd (referred from stm32f4xx_adc.o).
I down know how to solve it. Someone can help me please ?
Thanks !
Make sure you have the right defines passed to the compiler to use the library.
Add the source files for the library components you're using, so they aren't "undefined"
ie Add stm32f4xx_exti.c, stm32f4xx_gpio.c, stm32f4xx_rcc.c, etc