
http://www.ebay.com/sch/i.html?_from=R4 … 8s&_sop=15
incidentally there’s yet another (historical) thread about moving from stm8s to stm32, i seemed going in an opposite direction
http://www.stm32duino.com/viewtopic.php?f=2&t=885
but given that all it takes is an st-link v2 dongle to program both the stm32f103 blue pill & that stm8s, it seemed like something worth exploring.
i’m thinking about a job that’s probably far too simple for even stm8s, read a 4×4 keypad (eats 8 pins) and send the results over 2 uart pins or i2c pins, of course the other alternative as always is just use resistors & hook those up to an ADC pin
For small things/tasks, I’m rather using STM32F030, they are TSSOP20 as well, but same compiler as other STM32 can be use.
incidentally the stm32f030 boards cost as much as a blue pill stm32f103, but the board producers throw in a shiny 8 mhz crystal
http://www.ebay.com/sch/i.html?_odkw=st … 0&_sacat=0
but even an stm32f030 is significantly more elaborate than do the stm8s
it has 12 bits adc vs 10 bits on stm8s
runs at a much faster 48mhz vs stm8s 16 mhz
has a dma controller vs stm8s none
and significantly more hardware resources compared to stm8s
interestingly an stm8s seemed to be possibly much better than do various other 8 bit mcus e.g. some pic mcus etc
but as for boards between stm32f103 (blue pill) vs stm34f030 boards, for the same price it would be more worth it to get the stm32f103 as system clocks is faster, has more resources and importantly stm32f103 is a native usb device
There resources are on par with your typical pic or avr. But at a fraction of the cost.
A few downside.
1. Compiler choices are limited. Cosmic isn’t that great to use so I’m exclusively on iar.
2. Slow chip. Limited number of registers so …
3. It has that retarded exit design in all stm chips.
Stm32f030f is an interesting chip and like the STM8S has tons of undocumented features.
There are several other threads about the STM8, as initially we thought perhaps it would be possible to port the existing F103 core to it.
However is a completely different beast.
Re: F030
Looks like there are some F030 boards on eBay e.g.
http://www.ebay.com.au/itm/NEW-STM32F03 … 2170349977
which are marginally cheaper than the BluePill, but they appear to be the STM32F030F4, which only has 16k Flash and 4k Ram, so would only be usable on projects with very small application code.
Also its only a 48Mhz device, so would be slower than the BP.
So I think you BP is still the best value

yup, they are ‘completely’ different from stm32 has much less ram & flash
only similarity it seemed is that it seemed they can be programmed from the same st-linkv2 dongles
i think stm8s makes fairly decent ‘delegate’ processors, in particular if i run out of pins say on maple mini / blue pill i may resort to ‘delegate’ some io functions to a separate mcu, e.g. a keypad controller, but for keypad i’d guess one way is to chain them up using resistors and use an analog pin to do it, otherwise it may take as many as 8 pins for a 4×4 keypad
i’ve read somewhere that stm8s makes good stepper motor controllers too, just that i’m not too sure if they would ‘conveniently’ replace those pololu steper motor modules https://www.pololu.com/product/1182
i think for stm8s, it would be necessary to use mosfet transistors or bipolar transistors to drive stepper motors if that’s needed, that would mean additional hardware on boards but possibly more ‘stable’ compared to those ‘integrated’ pololu modules
it is rather ‘extreme’ that today mcu’s like stm8s could actually cost less than 2 pieces of 8 bit shift registers (in particular in small quantities, e.g. for only 2 pieces the bulk of that cost is probably postage ), given that it may be more ‘cost effective’ to just do mcu rather than basic logic blocks like those 74hc* logic modules
I made a series of those ghetto boards with those chips, by simply soldering them onto on adapters.
They ran flawlessly .

there are some rather interesting explorations out there on stm8s too like this:
https://github.com/TG9541/stm8ef/wiki/S … rogramming
while i’d not really think doing forth on stm8s is really practical it shows how far some have tried
i think for forth @jcw here as well as on his web jeelabs apparently did a good one which runs on stm32
https://github.com/jeelabs/mecrisp-stellaris
http://www.st.com/resource/en/applicati … 089834.pdf
it seemed pretty feasible to run stm32f030 with fairly low component count e.g. an ldo, some resistors & caps and run off hsi
i’d probably procrastinate that for another ‘project’ as i’d also need to figure out how to do smd soldering, i’m a little spoilt living off 0.1″ spaced pins, i’ve got an nrf51822 module only to realise how ‘impossible’ is it to solder the castellated 1.2mm pins

http://www.ebay.com/itm/Mini-System-Dev … 1978736223
taking a look at one of those common f030 boards on ebay it would seem part of the costs comes from the component counts e.g. an 8mhz crystal, leds, reset button a boot0 jumper and a generally well done board with a proper silk screen. i won’t say that this is ‘expensive’ in that sense as it would possibly take quite a bit of effort to design and make such a board. but trimming it to the minimum components may again means compromise of sorts. just that using stm32f030 would at least be s/w compatible with the current gcc tool chain
i.e. if i’m working on a stm32f030 ‘project’ i’d get that board rather than trying to trim for minimum components
Its also cropped on in this thread http://www.stm32duino.com/viewtopic.php?f=42&t=2131
I don’t know if the STM8 would be worth using for most projects, even though its cheaper than the STM32F103, but I have noticed that plenty of small devices available on eBay, like LED voltmeters and other displays and some USB current monitoring dongles I bought all use the STM8
It would be good to be able to, For Example, re-purpose a 4 digit LED volt meter into perhaps a countdown timer, or even a clock
http://www.st.com/content/st_com/en/pro … 103f3.html
it would be quite a challenge to do partially what we are doing on stm32
however, it is a 8 bit device and hence would be more ‘memory efficient’ vs stm32
my thoughts are that they may make good ‘delegate’ mcus / subsystems working in conjunction with stm32
take for instance a 4×4 key pad, this would take 8 gpio pins (of course i can use resistors and do analog reads but that has its own disadvantages). i’ve thought about using shift registers but it would take 2 basic logic ic one for parallel to serial, the other for serial to parallel, takes more board space, more components and does not really reduce the interfacing pin counts to the main mcu.
in this case if space is a premium and fewer components counts is desired, stm8s could really function as a ‘delegate processor’ and perhaps interface the main mcu on i2c lines which takes just 2 pins. i’d think there are more use cases than that e.g. motor control delegate as each stepper motor possibly use 4 pins, sensor delegate, comm delegate etc