Bug 16429 - RTC corruption when setting the time (msp430 bug)
: RTC corruption when setting the time (msp430 bug)
Status: RESOLVED WONTFIX
Product: SB Radio
Classification: Unclassified
Component: Other
: Include FW version in comment
: PC Windows Vista
: -- normal (vote)
: ---
Assigned To: Maurice Alou
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-08-02 14:44 UTC by Maurice Alou
Modified: 2010-11-09 14:14 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maurice Alou 2010-08-02 14:44:37 UTC
the MX25 sets the time on msp430 by calling void set_time(u32 time) which writes the_time variable. The same variable is read-modified-written by the interrupt routine TIMER_ISR called every second.

The fix is to replace:
void set_time(u32 time)
{
	the_time = time;
}

with:
void set_time(u32 time)
{
	while (the_time != time) the_time = time;
}
Comment 1 Mickey Gee 2010-11-09 14:14:11 UTC
Not seen, so closed for now.