cancel
Showing results for 
Search instead for 
Did you mean: 

Eclipse and CodeSourcery ARM Sourcery G++ question

sharethl
Associate II
Posted on October 22, 2011 at 02:19

Hi

I have eclipse 3.6 with GNU ARM C/C++ development support configured.

However, it can generate hex file with warning: cannot find entry symbol Reset_Handler; defaulting to 08000000. Not sure will this effect the hex file.

So I download it to F4discovery board with STM32 ST-LINK utility, reset the board, the program can not run. 

And I program it with hex that from demo project of the board and it works.

The codes I wrote can work in atollic's truestudio.

I convert them to bin file with post-build command.

their size are totally different, it is sure that compile from eclipse has problem

Two files are attached

So I wander that is it due to my C/C++ build configuration errors or something else?

Is there any configure tutorial for cortex m4?

This one works for Cortex M3, but GNU ARM plugin is easier to use.

https://sites.google.com/site/stm32discovery/open-source-development-with-the-stm32-discovery/setting-up-eclipse-for-stm32-discovery-development

Thanks

10 REPLIES 10
leavic
Associate
Posted on October 27, 2011 at 08:32

have you rename the startup_stm32f4xx.s to startup_stm32f4xx.S?

with upper case of the letter 'S' as file extention.

sharethl
Associate II
Posted on October 27, 2011 at 23:43

Hi Qin

It works! Now I cam use Eclipse to debug Discovery.

Really appreciated. 

Anyone want to know how to configure, contact me. sharethl@sina.com

Tom

sharethl
Associate II
Posted on November 06, 2011 at 20:37

I wrote the procedure of setup eclipse for Discovery board.

http://shareee.netne.net/wordpress/?p=5

juozas
Associate III
Posted on November 15, 2011 at 08:38

Dear Tom,

Thank you for a nice description how to configure development system. Ideally for me, my system may reside on Linux Ubuntu. I see that not all components from yours nice description are available for Linux.

Can you share ant ideas about possibility to have a similar system for Open Source development of STM32F4-Discovery on Linux Ubuntu.

glory_man
Associate II
Posted on December 02, 2011 at 16:36

I have another question about Eclipse and CodeSourcery combination.

I have configured eclipse project. When I try to build it I have an error message:

....

c:/programms/development/codesourcery/sourcery g++ lite/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/bin/ld.exe: error: ./STM32F4xx_Source/Templates/TASKING/cstart_thumb2.o: Conflicting CPU architectures 13/0

....

But even with this message binary creation ended successfully - I have working bin-file.

What can I do to remove this error ?
jihlein
Associate II
Posted on December 07, 2011 at 16:26

Do you download TrueSTUDIO Lite, or the 30 day evaluation copy to get the needed files?

Thanks in adavnce,

John

ferrario
Associate III
Posted on January 28, 2012 at 20:30

I have INDIGO set up with codesourcery and up and running for c projects.

I have issues when trying to use either DSP functions or inline assembly.

Apparently the assembly statements are not recognized.

Any hint?

thank you

Fabio

glory_man
Associate II
Posted on January 30, 2012 at 08:53

Did you enter all std libs folders in include section (like cmsis)?

sharethl
Associate II
Posted on March 31, 2012 at 17:09

Hi kimtys

I have trouble to use Ubuntu with my sony laptop, ATI card. 

All solutions online can not help....