Error: L6218E: Undefined symbol ...

when I wrote the instance basic timer interrupt,the keil5 occurred errors:..\..\Output\atk_f103.axf: Error: L6218E: Undefined symbol HAL_TIM_Base_Init (referred from btim.o).

It made me nervous,I didn't know why the errors occurred. After checking the errors and searching some information from the internet,I realized the sourse of the errors.I didn't add all the files in this project.Due to the project required the files 'tm32f1xx_hal_tim_ex.c' and 'stm32f1xx_hal_tim.c',it made the errors.So I tried to add the files.

After that,the keil5 still occurred the error:..\..\Output\atk_f103.axf: Error: L6218E: Undefined symbol HAL_TIM_IRQHandle (referred from btim.o).

I found I missed a letter 'r'.It was pretty bad.After I added the letter I missed ,it was ok.

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容