stm8-bare-min
stm8-bare-min copied to clipboard
Tiny peripheral library for STM8 microcontrolles
stm8-bare-min
Tiny peripheral library for STM8. This library was developed as a supplement to a series of blog posts while I was experimenting with STM8 microcontrollers. Tested with SDCC compiler only.
Code Structure
stm8landstm8scontain libraries and examples for corresponding microcontroller familieslibcontainsstm8s.horstm8l.hheader with register definitions and very basic peripheral driversexamplescontains directories with example code
Building
Dependencies:
Building and flashing example project:
cd ./stm8s/examples/<example>
make flash
Uncomment --peep-file $(LIBDIR)/util/extra.def option in the Makefile to enable additional optimizer rules.
SDCC Bugs
To avoid Bug #2673 it is recommended to use a recent (>=3.8) version of SDCC or to compile with --nolospre flag.