AnsweredAssumed Answered

Error: L6218E: Undefined symbol HAL_ADC_Init (referred from main.o).

Question asked by yo.peter on Dec 25, 2015
Latest reply on Dec 25, 2015 by Clive One
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

Outcomes