[Sdcc-user] Tutorials for STM8 and MCS-51 development using the Small Device C Compiler for various boards

2017-01-01 Thread Philipp Klaus Krause
Based on my experience in getting started with various STM8 and MCS-51
boards, I wrote a few simple tutorials to help others. They use free
tools only. For various evaluation boards there are three simple demos:

1) LED counter controlled by timer
2) Serial output
3) Dhrystone / Whetstone benchmarks

The tutorials can be found at:

http://www.colecovision.eu/stm8/
http://www.colecovision.eu/mcs51/

Please tell me if you find any mistakes, or have any suggestions for
improvement.

Philipp

P.S.: Most of the STM8 tutorials have been around for a while, but
recently I made some minor updates, and added tutorials porting the
demos to lots of MCS-51 boards.

--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user


Re: [Sdcc-user] Tutorials for STM8 and MCS-51 development using the Small Device C Compiler for various boards

2017-01-01 Thread Augusto Fraga Giachero
Well done!

Do you have any hint on how to debug STM8 targets with free tools?


On 01-01-2017 07:54, Philipp Klaus Krause wrote:
> Based on my experience in getting started with various STM8 and MCS-51
> boards, I wrote a few simple tutorials to help others. They use free
> tools only. For various evaluation boards there are three simple demos:
>
> 1) LED counter controlled by timer
> 2) Serial output
> 3) Dhrystone / Whetstone benchmarks
>
> The tutorials can be found at:
>
> http://www.colecovision.eu/stm8/
> http://www.colecovision.eu/mcs51/
>
> Please tell me if you find any mistakes, or have any suggestions for
> improvement.
>
> Philipp
>
> P.S.: Most of the STM8 tutorials have been around for a while, but
> recently I made some minor updates, and added tutorials porting the
> demos to lots of MCS-51 boards.
>
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> ___
> Sdcc-user mailing list
> Sdcc-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sdcc-user


--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user


Re: [Sdcc-user] Tutorials for STM8 and MCS-51 development using the Small Device C Compiler for various boards

2017-01-01 Thread Philipp Klaus Krause

On 01.01.2017 16:11, Augusto Fraga Giachero wrote:
> Well done!
> 
> Do you have any hint on how to debug STM8 targets with free tools?

SDCC can generate ELF with DWARF. AFAIK, ST has a gdb fork that could be
used for debugging (I've read they ship it with ST Visual develop).
AFAIK some people got that combination to work. But I haven't read about
any successes in getting the gdb source code from ST (there are posts
about that issue on ST forums).

Philipp


--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user


Re: [Sdcc-user] Tutorials for STM8 and MCS-51 development using the Small Device C Compiler for various boards

2017-01-01 Thread Augusto Fraga Giachero

> SDCC can generate ELF with DWARF. AFAIK, ST has a gdb fork that could be
> used for debugging (I've read they ship it with ST Visual develop).
> AFAIK some people got that combination to work. But I haven't read about
> any successes in getting the gdb source code from ST (there are posts
> about that issue on ST forums).
>
> Philipp
>

I've found an recent post on ST forums that has a link to an old version 
of the GDB source code modified by ST to support STM8 targets. I've 
uploaded to GitLab for convenience. Maybe one day I'll try to compile it.

Here is the link for the git repository: 
https://gitlab.com/Palmitoxico/stm8-gdb/tree/master

Augusto F. Giachero

--
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user