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.

Problem using Timer3-Timer7 on AM335x

Other Parts Discussed in Thread: AM3359

Hi,

I'm using SYS/BIOS v6.35.04.50 on AM3359 chip. The default Clock module instance uses hardware DMTimer2 and everything works fine. However, if I try using the Timer module with different HW timer it all stops working.

For example, while having the following line in configuration file:

Clock.timerId = 0;   // Use DMTimer2

it works fine. But replacing it with:

Clock.timerId = 1;   // Use DMTimer3 (or any of 4..7)

Generates "data abort" exception on first attempt of dmtimer module to write the timer registers:

timer->tclr = 0; in Timer_initDevice()

which attempts writing address 0x48044038 and generates the exception.

1. First I suspected it is caused by the MMU, but it does not seem to be the problem.

2. Can the be related to some clocks configuration? When I think about it, where does SYS/BIOS program PRCM module to activate TIMER2 clock?

What do I miss? What can cause this problem?

Regards,
Vasili