diff --git a/docs/Intro-Start-Here/Flashing-FW/ecudef.png b/docs/Intro-Start-Here/Flashing-FW/ecudef.png new file mode 100644 index 0000000..3d284c3 Binary files /dev/null and b/docs/Intro-Start-Here/Flashing-FW/ecudef.png differ diff --git a/docs/Intro-Start-Here/Flashing-FW/fwsuccess.png b/docs/Intro-Start-Here/Flashing-FW/fwsuccess.png new file mode 100644 index 0000000..431ff0a Binary files /dev/null and b/docs/Intro-Start-Here/Flashing-FW/fwsuccess.png differ diff --git a/docs/Intro-Start-Here/Flashing-FW/mandfu.png b/docs/Intro-Start-Here/Flashing-FW/mandfu.png new file mode 100644 index 0000000..1f452a6 Binary files /dev/null and b/docs/Intro-Start-Here/Flashing-FW/mandfu.png differ diff --git a/docs/Intro-Start-Here/HT-Flashing-The-Firmware.md b/docs/Intro-Start-Here/HT-Flashing-The-Firmware.md index 01ff064..239e250 100644 --- a/docs/Intro-Start-Here/HT-Flashing-The-Firmware.md +++ b/docs/Intro-Start-Here/HT-Flashing-The-Firmware.md @@ -12,28 +12,30 @@ Once you have downloaded the [latest firmware bundle](https://github.com/FOME-Te ![image](Flashing-FW/fomeconsole.png) -Click *Update Firmware* and leave the board plugged in until the prompt screen indicates that the update was successful. Only once the update has given this message, unplug and re-plug the ECU into the computer to reboot it. +Click *Update Firmware* and leave the board plugged in until the prompt screen goes green and indicates that the update was successful. Only once the update has given this message, unplug and re-plug the ECU into the computer to reboot it. -If this does not complete successfully, the firmware may need to be loaded using STM32 Cube Programmer covered later. +![image](Flashing-FW/fwsuccess.png) + +If this does not complete successfully, the firmware may need to be loaded by putting the board into bootloader or DFU mode. + +## Loading firmware in manual bootloader mode + +In the event that your firmware update fails and the computer fails to recognize the ECU when plugged into it, the firmware needs to be loaded by manually putting the board into boot mode. When the computer fails to recognize the ECU, the firmware has not loaded correctly so the console is unable to automatically put it into bootloader (or DFU) mode to update it. This process manually puts the ECU into bootloader mode then uploads the firmware file to it. + +On the ECU, you will then need to access the main board to find the boot/DFU pins/button. With the ECU un-powered, short the two boot pins (or push and hold the button) while plugging the ECU into the computer. Once plugged into the computer, the pins can be separated or the boot button released. If this has been done correctly, the console should come up with the manual DFU update selection. + +![image](Flashing-FW/mandfu.png) + +Click *Update Firmware* and keep the board connected until the prompt screen goes green and indicates a successful update. ## Setting up TunerStudio -Open TS with the ECU plugged in, it should recognise that the ECU definition is out of date and come up with a prompt to download the new definition. +Open TS with the ECU plugged in, it should recognise that the ECU definition is out of date and come up with a prompt to update the ECU definition. Press *Update ECU definition* and if it cannot find it online, load the *.ini* file from the firmware bundle downloaded earlier + +![image](Flashing-FW/ecudef.png) Next, under the *Controller* tab, open the *Popular Vehicles* menu and click the button to load the preset for your vehicle (not the button to reset the firmware settings). ![image](Flashing-FW/popularvehicles.png) -Once the preset has been loaded, you can either start tuning or load your tune from the older firmware versions under *File > Load Tune (msq)*. After that, the update is complete! - -## Loading firmware through STM32 Cube Programmer - -In the event that your firmware update fails and the computer fails to recognize the ECU when plugged into it, the firmware needs to be loaded manually using STM32 Cube Programmer. When the computer fails to recognize the ECU, the firmware has not loaded correctly so the console is unable to put it into bootloader (or DFU) mode to update it. This process manually puts the ECU into bootloader mode then uploads the firmware file to it. - -Firstly, download and install STM32 Cube Programmer [here](https://www.st.com/en/development-tools/stm32cubeprog.html). - -On the ECU, you will then need to access the main board of your ECU to find the boot/DFU pins/button. With the ECU un-powered, short the two boot pins (or push and hold the button) while plugging the ECU into the computer. Once plugged into the computer, the pins can be separated. - -In the programmer, select the *USB* tab on the right and refresh the port in the right side menu until a DFU is detected. Click *Connect* to connect the ECU to the programmer. Click the *Read* button to read the device memory and to validate that the ECU is connected. - -Once validated, click the *Open File* button and load the file marked *fome.bin* within the firmware bundle downloaded earlier. This is a binary file containing the ECU firmware. Now click the *Download* button to write this firmware to the ECU. Give it up to several minutes to download and once the status console confirms successful download, disconnect from the programmer then unplug the ECU and plug it back in. The ECU should now connect to the computer and TS normally again. +Once the preset has been loaded, you can either start tuning or load your tune from the older firmware versions under *File > Load Tune (msq)*. After that, the update is complete! \ No newline at end of file