Skip to content

frsky_flasher.py is a flash firmware programmer for programming firmware updates to frsky products through the s.port interface

Notifications You must be signed in to change notification settings

radredgreen/frsky_flasher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Introduction

frsky_flasher.py is a flash firmware programmer for programming firmware updates to frsky products through the s.port interface. It is useful for:

  • Updating frsky product firmware from Linux
  • If you don't have access to a windows computer for running the frsky stk tool
  • If you don't have access to an opentx transmitter (you're using an older PPM transmitter)
  • If you prefer an opensource implementation of the firmware flasher

For now, this tool only works with python2, not python3.

This tool was created, from scratch in python, by reviewing the opentx software, specifically frsky_firmware_update.cpp

Alternatives

  • OpenTX (https://www.open-tx.org/) allows you to flash s.port products directly from the transmitter
  • frsky stk (s.port tool kit) allows you to flash s.port products from windows

Cable

To use this, you'll need to build or buy a cable

Usage

Install PyCRC: pip install pythoncrc

Install PySerial: pip install PySerial

Download frsky firmware (.frk file) for your device

Connect programming cable

Execute: ./frsky_flasher.py firmware.frk /dev/ttyUSB0

Testing

frsky_flasher has been tested with the R9M transmit module (front and back s.port) and the R9MM receiver. If you have success or failures with other devices, open an issue to track compatibility with other s.port devices.

Tips

  • The programmer needs to send a command to the bootloader at device power up to enter programming mode. Follow the instructions in the program for (re)connecting the device to trigger the bootloader at power up. Watch the official youtube videos for a demonstration of the power up procedure
  • With the R9M, connecting power to the module can cause the usb to serial adaptor (ch341) to reboot. Powering the module from a battery resolved this, but power to the battery had to be disconnected and reconnected at the beginning of the programming sequence to catch the bootloader.

About

frsky_flasher.py is a flash firmware programmer for programming firmware updates to frsky products through the s.port interface

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages