I just completed a rough Version 0.3 of stm8flash – a handy little tool that allows you to programm a STM8 over a serial uart interface (using the STM8 internal bootloader)
The software is based upon stm32flash written by Geoffrey McRae – many thanks to you that way. STM is using a similar Bootloader-Protocol for the STM32s and STM8s which made porting the flashertool not so difficult.
The stm8flash can be downloaded via sourceforge. It works as desired for my 32K STM8S105 device. But it is only designed to work with 32K devices so far. Also it is currently using the so-called “Reply” Mode, which is available on STM8A-128K, STM8S-32K, STM8S-128K and STM8L-64K. If you want to use this tool in non reply mode, then take a look at stm8.c and search for “REPLY” – it should be fairly easy to adapted to the other devices as well.
stm8flash also introduces a new flag “-d”, which stands for using the DTR-Line to trigger a device reset. (Arduino-Style 😉 )
Maybe in future somebody could try to merge stm32flash and stm8flash as the share a lot of common code.
What was really helpful for debugging the code and get the thing running, was a SALEAE Logic-Analyzer (with Software RS-232 decode functionality). It is definitely a powerful tool for such tasks.
Further this step just marks the first Milestone for the ongoing NetIdee-Project. 🙂