AnsweredAssumed Answered

STM8L-Discovery example for sdcc: LEDs and Timer

Question asked by Philipp Krause on Oct 23, 2014
Latest reply on Mar 18, 2017 by t.h.
I wrote a tutorial that shows how to blink LEDs on a STM8L-Discovery using free tools only.

It consists of a few lines of C code to set up a timer, implement clock(), and use it to blink the green LED exactly once per second and the blue LED exactly once every two seconds.

The C code is compiled using sdcc 3.4.0 or newer and put onto the board using the free stm8flash utility.

Please tell me if  you find anything wrong or missing in the tutorial.