Trouble with RTOS support in GDB/OpenOCD
Posted: Tue Nov 05, 2013 8:52 am
I've enabled RTOS support in GDB/OpenOCD with the openocd.cfg command:
When I load up the application, the openocd log shows
This is OK, as ChiBiOS has not yet initialized itself.
However, after running to a later breakpoint, where two threads plus the idle thread exist,
when I issue the GDB command:
At this point, the 'g' packet reply errors recur on every interaction with the target until gdb is exited.
I'm running:
gcc version 4.7.4 20130913 (release) [ARM/embedded-4_7-branch revision 202601] (GNU Tools for ARM Embedded Processors)
GNU gdb (GDB) 7.6.50.20131105-cvs
Open On-Chip Debugger 0.8.0-dev-00257-ga3c0f05 (2013-11-04-17:42)
Does anyone have this working?
Code: Select all
$_TARGETNAME configure -rtos auto
When I load up the application, the openocd log shows
Code: Select all
Info : Successfully loaded memory map of ChibiOS/RT target running version 2.6.1
Error: ChibiOS registry integrity check failed, NULL pointer
Info : Only showing current execution because of a broken ChibiOS thread registry.
This is OK, as ChiBiOS has not yet initialized itself.
However, after running to a later breakpoint, where two threads plus the idle thread exist,
when I issue the GDB command:
Code: Select all
(gdb) info thread
[New Thread 536872976]
[New Thread 536873672]
Id Target Id Frame
3 Thread 536873672 (No Name : : WTQUEUE) Remote 'g' packet reply is too long: 00000000000000000000000000000000414700080000000055555555ac0b00205555555555555555555555555555555500000000ac0b002000000000bf1300080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
At this point, the 'g' packet reply errors recur on every interaction with the target until gdb is exited.
I'm running:
gcc version 4.7.4 20130913 (release) [ARM/embedded-4_7-branch revision 202601] (GNU Tools for ARM Embedded Processors)
GNU gdb (GDB) 7.6.50.20131105-cvs
Open On-Chip Debugger 0.8.0-dev-00257-ga3c0f05 (2013-11-04-17:42)
Does anyone have this working?