This repository contains code for a simple host-side loader, that uploads SREC-encoded executable to a UART-connected device running a SREC bootloader.
To upload, you need a SREC dump of your image.
Usage:
./uart_flasher <filename> <port identifier> [run command]
filenameis an absolute or relative path to the SREC dumpport identifieris a name of, or a path to the serial port to be used (e.g.,COM4,/dev/ttyUSB0, ...); please note, that MS Windows requires the COM port name in the form of\\.\COM12for ports with identifier larger than 9run command- command to execute after loading is done- when not specified, the loader ends after the upload is done
local- runs only a local listener (in-program loop that reads characters from the port)putty- attempts to find PuTTY installation and run it after the loading is done
Examples:
./uart_flasher kernel.srec COM4 putty
./uart_flasher kernel.srec /dev/ttyUSB0
The software is distributed under the MIT license. See attached LICENSE file for full licencing information.
![]() |
|---|
