From 6662ff8f229e5e1ec6303d9306030f56b11cba42 Mon Sep 17 00:00:00 2001 From: Candas1 Date: Wed, 14 Jul 2021 14:02:02 +0200 Subject: [PATCH] Updated Compiling and flashing the firmware (markdown) --- Compiling-and-flashing-the-firmware.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Compiling-and-flashing-the-firmware.md b/Compiling-and-flashing-the-firmware.md index 9489a55..234bfda 100644 --- a/Compiling-and-flashing-the-firmware.md +++ b/Compiling-and-flashing-the-firmware.md @@ -1,7 +1,5 @@ Right to the STM32, there is a debugging header with GND, 3V3, SWDIO and SWCLK. Connect GND, SWDIO and SWCLK to your SWD programmer, like the ST-Link found on many STM devboards.
-⚠Make sure you properly soldered the headers/wires. Also keep in mind the debugging header pinout can differ on some boards⚠ - If you have never flashed your sideboard before, the MCU is probably locked. To unlock the flash, check-out the wiki page [How to Unlock MCU flash](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/wiki/How-to-Unlock-MCU-flash). Do not power the mainboard from the 3.3V of your programmer! This has already killed multiple mainboards. @@ -82,4 +80,11 @@ platformio run –target upload -e VARIANT_#### ``` If you have set default_envs in [platformio.ini](/platformio.ini) you can ommit -e parameter +### Troubleshooting +If you cannot flash the firmware: +- Make sure you properly unlocked the chip +- Make sure you are don't have an already open connection to the chip in another software (st-link utility, ...) +- Make sure you properly soldered the headers/wires, clean contact is mandatory +- Also keep in mind the debugging header pinout can differ on some boards +