This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

am3358 timer2 autoload value is wrong

cpu: am3358bzcza100

os: vxworks 6.9

when i use the timer2 as a main timer according to the windriver's BSP , i find an error as belows:

the timer2 use autoload mode, so the TCRR(timer counter register) will be accumulated according to the crystal oscillator's work. when TCRR is 0xFFFFFFFF,it will cause a interrupt and TCRR will be autoloaded to be the value of TLDR(timer loader register).this means the TCRR will be larger or equal to TLDR forever.

however, i find in my programe ,sometimes the TCRR is smaller thanTLDR, and the value of TCRR is randomly,so because the base timer is wrong ,my program is pended.

 

I find that timer driver in vxworks6.9 use autoload mode(TCLR: AR=1)  and the driver doesn't change the value of TCRR.

so i think this is a hardware bug of  timer2, i want to know whether TI encounters this trobule. if not how can i further test this trobule?