Updating the firmware of a VESC safely: backup, correct file, bootloader

Updating the firmware of a VESC controller takes only a few minutes, but an error can render it unusable. There are three known risks: losing your settings, sending a firmware intended for a different board, and cutting the power at the wrong time. This guide provides the method used in our workshop, with the exact names of the Firmware page in VESC Tool and the warnings that the software itself displays.

The essentials

  • We only release updates for one of three reasons: to fix a bug, to add a new feature, or to keep pace with the latest version of the VESC Tool.
  • First and foremost: back up the motor and application configuration for each controller.
  • The firmware is compiled for a specific board: using the wrong file can damage the hardware.
  • After sending the command, never interrupt the power supply during the restart process.
  • If the old firmware reappears after restarting, it likely means that the bootloader is missing.

Is an update really necessary?

A well-functioning machine can keep its existing firmware. The VESC Tool and the firmware evolve together: a recent version of the software may require a recent firmware version to display all settings, and each version brings corrections and new features (the "Show firmware changelog" button lists them). However, an update sometimes changes behaviors or setting names. Therefore, it is performed at a chosen time, not the day before a race.

If you are new to the software, start with our guide on installing VESC Tool and connecting the controller.

Step 1: Save

The VESC Tool itself states this in its warning: updating the firmware can erase all of the controller's settings, and you will then need to reconfigure it. Before you begin:

  • Read the motor configuration and the application settings in the controller
  • Use the "ConfBackup" menu in VESC Tool: "Backup Configuration" for the connected controller, and "Backup Configurations (Including CAN)" for all controllers on the bus of a dual-motor machine
  • Also, save the motor configuration as a file (using the "Save Motor Configuration XML as..." command in the VESC Tool menus): a saved file is better than an internal software backup
  • Please note the following essential settings separately: currents, cut-off voltages, and throttle settings.

On the mobile application, the home page features the buttons "Backup Configs" and "Restore Configs".

Step 2: Prepare the machine

  • Battery charged, wheel raised, nothing that can spin freely.
  • A USB connection is preferred: it's more stable than Bluetooth for transferring files.
  • A computer connected to a power source, which will not go into sleep mode during the operation.

Step 3: Choose the correct firmware

The Firmware page in VESC Tool displays the current firmware version and the recognized hardware (VESC Firmware, Hardware and UUID). It offers several tabs:

TabHere's what it contains:When to use it
Included Files:The firmware provided with your version of VESC Tool is filtered based on recognized hardwareNormal operation
ArchiveOlder versions, available for download (Download Archive)Go back to a specific version
Custom FileA .bin or .hex file selected from the diskFirmware provided by the manufacturer of the board
BootloaderThe small program that installs the firmware upon restartOnly if the bootloader is missing

The Download Latest button updates the list of available firmware. When the hardware is recognized and only one card matches, the choice is straightforward. The Show All Hardwares or Show non-default firmwares checkboxes expand the list: VESC Tool will warn you that a firmware intended for a different card may damage the hardware. If your card does not appear, do not choose the "closest" one; request the correct file from the manufacturer.

Step 4: Send, then wait

  1. Initiate the sending process and read the warning message displayed before confirming.
  2. Wait for the progress bar to finish without touching anything.
  3. The VESC Tool indicates that the controller should restart automatically within the next few seconds, and explicitly warns: "Do not disconnect the power supply before the restart is complete, as this could lock up the processor and require using a programmer to recover."
  4. Reconnect and check the new version displayed.

The bootloader issue

The new firmware is first stored in the controller and then installed by the bootloader upon restart. If the old firmware reappears after the restart, the VESC Tool will explain this: the bootloader is likely missing, and it can be sent from the Bootloader tab. The Upload bootloader before uploading firmware option allows you to send both at once. Be careful: on some older firmwares, the VESC Tool warns that sending a bootloader to a card that already has one can destroy it and prevent any future updates. Only use this tab if you are experiencing this issue.

The case of a machine with multiple controllers

Controllers on the same machine must have the same firmware version to communicate properly over the CAN bus. The "All" checkbox on the Firmware page sends the firmware to the connected controller and to those on the CAN bus. Its help text is clear: use it only if all controllers on the bus have the same hardware version. Otherwise, update them one by one, connecting to each one individually. See our guide on dual VESC systems using CAN.

Step 5: Verify after the update

  • Review the motor and application settings: if they have been reset, restore the saved configuration.
  • Carefully check each critical setting: currents, cut-off voltages, throttle input, and temperature limits.
  • If the release notes indicate it, re-run the motor detection process.
  • Read the error codes in the terminal, then perform a wheelie test before riding. Our guide on VESC error codes helps you understand them.

Workshop tip

When a controller stops responding after an update, it's almost always due to a corrupted file or an interruption during the restart process. If you're unsure, avoid random attempts: a locked-up processor can be recovered with a programmer, not by repeatedly trying. If you prefer to have a professional handle the process, our workshop offers this service by the hour (https://rage-mechanics.com/en/our-products/1529-labor-30-minutes.html); for any questions before proceeding, contact us.

Frequently Asked Questions

Does the update erase my settings?

It can reset them, and the VESC Tool displays this in its warning message. Always save the motor and application configuration beforehand.

Can it be updated via Bluetooth?

The mobile application offers an "Update Firmware" button. While this is possible, using a USB connection is more stable: a connection interruption during the update process will require you to start the process again.

My equipment is not appearing in the list. What should I do?

Click on "Download Latest" to update the list. If the card is still not listed, request the file from the manufacturer and use the "Custom File" tab. Never upload firmware from a different card.

The old firmware reappeared after the restart. Why is this happening?

The bootloader is likely missing: it's the component that installs the new firmware. The VESC Tool then offers the option to send the bootloader from the "Bootloader" tab.

Should the same software version be used on both controllers of a dual-motor system?

Yes, that is the rule to ensure that CAN communication and the common configuration function correctly.