2025-03-25 2:25 AM - last edited on 2025-03-25 3:18 AM by Andrew Neil
Hello Everyone,
We have a requirement to flash firmware from One STM32G0B1 MCU1 to Second STM32G0B1 MCU2 via UART.
The STM32_Programmer_CLI will be connected to MCU1 via UART. The MCU1 and MCU2 will be connected together via a different UART for flashing.
The MCU1 should act as a mediator between STM32 Programmer and MCU2 for flashing.
Is it possible to achieve the above requirement?
If It is possible, could anyone share the reference documents or reference software for the same.
We really appreciate your support.
Thanks in Advance,
Best Regards,
Naveen
2025-03-25 4:01 AM - edited 2025-03-25 4:02 AM
Hello @kumar_b
You can refer to STM32CubeProgrammer software description document specifically section 3_ STM32CubeProgrammer command line interface (CLI) for MCUs. it details the available commands through various protocols ( I2C, UART, USB, ...) .
With regards
2025-03-25 4:01 AM - edited 2025-03-25 4:08 AM
Hello,
As I understood you need to make an UART to UART bridge to update a second MCU.
Yes it's possible and I did it years ago but unfortunately I don't have the code to share.
You need to enable the UART Rx interrupts, the data received from CubeProgrammer will be retransmitted over the second UART and vice versa.