Traxxas TQ 1st gen: try 5
[DIY-Multiprotocol-TX-Module.git] / docs / Flash_from_Tx.md
blob6ea591d3bf23107ec04e653defdbf0f464d4cdef
1 # Flashing from the Transmitter
3 For radios running erskyTx and OpenTX, there is an option to flash a precompiled firmware file to the multiprotocol module:
4 - OpenTX: using the SD card browser
5 - erskyTX : using the transmitter's Bootloader mode.
7 What you need:
8 * A precompiled multiprotocol firmware file (.hex for Atmega328p or .bin for STM32)
9 * A **Flash from TX** bootloader installed on an Atmega328p or STM32 multiprotocol module
10 * A means to get the firmware file onto the transmitter's SD card
12 ## OpenTX 2.3.3 or newer
13 1. Copy the firmware file to the radio's SD card - it doesn't matter where you put it
14 1. Switch the radio on normally and use the radio menu to locate the file on the SD card
15 1. Highlight the file and press the ENTER button
16 1. Choose Flash internal module or Flash external module as appropriate
18 ## erskyTX
20 ### How to check the bootloader version
21 1. Push both horizontals trims inwards (close to each others) while powering on the radio
22 1. The screen title should indicate `Boot Loader V2.9Ready` or newer<p align="center"><img src="images/Bootloader.jpg" height=200/></p>
23 1. Launch the `FlashMulti_xxx.app` app from the `Run App` menu
24 1. The App version at the bottom right of the screen should be `28.Aug.18` or newer<p align="center"><img src="images/FlashMulti.jpg" height=200/></p>
25 1. If everything is correct you are ready to upgrade the Multimodule firmware
27 ### Upgrade the bootloader and install app(s)
28 1. Download the latest zip file of the [erskyTx firmware](https://openrcforums.com/forum/viewtopic.php?f=7&t=4676) or [this file for the T16](http://www.er9x.com/t16BootFlashMulti.zip).
29 1. Extract the .bin file corresponding to your radio in your SD card `\FIRMWARE` directory
30 1. Download the latest [Flash Multiprotocol Module app](http://www.er9x.com/Ersky9xapps.html) for your radio. For the T16, it's in the previous file.
31 1. Copy the .app file in a folder called `APPS` at the root of the SD card (if the directory does not exist create it)
32 1. For erskyTx
33    1. Power on the radio in `MAINTENANCE` mode while pushing both horizontals trims outwards (away from each others)
34    1. Select `Update Bootloader`
35    1. Select the ersky9x firmware matching your radio
36    1. Long press it and select `Flash bootloader`
37 1. For OpenTX
38    1. Boot the radio normaly
39    1. Go in the `RADIO SETUP` menu page 2 called `SD-HC CARD`
40    1. Open the `FIRMWARE` directory
41    1. Select the ersky9x firmware matching your radio
42    1. Long press it and select `Flash bootloader`
43 1. Check by rebooting the radio in bootloader mode that everything is [ok](###-How-to-check-the-bootloader-version)
45 ### Multimodule upgrade procedure
46 1. Either:
47    1. Connect the transmitter using a USB cable and power it on, or 
48    1. Remove the SD card from the transmitter and mount it using a suitable reader
49 1. Copy the pre-compiled firmware file into the `\FIRMWARE` folder of the SD card (create the folder if it does not exist)
50 1. Power the transmitter off and remove the USB cable or put the SD card back in the transmitter
51 1. Push both horizontals trims inwards (close to each others) while powering on the radio
52 1. The screen title should indicate `Boot Loader V2.9Ready` or newer
53 1. Launch the `FlashMulti_xxx.app` app from the `Run App` menu
54 1. Choose the appropriate file type
55    1. `HEX` to update an Atmega328p module
56    1. `BIN` to update an STM32 module
57 1. Select `Update`
58 1. Choose the firmware file to flash, long press to select it
59 1. Long press again to flash the selected file to the module
60 1. When flashing has finished, long press EXIT to reboot in normal mode
62 ### Troubleshooting
63 1. If the flashing procedure fails try to redo the process with `Invert Com Port` enabled
64 1. Make sure to have the latest bootloader on the MPM module before attempting to Flash from the TX:
65    1. For an Atmega328p module use the bootloader bundled with the `Multi 4-in1 AVR board 1.0.3` or later 
66    1. For a STM32 module use the bootloader bundled with the `Multi 4-in1 STM32 board 1.0.9` or later