cancel
Showing results for 
Search instead for 
Did you mean: 

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

bobdeschambault9
Associate II
Posted on September 22, 2015 at 16:27

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
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
bobdeschambault9
Associate II
Posted on September 22, 2015 at 19:20

Oops!  Forgot to mention I am using an STM32F429.

Bob