ERC32 clock counter incorrect

Manuel manuel.coutinho at
Fri Mar 6 15:29:38 UTC 2009



We have discovered a bug in the ERC32 clock driver (at least for the RTEMS
4.8.0 version).


Currently, the RTC counter is being initialized with (on the ckinit.c file)



ERC32_MEC.Real_Time_Clock_Counter = \




This way it is adding an extra microsecond for each clock tick.

The correct set value should be


ERC32_MEC.Real_Time_Clock_Counter = \

      BSP_Configuration.microseconds_per_tick - 1;



the other SPARC BSPs (leon2 and leon3) clocks seam ok :)



Kind regards

Manuel Coutinho

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the users mailing list