2023-02-01 06:12 AM
Using a STM32G0F06
I have a bootloader/application that I am debugging. I am facing a strange problem. Often, I command the app to drop to bootloader (via a software reset). When I execute the software reset code, occasionally the core locks up.
Here is a video showing the core registers and the disassembly as I step debug through the reset code:
A couple of questions:
Solved! Go to Solution.
2023-05-29 12:41 PM - edited 2023-11-20 09:11 AM
Actually, I just figured out why this behaviour was occurring. This is from the STM32G030F6 device errata sheet:
I fixed it by:
2023-02-01 07:26 AM
It's either the application was not flashed or unstable BOOT0 input - the bootloader is invoked instead of your application
2023-05-29 12:24 PM - edited 2023-11-20 09:11 AM
The problem is that I have the option bytes configured to not care about the BOOT0 input (see screenshot below). From my research it seems like this should be impossible?
2023-05-29 12:41 PM - edited 2023-11-20 09:11 AM
Actually, I just figured out why this behaviour was occurring. This is from the STM32G030F6 device errata sheet:
I fixed it by: