I tried running openOCD from a command prompt.
Still failed but more output messages
F:\openOCD\bin-x64>openocd -f interface/stlink-v2-1.cfg -f target/stm32f2x.cfg -c "gdb_port 3333"
Open On-Chip Debugger 0.10.0
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 '.
adapter speed: 1000 kHz
adapter_nsrst_delay: 100
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
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
Error: open failed
in procedure 'init’
in procedure ‘ocd_bouncer’
How are you connecting? Via the large 20-pin JTAG connector (not normally populated on the Sparkfun RedBoard) or just using SWD?
A few other common issues:
You will only be able to connect initially if the device is in DFU mode or you’ve already flashed system and user (or monolithic) binaries with JTAG/SWD enabled.
Make sure you connect the power pin on the ST-LINK to 3V3. It’s a detection pin and is required.
I’m using the 20 pin connector. I soldered it in.
But I’m not the worlds best technician, so buzzing out that connector is a great idea.
The STM32 Util does report a 3.3V connection.
The Photon Redboard is flashed with the default device firmware
(DeviceOS and Tinker as I recall). I have no idea if that firmware has JTAG/SWD
enabled.
Your idea of putting the Redboard into DFU mode is a great one.
I’ll give that a shot and see what happens.