Author Topic: STM32F1XX use with Eclipse, Code Sourcery, GNU  (Read 3213 times)

0 Members and 1 Guest are viewing this topic.

Offline RibsterTopic starter

  • Frequent Contributor
  • **
  • Posts: 250
  • Country: be
  • Electronics prototyper. Design. Prototype. Consult
    • Ash Labs
STM32F1XX use with Eclipse, Code Sourcery, GNU
« on: November 10, 2013, 11:01:52 pm »
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-development
There 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:
Code: [Select]
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.
Code: [Select]
-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.
www.ashlabs.be
Design and manufacturing of embedded hard- and software
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: STM32F1XX use with Eclipse, Code Sourcery, GNU
« Reply #1 on: November 10, 2013, 11:18:20 pm »
Quote
I already spend 2 weeks into getting this working , so i'm quite desperate.. ;-)

Check out CoIDE: based on eclipse, with the best project wizard in my view.
================================
https://dannyelectronics.wordpress.com/
 

Offline RibsterTopic starter

  • Frequent Contributor
  • **
  • Posts: 250
  • Country: be
  • Electronics prototyper. Design. Prototype. Consult
    • Ash Labs
Re: STM32F1XX use with Eclipse, Code Sourcery, GNU
« Reply #2 on: November 10, 2013, 11:22:35 pm »
Hey Dannyf,

Thanks for the fast reply.
I've come across CoIDE aswell, but decided to use eclipse. I'll give that one a go.
When you say 'Project wizard', do you mean: Easy to follow wizard who does all the setting up for you  ;D?

Greets
www.ashlabs.be
Design and manufacturing of embedded hard- and software
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: STM32F1XX use with Eclipse, Code Sourcery, GNU
« Reply #3 on: November 10, 2013, 11:30:18 pm »
Quote
but decided to use eclipse.

CoIDE IS eclipse, a customized one.

Project wizard helps you set up the project and gets you going quickly, which seems to be what your issues are at this point.

CoIDE is one of the easiest ARM IDEs I have used, if not the easiest one.
================================
https://dannyelectronics.wordpress.com/
 

Offline RibsterTopic starter

  • Frequent Contributor
  • **
  • Posts: 250
  • Country: be
  • Electronics prototyper. Design. Prototype. Consult
    • Ash Labs
Re: STM32F1XX use with Eclipse, Code Sourcery, GNU
« Reply #4 on: November 11, 2013, 12:00:51 am »
Quote
but decided to use eclipse.

CoIDE IS eclipse, a customized one.

Project wizard helps you set up the project and gets you going quickly, which seems to be what your issues are at this point.

CoIDE is one of the easiest ARM IDEs I have used, if not the easiest one.

This is what i'm talking about.
15 minutes and the LED's on my self-etched board are blinking.
Thanks man, i owe you one!

I guess the topic is closed.
Will be continued.. With a projectpost.. ;-)
www.ashlabs.be
Design and manufacturing of embedded hard- and software
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: STM32F1XX use with Eclipse, Code Sourcery, GNU
« Reply #5 on: November 11, 2013, 01:49:31 am »
Glad that it worked for you.
================================
https://dannyelectronics.wordpress.com/
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf