grigorig / stcgal

Open Source STC MCU ISP flash tool
678 stars 140 forks source link
8051 mcs51 mcu microcontroller stc stc-mcu

Build Status Coverage Status PyPI version

stcgal - STC MCU ISP flash tool

stcgal is a command line flash programming tool for STC MCU Ltd. 8051 compatible microcontrollers.

STC microcontrollers have an UART/USB based boot strap loader (BSL). It utilizes a packet-based protocol to flash the code memory and IAP memory over a serial link. This is referred to as in-system programming (ISP). The BSL is also used to configure various (fuse-like) device options. Unfortunately, this protocol is not publicly documented and STC only provide a (crude) Windows GUI application for programming.

stcgal is a full-featured Open Source replacement for STC's Windows software; it supports a wide range of MCUs, it is very portable and suitable for automation.

Features

Quickstart

Install stcgal (might need root/administrator privileges):

pip3 install stcgal

Call stcgal and show usage:

stcgal -h

Further information

Installation

How to use stcgal

Frequently Asked Questions

List of tested MCU models

License

stcgal is published under the MIT license.