Skip to content

racerxdl/air105-uploader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AIR105 Uploader

AIR105 MCU program uploader, works with basically any SCPU from MH190X family.

Usage:

python3 upload.py [PORT] [FIRMWARE FILE] [MEMORY OFFSET] [RSA PRIVATE KEY]
  • PORT => Serial port to communicate with the device
    • Ensure RTS signal toggles the VBAT to ensure device reset
    • Default baudrate: 115200
  • FIRMWARE FILE => The binary file of the firmware to write
  • MEMORY OFFSET => Offset to write in the flash memory. This should be in hexadecimal format without the 0x
    • By default, the AIR105 has its entrypoint at 0x1001000
  • RSA PRIVATE KEY => X.509 PEM RSA Private Key used for signing the firmware. Only required if secure-boot is enabled

Example:

python3 upload.py /dev/ttyUSB0 firmware.bin

Thanks

Special thanks to wendall for providing the basic programming program (used in LuatOS) at openLuat/LuatOS#83. The rest of the work was done by reverse engineering the oficial ISP Tool.

Also thanks to Matthias Deeg for the CRC library at https://github.com/SySS-Research/syss-crc/blob/master/syss_crc.py