Nucleo-F103RB ST-Link v2.1 problem
Hello
I am trying to run my code on Nucleo-F103RB using System Workbench for STM32. I’ve witnessed, that code builds perfectly, but I can’t go into Run nor Debug - operation result:
Open On-Chip Debugger 0.10.0+dev-00021-g524e8c8 (2019-04-12-08:48)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
srst_only separate srst_nogate srst_open_drain connect_assert_srst
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 8000 kHz
adapter_nsrst_delay: 100
Info : clock speed 8000 kHz
Info : STLINK v2.1 JTAG v36 API v2 M26 VID 0x0483 PID 0x374B
Info : using stlink api v2
Info : Target voltage: 3.241497
Info : Unable to match requested speed 8000 kHz, using 4000 kHz
Info : Stlink adapter speed set to 4000 kHz
Info : STM32F103RBTx.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : Listening on port 3333 for gdb connections
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x0800016c msp: 0x20000660
Info : Unable to match requested speed 8000 kHz, using 4000 kHz
Info : Stlink adapter speed set to 4000 kHz
Info : Unable to match requested speed 8000 kHz, using 4000 kHz
adapter speed: 4000 kHz
- Programming Started **
auto erase enabled
Info : device id = 0x20036410
Info : flash size = 128kbytes
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x2000003a msp: 0x20000660
wrote 4096 bytes from file Debug/zxczxc.elf in 0.269396s (14.848 KiB/s)
- Programming Finished **
- Verify Started **
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x2000002e msp: 0x20000660
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x2000002e msp: 0x20000660
verified 3580 bytes in 0.074799s (46.740 KiB/s)
- Verified OK **
- Resetting Target **
shutdown command invoked
I was curious, if there is a problem with device or with ST IDE, so I tried Keil uVision5 and it works perfectly on Keil. Have you any piece of advice for me? I tried to lower debug frequency, but same error appears every time. BTW - although I can’t go into Run or Debug mode, I am still able to send code to microcontroller via System Workbench.