2025-04-09 10:57 AM
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 ?
2025-04-09 11:45 AM
2025-04-09 11:55 AM
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 ?
2025-04-09 12:10 PM
Pardon?
2025-04-09 1:05 PM
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
2025-04-10 12:00 AM
> 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?
2025-04-10 4:39 AM
The connectivity of my logger is a Physical Micro USB port, used for uart emulation (VCP / HAL ST original library).
2025-04-10 4:42 AM
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.
2025-04-10 4:46 AM
@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.