This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

new project in keil using stm32f10x

hello, I'm trying to get familiar with keil, I run one of the example files on this soft to blink a led using stm32f10x and everything was ok but when I want to create a new project I get this error:

Empty.axf: Error: L6218E: Undefined symbol SystemInit (referred from startup_stm32f10x_md_vl.o).

I get this error even if I dont write any code in main, I also added stm32f10xr.lib to my project but it didn't solve the problem,

does anybody know what the problem is?
thanks in advance :)

Parents
  • Hello mahdiyeh ghazi,

    you must add file system_stm32f10x.c to your project. Copy this file form folder .\Keil\ARM\Startup\ST\STM32F10x to your project folder.

    According CMSIS V2.0 this file is used to set the core clock.

    Best Regards,
    Martin Guenther

Reply
  • Hello mahdiyeh ghazi,

    you must add file system_stm32f10x.c to your project. Copy this file form folder .\Keil\ARM\Startup\ST\STM32F10x to your project folder.

    According CMSIS V2.0 this file is used to set the core clock.

    Best Regards,
    Martin Guenther

Children