Debugging with STM32
Posted: Fri Aug 14, 2015 9:36 am
Hi!
I'm not sure this is STM32 specific, anyway, I need solution for STM32.
I set breakpoint to chSysHalt function, and when ChibiOS halts for some reason, I can see this and try to find reason for this stop.
But 'reason' variable contains name of calling function only, and I have to find this function, set breakpoint, restart app, trace and try to get real reason for stopping. It is boring anyway and not always I get get same conditions when step-by-step tracing.
As I understand, chDbgCheck/chDbgAssert are receiving 'remark' const char, but not sending it next to chsysHalt function.
Why?
How can I get both __func__ and remark at sysHalt point?
I'm newbiew, and I do not know which parts of which libs I can use and where, so it is will be nice if you will provide me with code example.
Thank you in advance!
I'm not sure this is STM32 specific, anyway, I need solution for STM32.
I set breakpoint to chSysHalt function, and when ChibiOS halts for some reason, I can see this and try to find reason for this stop.
But 'reason' variable contains name of calling function only, and I have to find this function, set breakpoint, restart app, trace and try to get real reason for stopping. It is boring anyway and not always I get get same conditions when step-by-step tracing.
As I understand, chDbgCheck/chDbgAssert are receiving 'remark' const char, but not sending it next to chsysHalt function.
Why?
How can I get both __func__ and remark at sysHalt point?
I'm newbiew, and I do not know which parts of which libs I can use and where, so it is will be nice if you will provide me with code example.
Thank you in advance!