imx6ul hrtimer problem

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx6ul hrtimer problem

509 Views
wayneshih
Contributor I

 

Hi,

I'm using imx6ulevk YOCTO sumo linux kernel L4.14.98-2.3.1.

I'm testing the minimum timing of hrtimer in imx6ul. My testing is just enable the hrtimer for a period (e.g 5 ms) and each period we toggle the gpio result.

I found that the minimum timer is only 96 micro seconds even though I set the timing to 50 micro second. It's quite slow.

In my application, I want at least 10 micro seconds timer.

Anyone have the idea?

0 Kudos
1 Reply

504 Views
igorpadykov
NXP Employee
NXP Employee

Hi wayneshih

 

reason for that may be large software overheads as linux is running many tasks

concurrently. One can try to achieve better resolution with M4 SDK (look at gpt_timer.c, epit.c)

SDK2.2_iMX6UL_WIN

 

Best regards
igor

0 Kudos