2019-06-27 03:35 AM
Hi,
(running Mac OS Mojave 10.14.5)
I can not debug my program, on stlink- gdb I get the following console message:
STMicroelectronics ST-LINK GDB server. Version 5.2.3
Copyright (c) 2019, STMicroelectronics. All rights reserved.
Starting server with the following options:
Persistent Mode : Disabled
LogFile Name : /Users/rankatz/STM32CubeIDE/workspace_1.0.1/Audio detector/Debug/st-link_gdbserver_log.txt
Logging Level : 31
Listen Port Number : 61234
Status Refresh Delay : 15s
Verbose Mode : Enabled
SWD Debug : Enabled
Hardware watchpoint supported by the target
SWD frequency = 4000 kHz
ST-LINK Firmware version : V2J34S25
Device ID: 0x435
PC: 0x8004420
ST-LINK device status: HALT_MODE
ST-LINK detects target voltage = 3.26 V
ST-LINK device status: HALT_MODE
ST-LINK device initialization OK
Waiting for debugger connection...
Waiting for connection on port 61234...
Accepted connection on port 61234...
Debugger connected
Debugger connection lost.
Shutting down...
(log file is attached)
and when trying open OCD I get:
Open On-Chip Debugger 0.10.0+dev-00021-g524e8c8 (2019-06-12-13:24)
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
padded zone erase set to 1
adapter speed: 8000 kHz
adapter_nsrst_delay: 100
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : clock speed 8000 kHz
Info : STLINK v2.1 JTAG v34 API v2 M25 VID 0x0483 PID 0x374B
Info : using stlink api v2
Info : Target voltage: 3.254557
Info : Unable to match requested speed 8000 kHz, using 4000 kHz
Info : Stlink adapter speed set to 4000 kHz
Info : STM32L432KCUx.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : Listening on port 3333 for gdb connections
Info : accepting 'gdb' connection on tcp/3333
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x08004420 msp: 0x200006d0
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
Info : Device id = 0x10016435
Info : STM32L4xx flash size is 256kb, base address is 0x8000000
shutdown command invoked
Also tried re-installing the stlink server and the IDE - got the same results.
What am I doing wrong?
Thanks!
Ran
Solved! Go to Solution.
2019-06-30 01:05 AM
After searching some more onto web, found a workaround that worked for me: erased the flash contents (using the open source stlink's st-flash utility) .
After that I managed to load and debug several times (using st-link GDB server, did not try openOCD).
Hope this helps someone :)
2019-06-27 03:38 AM
2019-06-30 01:05 AM
After searching some more onto web, found a workaround that worked for me: erased the flash contents (using the open source stlink's st-flash utility) .
After that I managed to load and debug several times (using st-link GDB server, did not try openOCD).
Hope this helps someone :)