Documentation Index
Fetch the complete documentation index at: https://mintlify.com/vedderb/bldc/llms.txt
Use this file to discover all available pages before exploring further.
Quickstart
This guide walks you through building VESC firmware from source and uploading it to your controller. You will need a supported hardware target — see Supported hardware for the full list.Prerequisites
- Ubuntu / Linux
- macOS
- Windows
Install the required system packages:Optionally, add udev rules so you can use an STLink v2 programmer without
sudo:Build the firmware
Install the ARM GCC toolchain
The Makefile downloads and installs the GNU ARM GCC toolchain into the You only need to do this once.
tools/ directory:Find your target board name
Run The output lists every available target under
make without arguments to see the full list of supported boards:[Firmware]. Pick the one that matches your hardware. For example, a Trampa VESC 100/250 uses the target name 100_250.Flash the firmware
There are two ways to get the firmware onto your controller. Method 1 (SWD) is required for a fresh controller or a bricked device. Method 2 (VESC Tool USB) is more convenient for routine updates.Method 1 — Flash via STLink SWD debugger
Flash the bootloader
A SWD flash always requires the bootloader to be present first. Clone and build it from github.com/vedderb/bldc-bootloader, then flash it via SWD before proceeding.
Method 2 — Upload via VESC Tool over USB
Build the firmware
Follow the build steps above. You need the
.bin file from the build/<target>/ directory, for example build/100_250/100_250.bin.Select the custom firmware file
Click the Custom file tab, then click the folder icon and select the
.bin file you built.Upload the firmware
Click the upload button (downward arrow) in the bottom-right corner. The progress bar will advance as the firmware uploads.It is normal for the VESC to disconnect during the upload — do not panic.
If your VESC becomes unresponsive after a failed upload, you will need an STLink SWD debugger to recover it. See Method 1 above.
