Can't use debugger on MavOS X
Hello!
I installed SW4 and I have problme to use the debugger.
What it does:
After building the application, I run in debug mode with project righ-click->debug as->AC6 STM32 C/C++ application
It starts like every debugger would. The int main() is highlit with a green background.
If I press continue, it seems to start the program (I have set a led toggle in systick and it works). However, the
highlight is still green on the same line (main).
Simultaneousley, I have many lines (30 ~ 50 of them) in the console saying Error: JTAG failure -4.
Any idea how to solve this?
Dora.
---------
Configurations as follows:
Eclipse IDE version Neon.3 release 4.6.3
Installed from package install_sw4stm32_macos_64bits-v2.2.run
downloaded a few days ago. The installer seems to behave normally (i.e. no error).
--- Here is what the console says when starting the debugger, before pressing continue -----
Open On-Chip Debugger 0.10.0-dev-00004-gcef2a8c-dirty (2017-08-31-14:03)
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: 1800 kHz
adapter_nsrst_delay: 100
Info : tcl server disabled
Info : telnet server disabled
Info : clock speed 1800 kHz
Info : STLINK v2 JTAG v25 API v2 M v14 VID 0x0483 PID 0x374B
Info : using stlink api v2
Info : Target voltage: 0.012615
Error: target voltage may be too low for reliable debugging
Info : Stlink adapter speed set to 1800 kHz
Info : STM32F769BITx.cpu: hardware has 8 breakpoints, 4 watchpoints
Info : accepting ‘gdb’ connection on tcp/3333
Info : Stlink adapter speed set to 1800 kHz
adapter speed: 1800 kHz
STM32F769BITx.cpu: target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x0800210c msp: 0x20080000
Info : Stlink adapter speed set to 4000 kHz
adapter speed: 4000 kHz
Info : flash size probed value 2048
Info : flash size probed value 2048
Info : Stlink adapter speed set to 1800 kHz
adapter speed: 1800 kHz
STM32F769BITx.cpu: target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x0800210c msp: 0x20080000
Info : Stlink adapter speed set to 1800 kHz
adapter speed: 1800 kHz
STM32F769BITx.cpu: target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x0800210c msp: 0x20080000
Info : Stlink adapter speed set to 4000 kHz
adapter speed: 4000 kHz
STM32F769BITx.cpu: target state: halted
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x20000084 msp: 0x20080000
Info : Stlink adapter speed set to 1800 kHz
adapter speed: 1800 kHz
STM32F769BITx.cpu: target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x0800210c msp: 0x20080000