OpenOCD error messages with ChibiOS detection
Posted: Sat Mar 05, 2016 5:46 am
I'm having problems with the Chibi debug plugin with Preview16. Not seeing any information when I open the Eclipse debug plugin for 3.x.x.
I turned on all Debug options in chconf.h and compiled with -O0. I can step thru the code and use gdb normally but no ChibiOS debug info.
OpenOCD invocation:
-c "telnet_port 4444" -s "C:\ChibiStudio\tools\openocd\scripts" -f "interface/stlink-v2-1.cfg" -f "board/stm32f4discovery.cfg" -c "stm32f4x.cpu configure -rtos ChibiOS"
In the debug messages for openocd I see the error messages:
Info : 2459 40032 ChibiOS.c:202 ChibiOS_update_memory_signature(): Successfully loaded memory map of ChibiOS/RT target running version 3.0.3
Debug: 2460 40032 hla_target.c:752 adapter_read_memory(): adapter_read_memory 0x20000888 4 1
Debug: 2461 40036 target.c:2224 target_read_u32(): address: 0x20000888, value: 0x00000000
Error: 2462 40036 ChibiOS.c:332 ChibiOS_update_threads(): ChibiOS registry integrity check failed, NULL pointer
Info : 2463 40036 ChibiOS.c:355 ChibiOS_update_threads(): Only showing current execution because of a broken ChibiOS thread registry.
Debug: 2464 40037 gdb_server.c:2673 gdb_input_inner(): received packet: 'qSymbol::'
Debug: 2465 40037 gdb_server.c:2673 gdb_input_inner(): received packet: 'qSymbol::726c697374'
Debug: 2466 40037 gdb_server.c:2673 gdb_input_inner(): received packet: 'qSymbol:20000878:6368'
Debug: 2467 40037 gdb_server.c:2673 gdb_input_inner(): received packet: 'qSymbol:8006140:63685f6465627567'
Debug: 2468 40037 gdb_server.c:2673 gdb_input_inner(): received packet: 'qSymbol:8004560:6368537973496e6974'
Debug: 2469 40037 hla_target.c:752 adapter_read_memory(): adapter_read_memory 0x20000888 4 1
Debug: 2470 40040 target.c:2224 target_read_u32(): address: 0x20000888, value: 0x00000000
Error: 2471 40040 ChibiOS.c:332 ChibiOS_update_threads(): ChibiOS registry integrity check failed, NULL pointer
Info : 2472 40040 ChibiOS.c:355 ChibiOS_update_threads(): Only showing current execution because of a broken ChibiOS thread registry.
I turned on all Debug options in chconf.h and compiled with -O0. I can step thru the code and use gdb normally but no ChibiOS debug info.
OpenOCD invocation:
-c "telnet_port 4444" -s "C:\ChibiStudio\tools\openocd\scripts" -f "interface/stlink-v2-1.cfg" -f "board/stm32f4discovery.cfg" -c "stm32f4x.cpu configure -rtos ChibiOS"
In the debug messages for openocd I see the error messages:
Info : 2459 40032 ChibiOS.c:202 ChibiOS_update_memory_signature(): Successfully loaded memory map of ChibiOS/RT target running version 3.0.3
Debug: 2460 40032 hla_target.c:752 adapter_read_memory(): adapter_read_memory 0x20000888 4 1
Debug: 2461 40036 target.c:2224 target_read_u32(): address: 0x20000888, value: 0x00000000
Error: 2462 40036 ChibiOS.c:332 ChibiOS_update_threads(): ChibiOS registry integrity check failed, NULL pointer
Info : 2463 40036 ChibiOS.c:355 ChibiOS_update_threads(): Only showing current execution because of a broken ChibiOS thread registry.
Debug: 2464 40037 gdb_server.c:2673 gdb_input_inner(): received packet: 'qSymbol::'
Debug: 2465 40037 gdb_server.c:2673 gdb_input_inner(): received packet: 'qSymbol::726c697374'
Debug: 2466 40037 gdb_server.c:2673 gdb_input_inner(): received packet: 'qSymbol:20000878:6368'
Debug: 2467 40037 gdb_server.c:2673 gdb_input_inner(): received packet: 'qSymbol:8006140:63685f6465627567'
Debug: 2468 40037 gdb_server.c:2673 gdb_input_inner(): received packet: 'qSymbol:8004560:6368537973496e6974'
Debug: 2469 40037 hla_target.c:752 adapter_read_memory(): adapter_read_memory 0x20000888 4 1
Debug: 2470 40040 target.c:2224 target_read_u32(): address: 0x20000888, value: 0x00000000
Error: 2471 40040 ChibiOS.c:332 ChibiOS_update_threads(): ChibiOS registry integrity check failed, NULL pointer
Info : 2472 40040 ChibiOS.c:355 ChibiOS_update_threads(): Only showing current execution because of a broken ChibiOS thread registry.