AnsweredAssumed Answered

Tutorial/examples: Using sdcc with the STM8/128-EVAL

Question asked by Philipp Krause on Oct 26, 2014
I wrote a few tutorials for getting started with sdcc and the STM8/128-EVAL.

One shows how to set up I/O and a timer. It uses the 4 red LEDs as a 4-bit counter than increments exactly once per second:

One shows how to set up the UART, and use it for standard I/O: It writes "Hello World!" using printf():

With the accurate timer and serial I/O, we can run some benchmarks, such as Dhrystone and Whetstone and have the results reported on a terminal attached via a nullmodem cable: