Skip to content

Web App for flashing STM microcontrollers (STM8 and STM32) over serial port using the embedded ROM bootloader.

License

Notifications You must be signed in to change notification settings

ronoth/stm-serial-flasher

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web STM Flasher (serial)

STM serial flasher is a Web App for programming the STM controllers using the embedded ROM bootloader over a serial port. It uses Chrome's Web Serial API and works only with browsers based on Chromium like Chrome, Edge and Opera. The app supports STM8 and STM32 microcontrollers. Tests were done on the STM8-Discovery and STM32f4-discovery boards.

The old version, which was implemented as Chrome extension can be found in the branch of this repository.

Requirements

Latest Chromium based Browsers (Chrome, Opera, Edge). Current code base was tested on Chrome v93.

Open the Web App

Device connection

Connect the device to your PC using a TTL level shifter.

Device Host
GND GND
TX RX
RX TX
NRST DTR
BOOT0* RTS*

*: for STM32 only.

Make sure you choose the right USART interface of the targe since the bootloader is not listening on all USART interfaces. For STM32 microcontrollers check AN2606 for more info.

Connection of tested boards

stm32f4-discovery

Device Host
GND GND
PB10 RX
PB11 TX
NRST DTR
BOOT0 RTS

stm8s-discovery

Device Host
CN1-5 GND
CN4-10 RX
CN4-11 TX
CN1-1 DTR

NUCLEO-F303RE

Device Host
GND GND
PA10 TX
PA9 RX
NRST DTR
BOOT0 RTS

3rd party components

Icons: SMD 64 pin Icon by Double-J Design is licensed under CC BY 3.0

Bulma: License

Svelte: License

Font Awesome: License

Erase_Write_Routines for STM8: are taken from STM's Flash loader demonstrator (UM0462/STSW-MCU005)

License

MIT license, see LICENSE

About

Web App for flashing STM microcontrollers (STM8 and STM32) over serial port using the embedded ROM bootloader.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 67.6%
  • Svelte 30.9%
  • Other 1.5%