Debug Issues in Mac OS X
I’m having a similar issue when attempting to Debug or Run my build of System Workbench on my Macbook Pro running OS 10.12 Sierra. I’m using a stm32f4 Discovery Board. When I try to run the default for loop program, my console prints the following:
Open On-Chip Debugger 0.10.0-dev-00267-g884c33c (2016-03-29-16:35)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport “hla_swd”. To override use ‘transport select ‘.
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 2000 kHz
adapter_nsrst_delay: 100
srst_only separate srst_nogate srst_open_drain connect_assert_srst
srst_only separate srst_nogate srst_open_drain connect_assert_srst
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : clock speed 1800 kHz
Error: open failed
in procedure ‘program’
in procedure ‘init’ called at file “embedded:startup.tcl”, line 473
in procedure ‘ocd_bouncer’
- OpenOCD init failed **
shutdown command invoked
When I try to launch into debug mode, a “Problem Occured” prompt window appears and the details show the following:
Error in final launch sequence
Failed to execute MI command:
-target-select remote localhost:3333
Error message from debugger back end:
localhost:3333: Operation timed out.
localhost:3333: Operation timed out.
Really have no clue what could be the problem, my only guess is an issue with openocd. Also, should openocd be a command recognized in terminal? It isn’t recognized as of right now.
Thanks for any leads