hi again,

the below link doesn’t work, sorry. Here’s the correct link: 
http://www.cream-tea.de/public/STM8_Template.zip

Regards, Georg


Am 05.04.2014 um 19:27 schrieb Georg Icking-Konert <ick...@onlinehome.de>:

> hi,
> 
> in the meantime I found out how to reply to this mailing list - some things 
> are just too simple… ;-)
> 
> Actually in below contribution I wanted to share a STM8 template project for 
> SDCC and Cosmic compiler. It mainly sports a peripheral header file I wrote 
> from the STM8 user manual. But apparently attachments are removed 
> automatically in the mailing list…? 
> 
> Well, I now uploaded the STM8 template project to 
> http://ftp.cream-tea.de/public/STM8_Template.zip  Hope it helps somebody else 
> like SDCC helps me :-)
> 
> Regards, Georg
> 
> 
> 
>> Message: 4
>> Date: Sat, 29 Mar 2014 23:56:15 +0100
>> From: Master Postfach <1860-...@onlinehome.de>
>> Subject: [Sdcc-user] STM8 template project and header file
>> To: sdcc-user@lists.sourceforge.net
>> Message-ID: <2f93944a-a648-4edb-b782-c03380f15...@onlinehome.de>
>> Content-Type: text/plain; charset="windows-1252"
>> 
>> hello all,
>> 
>> I was very thrilled when I found that SDCC is finally being ported to the 
>> STM8. That?s great news for me, because in the past I used the 4k version of 
>> Cosmic. The good news is that it?s free, but the size restriction often is a 
>> big hazzle? So, thanks again team! :-)
>> 
>> As a contribution I have attached a simple C project compatible with both 
>> SDCC and STVP/Cosmic. I will phase out the latter, but currently I have to 
>> stay compatible with my legacy projects.
>> 
>> The project contains simple examples for using GPIOs, ADC, I2C etc, but most 
>> importantly it contains a file "stm8s207.h? with all peripherals from the 
>> STM8 reference manual. I don?t know if it?s of use for anybody, but I 
>> haven?t found anything similar on the net, so maybe it is? Please feel free 
>> to use! I took special care when generating this file, but of course I 
>> cannot guarantee its bug-freeness or take responsibility for its correct 
>> function.  
>> 
>> Don?t be mislead by the name of the headerfile. Apparently ST has kept the 
>> registers fixed over a wide range of devices, because it seems to work 
>> flawlessly from the discovery board (32kB consumer) to a STM8AF62AA 
>> (128kB/CAN automotive). 
>> 
>> To compile the code use SDCC with options "-mstm8 --std-sdcc99? (see 
>> _compile_run* and Makefile). To upload the code to the STM8
>> via COM-port under Windows, I used the "Flash Loader Demonstrator" from 
>> STM?s homepage. But as of today I got my own portable tool, which I will 
>> provide in a separate mail
>> via SWIM (STM8 Discovery has no UART/USB bridge), I use ST Visual 
>> Programmer. Unfortunately it?s also Win only :-(
>> 
>> Thanks again and have a nice day,
>> Georg
>> 
>> PS: if you have problems with the project, just let me know
>> 
>> 
>> 
>> 
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> -------------- next part --------------
>> A non-text attachment was scrubbed...
>> Name: STM8_Template.zip
>> Type: application/zip
>> Size: 40822 bytes
>> Desc: not available
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> 
>> ------------------------------
>> 
>> ------------------------------------------------------------------------------
>> 
>> 
>> ------------------------------
>> 
>> _______________________________________________
>> Sdcc-user mailing list
>> Sdcc-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/sdcc-user
>> 
>> 
>> End of Sdcc-user Digest, Vol 93, Issue 4
>> ****************************************
> 

------------------------------------------------------------------------------
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to