2021-01-02 18:10:40 +01:00
|
|
|
[![Build Status](https://github.com/grigorig/stcgal/workflows/Python%20package/badge.svg?branch=master)](https://github.com/grigorig/stcgal/actions?query=workflow%3A%22Python+package%22)
|
2021-01-02 18:07:21 +01:00
|
|
|
[![Coverage Status](https://coveralls.io/repos/github/grigorig/stcgal/badge.svg?branch=master)](https://coveralls.io/github/grigorig/stcgal?branch=master)
|
2018-11-13 02:20:42 +01:00
|
|
|
[![PyPI version](https://badge.fury.io/py/stcgal.svg)](https://badge.fury.io/py/stcgal)
|
2017-09-19 17:54:26 +02:00
|
|
|
|
2015-11-24 21:16:43 +01:00
|
|
|
stcgal - STC MCU ISP flash tool
|
|
|
|
===============================
|
2014-01-15 01:09:49 +01:00
|
|
|
|
2018-08-31 20:52:35 +02:00
|
|
|
stcgal is a command line flash programming tool for [STC MCU Ltd](http://stcmcu.com/).
|
|
|
|
8051 compatible microcontrollers.
|
2014-01-15 01:09:49 +01:00
|
|
|
|
2016-05-14 13:21:43 +02:00
|
|
|
STC microcontrollers have an UART/USB based boot strap loader (BSL). It
|
2014-01-15 01:09:49 +01:00
|
|
|
utilizes a packet-based protocol to flash the code memory and IAP
|
2016-05-14 13:21:43 +02:00
|
|
|
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
|
2014-01-15 01:09:49 +01:00
|
|
|
options. Unfortunately, this protocol is not publicly documented and
|
|
|
|
STC only provide a (crude) Windows GUI application for programming.
|
|
|
|
|
2016-05-14 13:21:43 +02:00
|
|
|
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.
|
2014-01-15 01:09:49 +01:00
|
|
|
|
|
|
|
Features
|
|
|
|
--------
|
|
|
|
|
2023-06-01 18:51:13 +02:00
|
|
|
* Support for STC 89/90/10/11/12/15/8/32 series
|
2016-05-14 13:21:43 +02:00
|
|
|
* UART and USB BSL support
|
2014-01-15 01:09:49 +01:00
|
|
|
* Display part info
|
2015-11-24 00:40:40 +01:00
|
|
|
* Determine operating frequency
|
2014-01-15 01:09:49 +01:00
|
|
|
* Program flash memory
|
|
|
|
* Program IAP/EEPROM
|
|
|
|
* Set device options
|
2018-08-21 01:48:09 +02:00
|
|
|
* Read unique device ID (STC 10/11/12/15/8)
|
|
|
|
* Trim RC oscillator frequency (STC 15/8)
|
2017-10-08 22:58:31 +02:00
|
|
|
* Automatic power-cycling with DTR toggle or a custom shell command
|
2016-05-14 13:21:43 +02:00
|
|
|
* Automatic UART protocol detection
|
2014-01-15 01:09:49 +01:00
|
|
|
|
2018-09-24 23:29:45 +02:00
|
|
|
Quickstart
|
|
|
|
----------
|
|
|
|
|
|
|
|
Install stcgal (might need root/administrator privileges):
|
|
|
|
|
|
|
|
pip3 install stcgal
|
|
|
|
|
|
|
|
Call stcgal and show usage:
|
|
|
|
|
|
|
|
stcgal -h
|
|
|
|
|
2018-08-31 20:52:35 +02:00
|
|
|
Further information
|
|
|
|
-------------------
|
2015-11-22 18:05:45 +01:00
|
|
|
|
2018-09-04 00:31:43 +02:00
|
|
|
[Installation](doc/INSTALL.md)
|
2015-11-22 18:05:45 +01:00
|
|
|
|
2018-09-04 00:31:43 +02:00
|
|
|
[How to use stcgal](doc/USAGE.md)
|
2015-11-22 18:05:45 +01:00
|
|
|
|
2018-09-04 00:31:43 +02:00
|
|
|
[Frequently Asked Questions](doc/FAQ.md)
|
2016-05-14 13:21:43 +02:00
|
|
|
|
2018-09-04 00:31:43 +02:00
|
|
|
[List of tested MCU models](doc/MODELS.md)
|
2016-05-14 13:21:43 +02:00
|
|
|
|
2014-01-15 01:09:49 +01:00
|
|
|
License
|
|
|
|
-------
|
|
|
|
|
|
|
|
stcgal is published under the MIT license.
|