Git Product home page Git Product logo

stm8-headers-pio's Introduction

STM8_headers + PlatformIO

This is an example project which includes a copy of https://github.com/gicking/STM8_headers by Georg Icking-Konert.

The library is included via copying it in the lib/ folder, adding a small library.json to it and referencing it in the platformio.ini via lib_deps. The code from the original example project (blink_noInterrupt) is slightly adapted regarding the relative include paths and some verbosity via #warning pragmas for the selected pin mapping.

The platformio.ini contains 3 environments for the STM8S-DISCOVERY, the NUCLEO-8S207K8 and the NUCLEO-8S208RB boards. Select the correct environment per docs. The latter two board definitions are work in progress (see issues) and pulled in from a modified platform.

Compilation should work fine for all environments, but uploading and confirming that the firmware executes correctly has not been done, as I lack the hardware for that.

Environment           Status    Duration
--------------------  --------  ------------
stm8sblue_stm8s103f3  SUCCESS   00:00:01.918
stm8sdisco            SUCCESS   00:00:01.877
nucleo_8s207k8        SUCCESS   00:00:01.890
nucleo_8s208rb        SUCCESS   00:00:01.874

Debugging

Thanks to new code in the modified platform, debugging via OpenOCD is enabled by default for all boards.

Tested for an STM8S103F3 board and confirmed working.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.