[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AT91RM9200 ticker error
- Date: Fri, 26 Nov 2004 16:14:38 +0100
- From: Dierk.Haberhausen at wincor-nixdorf.com (Haberhausen, Dierk)
- Subject: AT91RM9200 ticker error
I'm started working on a CSB337 board with a AT91RM9200 CPU.
I make a simple blinking LED test and I was wondering why
the ticker of 10ms was only 9.365ms long.
After some investigation I found out that in the
c\src\lib\libcpu\arm\at91rm9200\clock\clock.c file the
reload timer value is calculated wrong.
I change line 73 from
st_pimr_reload = ((BSP_Configuration.microseconds_per_tick * 1000) /
st_pimr_reload = ((BSP_Configuration.microseconds_per_tick * slck) /
and now the ticker ticks with 10ms!
Currently I work with the rtems-4-6-1 version from
because I'm not able to access the cvs server out off my office.
So I'm not sure if the problem solved currently???
Therefore can someone check this and change it if necessary...
Thanks and have a nice weekend!