Microcontroller (AT91SAM7A3) only crashes when not running with gdb

Guest #3174340
Rate this post
• ▲ useful
▼ not useful
Hey guys,

I am debugging some code on a AT91SAM7A3 that shows an odd behaviour: as 
long as it is connected by JTAG and run via gdb, everything works fine. 
If I do a power-on reset without running gdb, it boots up fine, but I 
can make it crash by sending some characters on a USART port (what works 
fine while debugging). The crash is 100% repeatable.

That puts me in a bad position because it's kind of hard to hunt down a 
bug that only shows up when the debugger is not connected.

It's a bare-metal system, the code is C and C++, the compiler is 
gcc/g++.

Has anyone experienced anything like this before?

best regards,
Jan

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.