xiaomi stlink guide

This commit is contained in:
lekrsu 2024-07-14 19:37:58 +02:00
parent f77c74887a
commit f57b1f715f
7 changed files with 41 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 985 KiB

BIN
stlinking/PRO-BLE.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

BIN
stlinking/Reflasher.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
stlinking/dupont.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 971 KiB

BIN
stlinking/stlink.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 129 KiB

41
stlinking/xiaomi-ble.md Normal file
View File

@ -0,0 +1,41 @@
# Xiaomi BLE Reflashing Guide
## Introduction
This guide will walk you through the process of reflashing the BLE module on your Xiaomi device. Please follow the instructions carefully and refer to the images provided for clarity.
## Required Tools
- ST-Link V2
- Male to Female Dupont cables
- Knife or a similar tool for scraping
- Windows PC for running Reflasher
## Steps
### 1. Preparation
1. **Remove the dash cover**: Begin by taking off the dash cover to access the dash.
<img src="xiaomi-cover.png" alt="Xiaomi Dash Cover" height="500"/>
2. **Gather all required tools**: Ensure you have an ST-Link V2, male to female Dupont cables, and a Windows PC.
<img src="stlink.jpg" alt="ST-Link V2" height="500"/>
<img src="dupont.png" alt="Dupont Cables" height="500"/>
3. **Download the reflasher tool**: [Download the reflasher tool from ScooterHacking](https://www.scooterhacking.org/forum/viewtopic.php?t=676).
### 2. Connecting the Hardware
1. **Scrape the coating on the BLE debug pads**: The BLE module has a slight coating on its debug pads. Use a knife or anything else and gently scrape away the coating to ensure a good contact.
<div style="display: flex;">
<img src="LITE_1S_MI3_PRO2-BLE.png" alt="BLE Module" height="600"/>
<img src="PRO-BLE.jpg" alt="BLE Module Connection" height="600"/>
</div>
2. **Attach Dupont cables to the BLE module**: Bend the pins inward so that they can physically touch the pads. Secure the connection by taping the ends together side by side and hold the pins in place when flashing.
3. **Turn on the dash**: When ready to flash, ensure the dash is turned on. If the dash does not turn on, remove it completely and supply 5V as shown in the images.
### 3. Flashing the Firmware
1. **Run the reflasher tool**: Open the reflasher tool on your Windows PC. Ensure the console is visible so you can monitor the process.
2. **Start the flashing process**: Hold the three pins in place on the BLE module and press the start button in the reflasher tool. It may take a few tries to get it right.
3. **Monitor the reflasher console**: Watch the console output. It will indicate when the process is complete with a message saying "All done".
<img src="Reflasher.png" alt="Reflasher Tool Output" width="600"/>
### 4. Troubleshooting
- **If the dash does not turn on**: Ensure the BLE module is properly connected and the debug pads are making contact. Try supplying 5V directly if necessary.
## Conclusion
By following these steps, you should be able to successfully reflash your Xiaomi BLE module. Ensure all connections are secure and retry the process if you encounter any issues.

BIN
stlinking/xiaomi-cover.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB