not able to flash STM32G0B1RCT6 MCU via UART
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-25 10:57 PM
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.
Solved! Go to Solution.
- Labels:
-
Bug-report
-
STM32Cube MCU Packages
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-03-03 5:41 AM
No, no code changes are needed to enable UART. Should be working if you got everything else correct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-25 11:45 PM - edited ‎2024-02-25 11:46 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-25 11:56 PM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-03-03 5:41 AM
No, no code changes are needed to enable UART. Should be working if you got everything else correct.
