cancel
Showing results for 
Search instead for 
Did you mean: 

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

Philipp Krause
Senior II
Posted on October 26, 2014 at 18:41

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:

http://www.colecovision.eu/stm8/128-EVAL%20LED.shtml

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

http://www.colecovision.eu/stm8/128-EVAL%20Serial.shtml

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:

http://www.colecovision.eu/stm8/128-EVAL%20Dhrystone.shtml

Philipp

0 REPLIES 0