Preface:
Many new beginners may bricked vesc or ubox firmware when they do update firmware in vesc tool.And then can only save the vesc controller by flash firmware by st link programmer.
Here are two key tips reminds:
1. when you're doing update firmware in vesc tool, once it's finished , please wait for more than 10seconds, then you will hear your computer recognize USB sound again, then it's finished. Don't power off before this.
2. If you're using momentary button to do update firmware, you need to hold the power button all the time until you hear the USB recognition sound.
Let's go back to topic : how to flash VESC or Ubox firmware by ST-Link V2 programmer?
Preparation Tool:
- ST-Link(V2) programmer and cables
- Computer
- Bricked Ubox
The ST link V2 programmer works like a bridge to connect both vesc and programmer which is used to flash firmware in ubox. And this programmer is called :STM32 ST-Link Utility
You can choose our ST Link V2 Programmer, all necessary cable is ready, just hook in ubox directly, simple to use.
Step1: Get the accessory cable correctly hooked in ST Link. See picture.
Take single ubox 100v 100A controller for example.
Reminds: This is key process, make correct wiring, or it will not flash successfully in next steps.
Step2: Download the ST- Link Utility programmer here or in its official website address here: It supports format:Motorola S19/bin/hex. ST link unity is a programmer, it only supports STM32 chipset. Following is installing process.
Click next , it will finish install, but attention also need to click install driver
Step3: then hook the STLINK cable in ubox, and the USB side hook in PC .
No need to power on ubox.
Step4: open the ST LINK UTILITY. And do connection.
Click Target -Connect.
If your wire hooked no problem, it should appear correctly like this :
Then clik File and open file , to choose the firmware bin file that you need.
Then click Target - Erase Chip
After Erase, should be like this
Nextly
Once it's finished flash, it should be like this.
And congrates, All is done!
Congrates!
All is done!
Leave a comment