cancel
Showing results for 
Search instead for 
Did you mean: 

Copy firmware from one STM32 MCU to another using STM32_Programmer_CLI.exe

kumar_b
Associate II

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

2 REPLIES 2
SirineST
ST Employee

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

If your question is answered, please close this topic by clicking "Accept as Solution"
mƎALLEm
ST Employee

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.

 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.