I am affraid it was a stacksize problem.
The stack size check did not lead to a halt, but further playing around and inspecting memory (using fill pattern) made it clear that stack was too limited.
//debug
#define CH_DBG_ENABLE_STACK_CHECK TRUE
To bad that this not lead to a halt in my case ...
Search found 2 matches
- Sun Oct 05, 2014 3:54 pm
- Forum: STM32 Support
- Topic: _unhandled_exception writing to serial
- Replies: 2
- Views: 1780
- Sun Oct 05, 2014 2:28 pm
- Forum: STM32 Support
- Topic: _unhandled_exception writing to serial
- Replies: 2
- Views: 1780
_unhandled_exception writing to serial
I try to debug a hangup when writing to a serial device on a Nucleo F103RB. I am using Chibios V3.
I traced the hangup to the situation where the serial buffer is full, and the OS is going to do a thread switch to Sleep with timeout INFINITE.
The exception occurs (I think) because the current ...
I traced the hangup to the situation where the serial buffer is full, and the OS is going to do a thread switch to Sleep with timeout INFINITE.
The exception occurs (I think) because the current ...