-
Notifications
You must be signed in to change notification settings - Fork 7
Home
gicking edited this page Jan 3, 2015
·
21 revisions
This tool allows to upload hexfiles to the STM8 microcontroller via USB using the built-in ROM bootloader (BSL). It provides a similar functionality as the "Flash Loader Demonstrator" by STMicroelectronics (STM), but should support all Windows and Posix operating systems (see supported platforms).
See other Wiki pages for instructions on building and using the software. Have fun!
Notes:
- for the popular STM8 Discovery Board an additional UART->USB adapter is required (e.g. see UM232R by Farnell), since the board connects to the PC only via SWIM (=debug interface)
- the STM8 bootloader has to be enabled for uploading code
- for a virgin device this is automatically the case
- uploading code via STM8_serial_flasher activates the BSL by default (see 'usage')
- for other devices the BSL can be enabled via the free "ST Visual Programmer“ tool (Windows only) by STM
- the STM8 bootloader protocol is described in application note UM0560, wich is available from the STM homepage. The STM32 uses a very similar communication protocol, so adapting the flasher tool for STM32 should be straightforward. However, I have no board available, but please feel free to go ahead...
- this software includes some RAM code by STM, which is required for flash programming. This code was copied from the freely available "Flash Loader Demonstrator" by STM. All rights of this RAM code remain with STM.