rtm7777 / stm8l_liion_indication

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

STM8L151

Setup:

Install SDCC compiller


Install stm8flash


Prepare SPL


  1. Go to st.com
  2. Search for STM8 SPL and download it
  3. Dowload patch
  4. Extract SPL, add patch and script and run it

Install toolchain


At least something is easy on Ubuntu ;)

  1. Add repository: sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa
  2. Install: sudo apt-get update && sudo apt-get install gcc-arm-embedded

Preparing code


  1. Clone repository
  2. Copy patched SPL into it
  3. make
  4. flash

About


Languages

Language:C 80.9%Language:C++ 13.9%Language:Makefile 5.3%