AnsweredAssumed Answered

Failed to open multiple timer nodes in 2011R1-RC1

Question asked by shekharlav on Nov 15, 2011
Latest reply on Nov 18, 2011 by shekharlav

Hi,

 

I am using TLL6527M V1.1 platform with 2011R1-RC1 distro built using 2011R1-RC2 toolchain.

 

I am trying to test the blackfin simple timer. Hence I did the following tests:

 

1. Open 2 timer nodes:

 

The core code is :

 

Run 1:

fd[0]=open("/dev/timer0", O_RDWR);

fd[1]=open("/dev/timer1", O_RDWR);
Run 2:

fd[0]=open("/dev/timer1", O_RDWR);

fd[1]=open("/dev/timer2", O_RDWR);

 

The executable was called "Timer"

--------First Run used timer0 and timer 1. The generated Log Dump is TimerTestLog.txt

--------Second Run used timer1 and timer2. The generated Log Dump is TimerTestLog1.txt

 

It can be observed from the above logs that "open" was successful for only the first timer node in each of the runs (timer0 for run 1 and timer1 for run 2)

 

2. Open-Close sequence for each of the 8 timers:

 

The core code is :

 

fd[0]=open("/dev/timer0", O_RDWR);

close(fd[0]);

fd[1]=open("/dev/timer1", O_RDWR);

close(fd[1]);

fd[2]=open("/dev/timer2", O_RDWR);

close(fd[2]);

fd[3]=open("/dev/timer3", O_RDWR);

close(fd[3]);

fd[4]=open("/dev/timer4", O_RDWR);

close(fd[4]);

fd[5]=open("/dev/timer5", O_RDWR);

close(fd[5]);

fd[6]=open("/dev/timer6", O_RDWR);

close(fd[6]);

fd[7]=open("/dev/timer7", O_RDWR);

close(fd[7]);

 

The generated Log Dump is TImerTestLog2.txt

The executable was called "Timer_Open_Close"

 

The Log Dump shows that all the timers were successfully opened.

 

 

Is this situation by design for 2011R1-RC1 or am I doing something wrong?

 

Regards,

Shekhar

Outcomes