Am 05.04.2014 um 17:57 schrieb Master Postfach <1860-...@onlinehome.de>:
hi, this is just a test to see if adding to a thread actually is by a simple reply... 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