Still using programmer to flash bricked vesc?No need it anymore！
In the past, when the vesc is brick, people have to buy programmer(like st link) to flash the firmware. And it requires people some skill on using programmer, if people don’t know how to do it, it will be really a big trouble for them. And now the VESC new function SWD Prog solve this trouble, it’s so easy and convenient to flash firmware without using a programmer.
Why vesc is easy to become brick?
In most of the cases, the update firmware will fail, the device will become a brick, or the bootloader sometimes have lost to cause brick.
What do you need?
Since vesc is released SWD prog function, only if you can use vesc tool and learn following steps, we can ensure that you’re able to flash firmware in 2 minutes without using any complicated programmer.
What you need is only :
Can bus cable
VESC tool in PC
Firmware and bootloader
How to do it?
Here is step by step tutorial, take Spintend ubox as example:
Step1：Use the CAN cable to bridge the SWD ports of the ESC on both sides (we leave the RST idle , because the RST of the SWD socket is usually not needed).
Step2: Power on Ubox, Connect it in PC vesc tool. Click “Connect”, make sure it’s well connected with vesc tool
Step3: Click SWD Prog in the left menu, then upload the firmware. (Ubox merged the bootloader and firmware in one file, download it here)
Then click “Verifying while programming”
Next click “Connect”
Step4 , Reset, then Erase & Upload
when upload is done, click “disconnect”.
Step5: Plug off USB , and connect it in another side, repeat above operation in another side of ESC
Remember: If the USB in A side, then A side is local (shown in can-Device), it actually flashed B side’s firmware. Simply as A—>B， B —>A
Step6: Check both side of ESC, if firmware is flashed
Lastly, share some information about the unused RST pin in step1:
Usually, the RST is useless, because VESC have no pin for controlling RST, and SWD port can work without reset, but in some time, SWD can't reset chip with SWDIO and SWDCLK only, in this time, we can try to reset chip manually, by short this RST pin to GND, then release it during we do SWD connection in vesc tool. try this several times, maybe it can save a bricked vesc.
If you’ve read above from step1 to step6, congrats, you get it . no worry for vesc brick anymore!
Learn more information about Ubox, Click here.
what's vesc?Get it here