cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 custom Bootloader

jlecl.1
Associate III

Dear community,

My device is a logger. the configuration is over USB (UART vcp) via a web interface.
i'm able to connect it, to configure it and store data correctly.
i'm using a stm32L05x (whithout embeded DFU) and ,important, no external reset button.

My aim is to propose a firmware update over the webpage (device already connected).
what do you propose to me for my need.
do you have a experience, example or website to explain me the right way to do that .

my reseach , give me a pyserial could be a good way for the webinterface.
but what about the firmware update ?



 

 

8 REPLIES 8

https://community.st.com/t5/stm32-mcus-embedded-software/stm32g0b1ret6-fota-update-through-uart/m-p/790491/highlight/true#M61959

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

thanks for your rapid reply.

My post is because i'm not conformable with a system of Two App and bootloader ( i think is the good reflexion)
i' ve seen all document, the theory is seem to be clear but in pratice is often different.
do you have an example for trying, to sur that is work as i want before modified it for my STM32xx ?

Pardon?

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

All a bit muddled..

A Web Interface? Or a Serial Interface to the STM32 via a USART on ST-LINK VCP or your own USB CDC Device implementation?

At a Serial level, a terminal supporting X/Y-MODEM might be the "easiest"

Generally you'd want the implementation split between Boot Loader and App. Simplest BL probably about 4KB, but with a lot of libraries and code could get significantly bigger

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Pavel A.
Evangelist III

My device is a logger.

Logger to what? Is there some external flash chip or SD card that can be used to stage the update?

 

 

The connectivity of my logger is a Physical Micro USB port, used for uart emulation (VCP / HAL ST original library).

Exact, it's another way.
My logger is a ultra tiny things ( 11mm x17mm, micro USB port included), so no sdcard BUT there is a NAND flash onboard .
my reseach last night with me some example of "IAP" update.
more news after try this week.


@jlecl.1 wrote:

The connectivity of my logger is a Physical Micro USB port, used for uart emulation (VCP / HAL ST original library).


So what did you mean by, "web interface" ?

Is it really just a local GUI running on the PC? Or what?

A diagram may help.

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.