Open Source STC MCU ISP flash tool
Go to file
Creative Lau b92ba84bfb Repair EEPROM program process of IAP serial MCU
The release V1.6 could download EEPROM file correctly when use the option 'program_eeprom_split' and splited eeprom larger than 512 Bytes for IAP serial MCU.
Repaired now!
2021-07-27 13:56:07 +08:00
.github/workflows Fix coveralls integration 2021-01-02 18:06:19 +01:00
debian Update version to 1.6 2018-09-24 23:01:13 +02:00
doc Update MCU database 2021-01-09 03:12:10 +01:00
stcgal Repair EEPROM program process of IAP serial MCU 2021-07-27 13:56:07 +08:00
tests Add ihex tests 2021-01-03 15:53:38 +01:00
.gitignore gitignore: add coverage report outputs 2021-01-03 14:11:52 +01:00
README.md Fix build status badge 2021-01-02 18:13:29 +01:00
setup.py Raise minimal Python version to 3.5 2021-01-02 17:24:44 +01:00
stcgal.py frontend: return instead of exit 2015-11-23 23:48:58 +01:00

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

  • Support for STC 89/90/10/11/12/15/8 series
  • UART and USB BSL support
  • Display part info
  • Determine operating frequency
  • Program flash memory
  • Program IAP/EEPROM
  • Set device options
  • Read unique device ID (STC 10/11/12/15/8)
  • Trim RC oscillator frequency (STC 15/8)
  • Automatic power-cycling with DTR toggle or a custom shell command
  • Automatic UART protocol detection

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.