Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
693 Views

reset manager status register values after power up

Running baremetal application with preloader from EDS 15 

 

According to cyclone v handbook page 3-17, register stat of reset manager keeps information about 

cause of reset. 

 

I am trying to read this register after warm reset, cold reset or watchdog reset.  

Expect to have 

bit swcoldrst is 1 while cold reset caused by software 

bit mpuwd0rst is 1 while watchdog reset 

 

In reality, i got all 0. Altera's support suspects preloader to reset status register. 

Need help to find this in preloader.
0 Kudos
1 Reply
Altera_Forum
Honored Contributor I
29 Views

I think these registers are not set at first power on. I think they start out at zero. If it is being reset in the preloader, you can find out by adding code to look for changes. Put in code at the very beginning to save the value(s) you are interested in. You can't print yet because I/O isn't initialized. Look for the code that produces the first visible printf. Print the value(s) read at power on there to see what it was.

Reply