It is of utmost importance to approach these tasks with diligence and precision. If the procedures are not meticulously adhered to, there is a risk that your board may become inoperable, or "bricked".
Such situations can be challenging to rectify. Therefore, we urge you to proceed with caution, attentively following the guidelines to safeguard your equipment and ensure the integrity of your work.
The following process was copied from the following PDF "Onewheel GT Rollback process by Justin Velasquez" with additional helper components for convenience.
You can find Justin via fixmypev.com
You will need the bootloader for your onewheel.
Its best if you use your own bootloader if available, if not see firmware files.
You need the file for your board that contains "bootloader"
You can use ST-Link Utility or STM32CubeProgrammer
Use the following calculator to convert miles to the required figure in hex.
this uses the following formula, example serial ow123456.
// serial number without starting "ow"
result = 123456
// convert result from decimal to hex
result = result.toString(16) //base 16 is hex
// 0 pad to 8 characters
result = result.padStart(8,"0")
// result = 0001e240
// split in half..
// first 4 is 0001
// last 4 is e240
You should save the file as
ow123456-extracted-bootloader-settings.bin
where ow123456
is your actual serial number as entered above.
You can find the connection points on the bottom of the controller, please see the st-link page for more details.
You should place the controler back in the board with the cables plugged into the ST-Link.
You can use either ST-Link Utility or STM32CubeProgrammer
Target > Option Bytes... > Read Out Protection > Level 0 (Disabled)
Option Bytes > RDP > AA (Level 0)
Pint/GT lightbar should be flashing now!
Don't physically unplug ST-Link yet.
Flash the firmware using ReWheel over bluetooth,
for GT use 6109 (base or patched)
Wait for the WHITE lightbar!
If no white lightbar, retry flashing after a power cycle.
You can also fix your milage now if so desired.
Otherwise power off and disconnect ST-Link.
There are two primary tools at your disposal:
Either of these tools are can be used in programming and interfacing with the hardware.