Skip to main content
Visitor II
April 19, 2016
Question

Hello World

  • April 19, 2016
  • 2 replies
  • 1008 views
Posted on April 19, 2016 at 03:16

Hello everybody. 

Can someone point me to a simple ''Hello world'' LED blinking example for STM8?

My situation is as following:

I found 

http://www.electroons.com/blog/stm8-tutorials-2-hello-world-program/

 and I tried to do it here. It did not work (no ''stm8s.h'' file)

later I found that this file is included in the ''STM8 firmware library''. So I searched for it and thanks to help in this forum I could finally find it...(thanks!)

However even with this file it does not compile. 

I also tried to build the examples in the library (they are supposed to work right?) well it didnt work either.

So can someone point me to a simple tutorial for blinking a led??

Thanks
    This topic has been closed for replies.

    2 replies

    Visitor II
    April 20, 2016
    Posted on April 20, 2016 at 10:32

    Hi,

    Have a look at the attached project. I'm not sure if I've done it the correct way but it does compile and I hope work. However, I'm not able to test it at the moment. Hopefully there will be enough there for you to see how it's done and adapt it for your own needs :) I used an evaluation version of the Cosmic compiler and an STM8S

    Thanks,

    Ian

    ________________

    Attachments :

    stm8_led_toggle.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Htra&d=%2Fa%2F0X0000000aY3%2FY2p6W6snRlube0qp6O_ZL9zpPp3BnQkBE0fJpie.LGE&asPdf=false
    Visitor II
    May 1, 2016
    Posted on May 01, 2016 at 21:11

    You can find such tutorials at

    http://colecovision.eu/stm8/

    Philipp