EmbDev.net

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


von Vincent (Guest)


Rate this post
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 
Build
- 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 ),
so:
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

von pb (Guest)


Rate this post
useful
not useful
Hello,

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.

von Vincent (Guest)


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

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.