Updated How to Unlock MCU Flash (markdown)

Emanuel Feru
2022-06-08 20:43:50 +02:00
parent ec67bd5c38
commit cca8ca4daa

@@ -11,20 +11,20 @@ This procedure will erase the stock MCU firmware irreversibly! Perform these ste
* Step 2: Connect the ST-Link programmer to the MCU programming pins GND, SWDIO, SWCLK. Connect the 3V3 pin only if your MCU is not powered externally.
* Step 3: Open the ST-Link utility and press `Connect to target`
![unlock1](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/blob/master/docs/pictures/wiki_unlock/unlock_mcu_1.png)
![unlock1](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/blob/main/docs/pictures/wiki_unlock/unlock_mcu_1.png)
* Step 4: If you get the message `Can not read memory!` the MCU is most probably locked
* Step 5: Go to `Target` and click `Option Bytes`
![unlock2](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/blob/master/docs/pictures/wiki_unlock/unlock_mcu_2.png)
![unlock2](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/blob/main/docs/pictures/wiki_unlock/unlock_mcu_2.png)
* Step 6: Select **Disable** in `Read Out Protection` drop-down menu and click `Apply`
![unlock3](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/blob/master/docs/pictures/wiki_unlock/unlock_mcu_3.png)
![unlock3](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/blob/main/docs/pictures/wiki_unlock/unlock_mcu_3.png)
* Step 7: Click `Connect to target`
![unlock4](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/blob/master/docs/pictures/wiki_unlock/unlock_mcu_4.png)
![unlock4](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/blob/main/docs/pictures/wiki_unlock/unlock_mcu_4.png)
* Step 8: If you see the window above, then you have successfully unlocked your MCU. You can now flash the MCU.