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 :)
Are you sure that SystemInit is the correct name, so it shouldn't be _SystemInit?
C functions gets the _ prefix to make sure that C code names don't collide with assembler symbol names. And internal C library functions have an prefix _ directly in the source code and hence gets a __ prefix in the linking process, to make sure that internal CRTL library functions don't collide with user symbol names.