Loading...
 
Skip to main content

System Workbench for STM32


Cannot see I/O Registers in Debug mode

Thank you.
If possible, make an option in the Debug menu to disable the hardware reset line and add additional options to the OpenOCD configuration file.
Changing the target file / stm32f1x.cfg file in the mcu.debug plugin does not work.
Now I configured this:
I'm using ChibiOS.

Debug Configuration -> Debuger:
1) OpenOCD Options: -c "reset_config none" -c "$_TARGETNAME configure -rtos ChibiOS"
2) Script: manual script and specifying a device and debug interface

Log OpenOCD:

Open On-Chip Debugger 0.10.0-dev-00275-gd486ac2-dirty (2017-03-06-15:13)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 1000 kHz
srst_only separate srst_nogate srst_open_drain connect_assert_srst
srst_only separate srst_nogate srst_open_drain connect_assert_srst
none separate
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : Unable to match requested speed 1000 kHz, using 950 kHz
Info : clock speed 950 kHz
Info : STLINK v2 JTAG v27 API v2 SWIM v6 VID 0x0483 PID 0x3748
Info : using stlink api v2
Info : Target voltage: 6.475232
Error: BUG: can't assert SRST
Info : STM32F103CBTx.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : accepting 'gdb' connection on tcp/3333
Error: TRST/SRST error
STM32F103CBTx.cpu: target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x08000160 msp: 0x20000400
Info : device id = 0x20036410
Info : flash size = 128kbytes
Info : Successfully loaded memory map of ChibiOS/RT target running version 4.0.0
STM32F103CBTx.cpu: target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x08000160 msp: 0x20000400
STM32F103CBTx.cpu: target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x08000160 msp: 0x20000400
STM32F103CBTx.cpu: target state: halted
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x2000003a msp: 0x20000400
Warn : keep_alive() was not invoked in the 1000ms timelimit. GDB alive packet not sent! (3495). Workaround: increase "set remotetimeout" in GDB
STM32F103CBTx.cpu: target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x08000160 msp: 0x20000400

Under these conditions, debugging will work without connecting a reset pin