[En-Nut-Discussion] Debugging threads
Uwe Bonnes
bon at elektron.ikp.physik.tu-darmstadt.de
Thu Jun 28 20:19:02 CEST 2018
>>>>> "Ole" == Ole Reinhardt <ole.reinhardt at embedded-it.de> writes:
Ole> Hi Uwe, I remember we had a similar discussion quite some time
Ole> ago. If I remember correctly, someone just wrote Nut/OS for gdb
Ole> some (long) time ago. But I'm very unsure...
Ole> I think you'd need a tracing solution. If the debugger stops in the
Ole> idle thread you'll quite likely be in the idle thread, which means
Ole> that your code waits for something (for some data on a socket or
Ole> uart, a mutex, a sleep, etc.) an no other thread is runnable.
Ole> So you ideally need to trace back your code path into the past to
Ole> see from where you changed into the idle thread.
Hello Ole,
nice to hear from you again!
In the meantime, I revived and fixed some issues in
http://openocd.zylin.com/#/c/3881/
It works soemhow with on a nucle_l053 and I can see the threads. However
the hand does not happen on L053. On f3 discovery, where th thread hang
happens, OpenOcd has the old problems with halting the target and the thread
list does not make sense. I have to dig deeper.
And maybe I have to activate and understand SWO...
Bye
--
Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 1623569 ------- Fax. 06151 1623305 ---------
More information about the En-Nut-Discussion
mailing list