cancel
Showing results for 
Search instead for 
Did you mean: 

not able to flash STM32G0B1RCT6 MCU via UART

kumar_b
Associate

Hello,

We have switched from STM32g071 128kb flash to stm32g0b1rct6 with 256kb flash.

We are able to flash the application binary from ST-LINK in STM32 cubeprogrammer. but, not via UART protocol.

We are using the default STM32 system bootloader. We have used option bytes to force the MCU to jump to bootloader and start flashing via UART in STM32Cube programmer. But, we are not able to connect the stm32 Cube programmer tool to MCU. the command 0x7F is being sent from the Cubeprogrammer ,but there is not response from the new MCU. So, flashing sequence is not staring.

I would really appreciate, if I can get some help to solve this issue.

Thanks in advance.

 

1 ACCEPTED SOLUTION

Accepted Solutions

No, no code changes are needed to enable UART. Should be working if you got everything else correct.

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

3 REPLIES 3
TDK
Guru

Make sure the pins and interface you are using are supported by the bootloader per AN2606.

Make sure other pins supported by the bootloader are not active. For example, make sure USB is not active.

Recheck wiring in general and use a scope or logic analyzer to verify correct activity on the bus.

If you feel a post has answered your question, please click "Accept as Solution".

Thanks for the quick response @TDK ,

The pinning layout is same for STM32g071 and stm32g0b1rct6 MCU's as per the AN2606 document.
we are able flash in stm32g071 MCU via UART. but, not in the stm32g0b1rct6 MCU. 

Do we need to some additional changes in code (registers) for UART flashing to work in new MCU?

No, no code changes are needed to enable UART. Should be working if you got everything else correct.

If you feel a post has answered your question, please click "Accept as Solution".