Skip to content

MartinUbl/SREC-UART-Loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SREC-Loader

This repository contains code for a simple host-side loader, that uploads SREC-encoded executable to a UART-connected device running a SREC bootloader.

Usage

To upload, you need a SREC dump of your image.

Usage:

./uart_flasher <filename> <port identifier> [run command]
  • filename is an absolute or relative path to the SREC dump
  • port identifier is 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 \\.\COM12 for ports with identifier larger than 9
  • run 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

License

The software is distributed under the MIT license. See attached LICENSE file for full licencing information.

University of West Bohemia Department of Computer Science and Engineering

About

A small CLI utility to load SREC formatted executable over UART

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •