How to flash a softRF TTGO T-Motion from LilyGo?

This section provides step by step instructions on how to properly flash the softRF TTGO T-Motion from LilyGo - so you can use it as a standalone softRF Dongle or extending your existing Stratux anti collision system to send our aircraft's position to other receivers.

Please note that the T-Motion does not come with WIFI or Bluetooth. You must use the serial port to flash the firmware.
Instructions below are provided “as is” with no express or implied guarantee.


  1. Choose tool to flash and update firmware:
    1. Option 1: (preferred) - useSTM32CubeProgrammer to flash another firmware to softRF (T-Motion)
    2. Option 2: (legacy) - first update USB driver to make device findable for DfuSe. Then use DfuSe and flash another firmware to softRF (T-Motion)
  2. Configure and select transmitting protocol for softRF (T-Motion)
  1. Download DfuSe USB device firmware upgrade
  2. download latest softRF firmware in .dfu format
  3. Then press the small button on the T-Motion board and insert the dongle into the USB port of the computer. Once the T-Motion is plugged into the Computer’s usb port, release the “boot” button.

    press "boot" button of softRF (T-Motion) to enable DFU mode
    press "boot" button of softRF (T-Motion) to enable DFU mode

  4. open the windows device manager (windows + R compmgmt.msc)
  5. A “STM Device” in “DFU mode” should appear in the windows device manager
  6. This will most likely not happen when you try it the first time, as usually the correct device driver is missing and therefore the device is only displayed as “STM32 bootloader”.

    STM32 Bootloader found in Windows 10 Device Manager
    STM32 Bootloader found in Windows 10 Device Manager

  7. If this is the case, please download Windows Driver Package - “STMicroelectronics (SSTub30.sys)” (current version is 3.0.6.1) from here or here.
    When using Windows 10 usually the driver does not install automatically. In this case you have to install manually: open the Windows device manager (windows + R compmgmt.msc), select “device manager”, right-clicking in the device manager and go to “update driver”

    update USB driver with SSTub30.sys
    update USB driver with SSTub30.sys manually

  8. After installing the SSTub30.sys, the dongle then appears correctly under Windows Device Manager > USB Devices,  as “STM Device in DFU Mode
  9. Now continue to follow "Option 2 - Flash softRF/ T-Motion Firmware (legacy)"

Source: https://github.com/lyusupov/SoftRF/wiki/AcSiP-S7xG-flashing-instructions

  1. download and install Zadig.exe
  2. open Zadig

    run Zadig
    run Zadig

  3. connect softRF/ T-Motion to your computer:
    Press the small button on the T-Motion board and insert the dongle into the USB port of the computer. Once the T-Motion is plugged into the Computer’s usb port, release the “boot” button.

    press "boot" button of softRF (T-Motion) to enable DFU mode
    press "boot" button of softRF (T-Motion) to enable DFU mode

  4. go to Options > List All Devices

    Zadig: list all devices
    Zadig: list all devices

  5. select "STM32 Bootloader" and "winUSB" - if STM32 Bootloader won't be listed, repeat Step 3

    Select STM32 Bootloader and WinUSB
    Select STM32 Bootloader and WinUSB

  6. Replace USB driver

    Replace Driver
    Replace Driver

  7. open the windows device manager (windows + R compmgmt.msc)

    STM32 Bootloader found in Windows 10 Device Manager
    STM32 Bootloader found in Windows 10 Device Manager

  8. Now continue to follow "Option 2 - Flash softRF/ T-Motion Firmware (legacy)"

Source: https://github.com/Xinyuan-LilyGO/LilyGO-T-Motion/blob/master/USB_Driver_Doc.pdf

  1. Please follow "Option 2 A) - Update USB driver to make T-Motion finable for DfuSe (legacy)" and install STTub30 driver from STMicroelectronics, if you do not see the softRF Dongle
    DfuSe available DFU devices empty
    DfuSe available DFU devices empty
  2. now select your dongle in the dropdown. Choose the latest version of the firmware you want to flash in .dfu format and click on "upgrade"
    using DfuSe to flash firmware on device
    using DfuSe to flash firmware on device
  3. click "leave DFU mode" after progress bar shows "upgrade successful"
    leave DFU mode
    leave DFU mode
  4. then click "leave DFU mode"
    leave DFU mode
    leave DFU mode
     
  5. congratulations! you have flashed your device with a new firmware!
  6. next step: configure firmware and select transmitting protocol

Sources: