2025-01-28 05:39 AM
I am trying to program a stm32l451cet6 microcontroller. My code works perfectly fine for 5-6 debug sessions. After a few debug sessions, this warning pops up with a different address for every hardware I use.
When this break at address pops up, my code stops working. I tried debugging and found there was no break point at any line of the code. Why is this break even popping up?
Solved! Go to Solution.
2025-01-30 08:46 AM
It can start in ROM if the FLASH is erased at some point in the reset, startup and erase cycle.
BOOT0 = LOW should be adequate to start viable FLASH code at power up.
Make sure SCB->VTOR points at the FLASH vector table, should be handled in SystemInit()
2025-01-28 05:59 AM
You're in the system memory. Few possibilities:
2025-01-29 11:52 PM
The BOOT0 pin is connected to GND. Is this a problem? Should I connect it to VCC or leave it hanging?
2025-01-30 06:31 AM
BOOT0 should be grounded or pulled to ground.
2025-01-30 08:46 AM
It can start in ROM if the FLASH is erased at some point in the reset, startup and erase cycle.
BOOT0 = LOW should be adequate to start viable FLASH code at power up.
Make sure SCB->VTOR points at the FLASH vector table, should be handled in SystemInit()