STM32L4R9 fails execution by going to an invalid address for program execution.
I am using an STM32L4R9ZIT. I have written a simple code to toggle a GPIO high and low, with a delay of 2 seconds in between. However, the controller never actually executes this functionality. When I run in debug mode, everything seems to be going alright if I manually run it line by line.
But the moment I let the controller resume execution and then pause it, I see that it is now execution code at a location of 0x1fff3a3c. However, my original program was located near 0x80000000.
The issue I think is that the program counter always gets corrupted at ends up near 0x1ff3a3c. However, this never happens when running through the program instruction by instruction.
Any help with this would be greatly appreciated.
