Task context information available on crash

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Mar 20 11:55:28 UTC 2018


On 20/03/18 11:49, Matthew J Fletcher wrote:
> Thank you for the advice.
>
> So i can see that the executing task was "TIME", which is the timer 
> server. So the problem is almost certainly a bad function pointer 
> passed as the routine to invoke.
>
> I can place a breakpoint in timerserver.c, but the crash is after 
> several minutes (and many tens of thousands of timer operations).
>
> I think i will have to modify _Timer_server_Body() to copy the timer 
> id to a global variable so i can inspect it after an exception.
>
> Unless there is a better way ?

A more complicated solution might be the RTEMS trace linker:

https://devel.rtems.org/wiki/Developer/Tracing/Trace_Linker

I am not sure if ARMv7-M is supported.

You can also use a hardware tracer if available.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the users mailing list