I just received a VESC 4.12, and i bought a discovery board to upload the firmware. So I have been advised to change a specific line in the Makefile of the firmware in order to have the Discoveryboard working, which I did:
“openocd -f board/stm32f4discovery.cfg -c “reset_config trst_only combined” -c “program build/$(PROJECT).elf verify reset exit” # For openocd 0.9” By the way, in vedders’ configuration guide, the OpenOCD that the command installs is a 0.7.0 version.
So after I change that line, the error i get when uploading looks like this: "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 none separate srst_only separate srst_nogate srst_open_drain connect_deassert_srst trst_only combined trst_push_pull 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 make: *** [upload] Error 1 " Sometimes I do not have that ocd_bouncer error though but the log I always get is: “srst_only separate srst_nogate srst_open_drain connect_deassert_srst trst_only combined trst_push_pull”
Can anyone please help? thank you !