sam3s rtc bug ?

Discussion around product based on ARM Cortex M3 core.

Moderators: nferre, ncollot

Posts: 12
Joined: Mon Aug 08, 2011 5:59 pm

sam3s rtc bug ?

Mon Feb 27, 2012 7:01 pm

I'm using the RTC as the main clock for my project,
once in about 10 minutes I update the time & date from a Time-server.
once in a while (this is very unpredictable), the
"RTC_SetTime(...)" command, supplied in the BSP hangs.
this happens in this line:

Code: Select all

while ((pRtc->RTC_SR & RTC_SR_ACKUPD) != RTC_SR_ACKUPD) ;
this is because the ACK for the RTC update is never updated in the RTC_SR register.

does anyone knows what can cause this ?

BTW, I've checked...
the date & time I'm updating are perfectly normal.
Posts: 2
Joined: Wed Feb 22, 2012 9:36 am

Re: sam3s rtc bug ?

Wed Feb 29, 2012 10:05 am

i have not really worked in detail with rtc but maybe i can give you a hint.

is there another function which reads the status register? after reading of the status reg, all flag will be cleared. maybe your ACK will also be cleared.

Return to “SAM3 Cortex-M3 MCU”

Who is online

Users browsing this forum: No registered users and 4 guests