Skip to content

Instantly share code, notes, and snippets.

@Lauszus
Last active November 4, 2022 20:05
Show Gist options
  • Save Lauszus/f7afec1f66a1ad1c8b8a0f9f35ffab69 to your computer and use it in GitHub Desktop.
Save Lauszus/f7afec1f66a1ad1c8b8a0f9f35ffab69 to your computer and use it in GitHub Desktop.
VESC 6 flash bootloader using ST-LINK/V2

Pinout

ST-LINK/V2 VESC
VAPP (pin 1) VCC
TCK_SWCLK (pin 9) CLK
GND (pin 20) GND
TMS_SWDIO (pin 7) IO
NRST (pin 15) RST

Flash

Get latest bootloader:

git clone https://github.com/vedderb/vesc_tool.git

Install: https://github.com/texane/stlink#installation, then flash:

st-flash --reset write vesc_tool/res/bootloaders/60_o_75_300.bin 0x080E0000
@pmouraguedes
Copy link

Hi, how one would connect it to a Flipsky 6.6:

image

Thanks

@Lauszus
Copy link
Author

Lauszus commented Jan 15, 2021

@pmouraguedes by looking at the board in the picture below. My guess would be that the unpopulated header next to the microcontroller is the programming header.

v6_326e0556-597f-4670-90d4-9a195c783e20_1800x1800

@pmouraguedes
Copy link

You're right, needs to be soldered in there.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment