Skip to main content
rsh.1
Associate II
June 28, 2023
Question

Flashing STM32 with hyper terminal using inbuilt bootloader

  • June 28, 2023
  • 10 replies
  • 7338 views

Hi,
I was flashing the STM32 Nulceo_h723zg which is having inbuilt primary bootloader in STMCube programmer, by making BOOT pin high via UART.

But i want to flash by using hyper terminals like teraterm.

How can we send binary or hex files into stm board by using such terminal.

Thanks.

This topic has been closed for replies.

10 replies

Pavel A.
June 28, 2023

Teraterm is a free, opensource software and it supports plug-ins. You can make a STM32 programmer plug-in for Teraterm.

rsh.1
rsh.1Author
Associate II
June 29, 2023

Hi @Pavel A. ,
Do you know which protocol used by the inbuilt bootloader via uart, so that i can make the those settings in Teraterm.

waclawek.jan
Super User
June 29, 2023

The USART protocol used in the STM32 bootloader is described in AN3155.

JW

Tesla DeLorean
Guru
June 29, 2023

If you want regular Terminal apps to be able to program, would suggest you code a loader supporting X-Modem. Or processes Hex file lines, but that lacks inherent flow control or pacing.

ST's protocol is more involved.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
rsh.1
rsh.1Author
Associate II
June 30, 2023

Hi @Tesla DeLorean ,
Can i get the sample C library to flash the application to inbuilt bootloader of stm32 via UART, Currently using stm32 nucleo_h723zg.
Will use libraries instead of other hyper terminals.

 

MM..1
Super User
June 30, 2023

STMProgrammer have this code inbuild, why dont use ???

Pavel A.
July 2, 2023

>STMProgrammer have this code inbuild, why dont use ???

Yeah. Should be possible to add a teraterm menu command or "macro" that runs STM32_Programmer_cli with a cooked command line ...

rsh.1
rsh.1Author
Associate II
June 30, 2023

Hi @Tesla DeLorean , I didnt get exactly what i want .!!
I got python scripts from here : https://pypi.org/project/stm32loader/#files
Similarly looking for in C library 

Tesla DeLorean
Guru
June 30, 2023

This

https://github.com/arduino-libraries/MKRWAN/tree/master/examples/MKRWANFWUpdate_standalone

via https://github.com/arduino/mkrwan1300-fw

Understand that I'm frequently posting from a phone so will often point in the direction to go, not drive you to a destination.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..