2024-11-06 09:49 PM - last edited on 2024-11-06 11:28 PM by SofLit
Hi Team,
I am facing an issue regarding the open bootloader. Recently, I downloaded the open bootloader source code for the STM32U0 boards, and I was successfully able to load hex files via the STM32Cube Programmer over UART.
However, I encountered a problem when I try to load hex files with incorrect addresses. Specifically, when I load an application hex file with an incorrect address, the STM32Cube Programmer is erasing my bootloader source code.
For example, when I flash my bootloader source at address 0x8000000 and load an application hex file with the address 0x8000100, everything works as expected and I do not encounter any issues. But if I try to load an application hex file with an incorrect address like 0x8000004, the bootloader source code gets erased.
I have attempted to handle this issue within the bootloader source code, but I am unable to address it from the source code side. Is there a way to prevent this from happening or handle such situations in the bootloader code?
I would appreciate your guidance on how to resolve this issue.