Forum: ARM programming with GCC/GNU tools Cortex M3 / Codesourcery / Openocd Debugging Problem

Author: Vincent (Guest)
Posted on:

Rate this post
0 useful
not useful
Hi, I have a little Problem with following setup:

- Stellaris LM3S6965Ethernet Eval Kit
- Eclipse Helios with CDT
- Gnu Arm C/C++ development Support for Toolchain selection and manaked 
- gdb hardware debugging
- openOCD 0.4
- Codesourcery Toolchain

At first I imported the code, linkerscript and startup code for the led 
blinking sample and the hello world sample. they worked fine, build 
process as well as debuging.

Next I tried the same thing with the UIP ethernet sample, but this one 
was a lot harder. Build worked, flashing worked, but the debug process 
never hit the main function, it ended in the FaultISR. After a reset ( 
Button on Board ) the code worked ( without Debug ).

After some hours of trial and error the problem seems to be generated by 
the main file of the project. If there is any function definition before 
the main function the debug will jump in the FaultISR ( led blink and 
hello world have no functions before main ),
void donothing( void ) {
int main(void){...}

will flash fine, will run after a reset, but debugging: no chance

On the other hand:

void donothing( void );
int main(void){
void donothing( void ){

will flash and work in debug

I would be grateful for any advice

Author: pb (Guest)
Posted on:

Rate this post
0 useful
not useful

i had a similar problem but with another configuration.
My solution was, to use Eclipse Ganymede and not Eclipse Helios.
This worked for me but i dont know if it will work for you as well.

Author: Vincent (Guest)
Posted on:

Rate this post
0 useful
not useful
tried ganymede today, won't compile with same combination of tools and 
settings :/


Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.