Know what make board reboot?

Discussion around products based on ARM Cortex-A5 core.

Moderator: nferre

El Berto
Posts: 16
Joined: Mon Feb 17, 2014 7:03 pm

Know what make board reboot?

Wed Dec 10, 2014 5:30 pm

Hi guys, is there a way to detect why microcontroller has rebooted?
I would like to know if MCU has just been powered or it wakes up from RTC shut-down in linux.
Maybe a register/flag o something similar?
Thanks.
blue_z
Location: USA
Posts: 1956
Joined: Thu Apr 19, 2007 10:15 pm

Re: Know what make board reboot?

Thu Dec 11, 2014 1:43 am

El Berto wrote:Hi guys, is there a way to detect why microcontroller has rebooted?
Atmel catogorizes the SAMA5D series as a microprocessor, not a microconroller. See this.
El Berto wrote:I would like to know if MCU has just been powered or it wakes up from RTC shut-down in linux.
Maybe a register/flag o something similar?
I'm not aware of any status register that indicates the reason for the reboot.
You could write code values in one of the general-purpose backup registers prior to shutdown/power-off/reset, and inspect the non-volatile register on resume/reboot.
If you maintain a time value (e.g. seconds since the epoch) in another GPBRegister, then the powered-off interval could be estimated.

Regards
blue_z
Location: USA
Posts: 1956
Joined: Thu Apr 19, 2007 10:15 pm

Re: Know what make board reboot?

Wed Dec 17, 2014 12:21 am

Check out the Reset Controller Status Register. Five causes of a reset can be identified.

Regards

Return to “SAMA5D Cortex-A5 MPU”

Who is online

Users browsing this forum: No registered users and 2 guests