2025-11-27 5:31 AM - edited 2025-11-27 5:44 AM
Hello - I have a product I am commercially developing for a company - an industrial sensor system - STYM32G474 x 8 - using them for their very fast ADC - all good so far. I am using a SPI bus to get all the data back to as Linux SBC (pi CM5 for now - might change next year - needs 2 cameras and NVME).
I would like to update all the STM32G474 over UART (for now) then over to SPI for production - using the raspberry pi cm5.
Is there an open source C++ / python program that can do this from ST? - something like the old "https://github.com/stm32duino/stm32flash" but supports the newer chips? perhaps OpenOCD would work but that is even more connectors etc.
2025-11-27 6:34 AM
@Spam4tea wrote:Is there an open source C++ / python program that can do this from ST?
I don't know, but the protocols are documented:
AN3155, USART protocol used in the STM32 bootloader
AN4286, SPI protocol used in the STM32 bootloader
2025-11-27 6:40 AM - edited 2025-11-27 6:45 AM
Hello,
@Spam4tea wrote:
Is there an open source C++ / python program that can do this from ST?
To my knowledge there is no open source HOST bootloader made by ST.
As stated by @Andrew Neil you need to develop your own Host bootloader based on the ST bootloader specifications described in the provided application notes.
Yu can also inspire from other developers work:
https://github.com/glegrain/STM32-SPI-Bootloader-host