I was unlucky and received a VESC with no bootloader. I won’t mention where it came from, because the excellent dude responsible for making a VESC available to me is on vacation and I’m not gonna bother him!
I can’t upgrade the firmware until I install a bootloader. I’ve been putting it off, but now that FOC is in full effect, it’s time to give it a try! Currently my shit is LOUD and I need to roll in silence during top-secret missions.
I’m using VESC 4.7 and currently have firmware 1.10 installed (that’s what the VESC shipped with). It works nicely, but half the fun of having an open-source ESC is being able to install new firmware and use new features.
I’m trying to follow Vedder’s instructions. Here he provides all the command lines needed to prepare a Linux machine to flash the bootloader. (Flash is just a nickname for “programming a chip”). He also gives an example of how to connect an ST-Link V2 to VESC and that’s where I’m getting stuck.
Vedder provides an image of a similar programmer where you can see the pinout:
But the one I bought looks like this:
Here’s a closer look at the pinout:
While it looks like I need to connect GND, SWCLK, SWDIO, 3V3, RST, and GND, I’ve only got RST, GND, DATA, VDD, RST, SWD, CLK, GND, and VDD. WTF!?
Problem #1 is I don’t know which of these pins on my ST-LinkV2 I need to connect.
Problem #2 I know which JST port to use on the VESC, but which pins on the port should connect with the pins on the programmer? Vedder must have put a diagram somewhere that shows how to connect the pins on VESC, but I can’t find anything.
Problem #3 is I don’t have a pin labeled 3V3. I’m assuming that SWCLK=CLK and that SWDIO=SWD
Maybe I should look for a programmer that is exactly like the one in Vedder’s example? Any thoughts? Thanks!