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