imx6ul hrtimer problem

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

imx6ul hrtimer problem

752 次查看
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 项奖励
回复
1 回复

747 次查看
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 项奖励
回复