[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AT91RM9200 ticker error
- Date: Mon, 29 Nov 2004 08:20:08 +0100
- From: Thomas.Doerfler at imd-systems.de (Thomas Doerfler)
- Subject: AT91RM9200 ticker error
greetings from munich :-)
In CVS, the file "clock.c" is still in its initial version, see
I have filed a PR on this problem for this bug in
in PR 727
> 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!
> (bloody mathematic...)
> 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!
IMD Ingenieurbuero fuer Microcomputertechnik
Thomas Doerfler Herbststrasse 8
D-82178 Puchheim Germany
email: Thomas.Doerfler at imd-systems.de
PGP public key available at: http://www.imd-