Understood, thanks.
I now have OpenOCD for Windows working and I can successfully run make info
on MidiBoot. I’m not sure what steps to use to install MidiBoot. The Makefile contains commands for info
, unlock
, erase
, erase-boot
, erase-storage
, dump
, upload
, and lock
. I tried “upload” and I got:
$ (cd MidiBoot && make upload)
/mnt/c/Users/Andi/work/gh/OpenWare/openocd/bin-x64/openocd.exe -s C:/Users/Andi/work/gh/OpenWare/openocd/scripts -f C:/Users/Andi/work/gh/OpenWare/Hardware/openocd.cfg -c "program Build/MidiBoot.elf verify reset exit"
Open On-Chip Debugger 0.10.0
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SW
D
adapter speed: 2000 kHz
adapter_nsrst_delay: 100
none separate
srst_only separate srst_nogate srst_open_drain connect_deassert_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
Info : STLINK v2 JTAG v17 API v2 SWIM v4 VID 0x0483 PID 0x3748
Info : using stlink api v2
Info : Target voltage: 3.240238
Info : stm32f4x.cpu: hardware has 6 breakpoints, 4 watchpoints
adapter speed: 2000 kHz
Error: timed out while waiting for target halted
TARGET: stm32f4x.cpu - Not halted
in procedure 'program'
in procedure 'reset' called at file "embedded:startup.tcl", line 500
in procedure 'ocd_bouncer'
I thought, maybe I need to run “unlock” first? That didn’t run either:
$ (cd MidiBoot && make unlock)
/mnt/c/Users/Andi/work/gh/OpenWare/openocd/bin-x64/openocd.exe -s C:/Users/Andi/work/gh/OpenWare/openocd/scripts -f C:/Users/Andi/work/gh/OpenWare/Hardware/openocd.cfg -c "init" -c "reset halt" -c "stm32f4x unlock 0" -c "exit"
Open On-Chip Debugger 0.10.0
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SW
D
adapter speed: 2000 kHz
adapter_nsrst_delay: 100
none separate
srst_only separate srst_nogate srst_open_drain connect_deassert_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
Info : STLINK v2 JTAG v17 API v2 SWIM v4 VID 0x0483 PID 0x3748
Info : using stlink api v2
Info : Target voltage: 3.237062
Info : stm32f4x.cpu: hardware has 6 breakpoints, 4 watchpoints
adapter speed: 2000 kHz
Error: timed out while waiting for target halted
TARGET: stm32f4x.cpu - Not halted
in procedure 'reset'
in procedure 'ocd_bouncer'
How should I proceed? Also, I assume make upload
is installing just the MidiBoot elf; is there a command to install the Magus elf I can run after that?