You are here

Upload Firmware failed

2 posts / 0 new
Last post
Nowjet
Offline
Last seen: 2 weeks 4 days ago
VESC Free
Joined: 2018-07-25 11:05
Posts: 3
Upload Firmware failed

Hi,

I want to use my Vesc with a custom app and followed this instructions https://vesc-project.com/node/310.
The building worked I think, but when I try to upload it via STLink Programmer, I get:

Ubuntu:~/Dokumente/vesc_firmware$ make upload
openocd -f board/stm32f4discovery.cfg -c "reset_config trst_only combined" -c "program build/BLDC_4_ChibiOS.elf verify reset exit" # For openocd 0.9
Open On-Chip Debugger 0.9.0 (2018-01-24-01:07)
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/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

Makefile:291: recipe for target 'upload' failed
make: *** [upload] Error 1

 

Thanks for your help in advance

Nowjet
Offline
Last seen: 2 weeks 4 days ago
VESC Free
Joined: 2018-07-25 11:05
Posts: 3

I think I solved the problem. The Makefile uses for uploading the "stm32f4discovery.cfg" file, which leads to the source "stlink-v2.cfg".
But I use a ST-Link V2.1.
All I did was changing the source to "stlink-v2-1.cfg"