https://github.com/racerxdl/air105-uploader
AIR105 MCU program uploader
https://github.com/racerxdl/air105-uploader
air105 luatos megahunt mh1903 mh190x
Last synced: 6 months ago
JSON representation
AIR105 MCU program uploader
- Host: GitHub
- URL: https://github.com/racerxdl/air105-uploader
- Owner: racerxdl
- License: apache-2.0
- Created: 2023-01-16T02:29:37.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-28T01:19:52.000Z (over 2 years ago)
- Last Synced: 2025-03-24T22:42:16.678Z (7 months ago)
- Topics: air105, luatos, megahunt, mh1903, mh190x
- Language: Python
- Homepage:
- Size: 27.3 KB
- Stars: 10
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AIR105 Uploader
AIR105 MCU program uploader, works with basically any SCPU from MH190X family.
# Usage:
```bash
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 enabledExample:
```bash
python3 upload.py /dev/ttyUSB0 firmware.bin
```# Thanks
Special thanks to [wendall](https://github.com/wendal) for providing the basic programming program (used in LuatOS) at https://github.com/openLuat/LuatOS/issues/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