[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ERC32 clock counter incorrect



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: http://rtems.rtems.org/pipermail/rtems-users/attachments/20090306/f2145f66/attachment-0001.html