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 stm32f4xx_discovery

Hello, I'm trying to creating my first application using the MDK-ARM toolchain. I run one of the example files on this soft to blink a led using stm32f4xx_discovery and everything was ok but when I want to create a new project I get this error:

Build target 'Target 1'
compiling main.c...
main.c(5): warning: #1-D: last line of file ends without a newline
linking...
proba.axf: Error: L6218E: Undefined symbol SystemInit (referred from startup_stm32f4xx.o).
Target not created

I don't get this error.

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

Parents
  • As Per says, if the working project contains that same reference to "SystemInit", and doesn't produce the same Linker error, then it must contain a definition of "SystemInit" somewhere - mustn't it?!

    So, as I said originally, search in the working project to find where it defines "SystemInit" - and do likewise in your own!

    Note that uVision has a 'Go To Definition' feature...

Reply
  • As Per says, if the working project contains that same reference to "SystemInit", and doesn't produce the same Linker error, then it must contain a definition of "SystemInit" somewhere - mustn't it?!

    So, as I said originally, search in the working project to find where it defines "SystemInit" - and do likewise in your own!

    Note that uVision has a 'Go To Definition' feature...

Children
  • Hello, I'm trying to creating my first application using the MDK-ARM toolchain. I run one of the example files on this soft to blink a led using stm32f4xx_discovery ...

    You're probably using the Blinky application.

    Have you included the file system_stm32f4xx.c in our new project? Ah, look, there's SystemInit.