stcgal/README.md

63 lines
2.0 KiB
Markdown
Raw Permalink Normal View History

[![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)
stcgal - STC MCU ISP flash tool
===============================
2014-01-15 01:09:49 +01: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
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
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.
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
* 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
* 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
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
Further information
-------------------
2015-11-22 18:05:45 +01:00
[Installation](doc/INSTALL.md)
2015-11-22 18:05:45 +01:00
[How to use stcgal](doc/USAGE.md)
2015-11-22 18:05:45 +01:00
[Frequently Asked Questions](doc/FAQ.md)
[List of tested MCU models](doc/MODELS.md)
2014-01-15 01:09:49 +01:00
License
-------
stcgal is published under the MIT license.