Question
Error: L6218E: Undefined symbol HAL_ADC_Init (referred from main.o).
Posted on December 25, 2015 at 03:47
Hi,
I got a keil C project and try to add ADC peripheral into this peoject.I do believe this original project was made from STM Cube and did not enable ADC function in the begining.When I just add ADC init function into main.c, error L6218E appears.linking....\Objects\charger_stm32f0.axf: Error: L6218E: Undefined symbol HAL_ADC_ConfigChannel (referred from main.o)..\Objects\charger_stm32f0.axf: Error: L6218E: Undefined symbol HAL_ADC_Init (referred from main.o).Not enough information to list image symbols.Finished: 1 information, 0 warning and 2 error messages.I do include ''stm32f0xx_hal_adc.h'' and ''stm32f0xx_hal_adc_ex.h'' in my project, but what i wonder about is the file version, ''stm32f0xx_hal_adc.h'' is V1.2.0 while ''stm32f0xx_hal_adc.c'' is V1.3.0. This difference could make this compiling error?I develop this project under MDK-ARM V5.15 #!stm32-!cubemx #l6218e