The firmware can be found in the Releases page for the MCU project.
Prerequisites
Flashing
- Download the latest firmware from Releases page.
- Connect the USB-C Port on the BlackPill to the computer.
- Press the BOOT0 button on the BlackPill, then reset it to enter bootloader mode.
- Launch STM32CubeProgrammer.
- On the right-hand side of the window, the drop-down menu shows ST-LINK. Change it to USB and click Connect.
- Select Erasing & Programming from the left side of the window (arrow pointing to a device icon).
- Click Browse in the middle of the window and locate the firmware file (
.elf).
- Press Start Programming.
- Wait for the firmware to be flashed.
- Close STM32CubeProgrammer and reset the BlackPill.
Usage
The robot needs to calibrate the IMU, so it must be placed on a flat surface.
- After powering on the controller, wait approximately 3 seconds for the calibration to complete.
- A clicking sound will be heard from the relay.
- The red LED will turn off.
Next Steps
If there are no plans to modify the firmware, skip to the ChassisTuner section.