To achieve optimal performance from your ODrive, ensure it's updated to the latest version that's compatible with your hardware.
The latest firmware version for ODrive 3.6 boards is 0.5.6.
Check here.
Upgrade a genuine board
The ODrive team has done a great job upgrading a genuine board:
All you have to do is launch the odrivetool dfu command while your board is connected.
Here’s the complete procedure for a Windows computer:
- Install odrivetool (official procedure here)
- Install Anaconda (Python)
- Open the Anaconda terminal
- Install odrivetool with the command:
pip install --upgrade odrive
- Upgrade (official procedure here)
- Connect only the board you want to upgrade
- Type this command in Anaconda terminal:
odrivetool dfu
- odrivetool will seamlessly download the latest firmware, set your board to DFU mode, upload the firmware, and then reboot it into RUN mode.
If you have trouble detecting your ODrive, you probably need to install Zadig and change the ODrive USB driver to libusb0.
See official documentation here.
Upgrade a custom board
Things will go wild with a custom (not genuine) board!
odrivetool will not recognize the board and refuse to upgrade.
Upgrade with STLink
It's very hard to achieve an upgrade from Windows for a custom board. Majority of people will do it the old way with an STLink, which is a good solution if you have one on hand.
If you need the .hex files, here are the links:
https://www.wybosimu.com/r/odrive3.6-24V_fw-0.5.6.hex
https://www.wybosimu.com/r/odrive3.6-56V_fw-0.5.6.hex
Upgrade from your Raspberry Pi
Alternatively, since WYBOController is hosted on a Raspberry Pi, upgrading it from there is much more straightforward compared to upgrading from Windows.
Therefore, we have already prepared the binary for you :)
Here are the steps:
- Connect to your Raspberry Pi by SSH (you can use putty)
- Default user is pi and password is raspberry
- Install dfu-util tool with this command:
sudo apt install dfu-util
- Retrieve your firmware binary by executing one of the commands below, depending on your specific hardware:
wget https://www.wybosimu.com/r/odrive3.6-24V_fw0.5.6.bin
wget https://www.wybosimu.com/r/odrive3.6-56V_fw0.5.6.bin
- Manually activate DFU Mode on your board using the specific physical switch or jumper.
- Connect the board to the pi with USB
- Type the command:
sudo dfu-util -a 0 -s 0x08000000 -D firmware.bin
- replace firmware.bin by the name of the firmware you've just downloaded
- Disconnect the board, switch again in RUN Mode, and you're ready to go!