AnsweredAssumed Answered

Why do I get Interrupt Set Pending Register bits set on startup?

Question asked by deschambault.robert on Sep 22, 2015
Latest reply on Sep 22, 2015 by deschambault.robert
Hi,

I am writing a small piece of demo code that is located at 0x08040000 that we call when our boot loader has completed execution.  I have looked at the NVIC and everything looks clean when we exit the boot loader and jump to the demo app.  I have followed the startup code in my small demo app and I notice that when the command to reset the CFGR register (RCC->CFGR = 0x00000000) is executed in the demo app the Interrupt Set-Pending Register and the Interrupt Clear-Pending Register becomes 0x00800000.  Can someone help me understand what has happened?  I don't know if that is my problem, but when I finish my demo app I try to jump back to the boot loader and it looks like the code is frozen somewhere in my boot loader.  I am not sure if I am doing something wrong in the boot loader or in the demo app.  This all started when I tried to port our legacy boot loader and demo test code to the new HAL libraries from ST, v1.7.0.  Any comments would be greatly appreciated.

Thanks,
Bob

Outcomes