Hey Everybody,
I am putting my toe into the pool of ARM-chips.
To cut right to the problem:
I'm trying to program an STM32F100C8T6-chip via JTAG.
In order to make my .HEX file, i decided to follow the instructions for using Eclipse as an IDE.
Ref:
https://sites.google.com/site/stm32discovery/open-source-development-with-the-stm32-discovery/setting-up-eclipse-for-stm32-discovery-developmentThere are many tutorials about using this IDE, but this one is pretty detailed.
I got it to a point where i have everything to compile, but the linker gives errors.
It's about the "stm32_flash.ld" linker file.
During my build i get following error:
c:/program files (x86)/gnu tools arm embedded/4.7 2013q3/bin/../lib/gcc/arm-none-eabi/4.7.4/../../../../arm-none-eabi/bin/ld.exe:E:/Dropbox/Projecten/_Technisch/Eclipse/A0025 - SE - STM32 breakout\startup_src\stm32_flash.ld:79: syntax error
collect2.exe: error: ld returned 1 exit status
The linker flags, and script i am using are the same as the tutorial.
-T "${ProjDirPath}\startup_src\stm32_flash.ld" -mthumb -mcpu=cortex-m3 -mfix-cortex-m3-ldrd -Wl,-Map=linker.map -Wl,-cref -Wl,--gc-sections
The file has 79 lines, so it doesn't specify at which specific point it is getting into trouble, it just gives an error at the end of the file.
Can anyone give me some advice where to look ?
I've read somewhere that the linker complaines when something is declared but not defined.
Maybe i am including a wrong .c-file, but i have no direction to search with this general error.
I already spend 2 weeks into getting this working , so i'm quite desperate.. ;-)
Cheers.