Going crasy with the Global timer on my i.MX6

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

Going crasy with the Global timer on my i.MX6

跳至解决方案
976 次查看
tiagoduarte
Contributor II

Dear all.

I'm working with a Nitrogen6X which has a i.MX6 chip.

I'm trying to configure the global timer to be the timer for the scheduler of the RTOS that I'm porting to the board.

I can configure it the way I want but the sticky interrupt flag is always at 1 after I serve the interrupt.

The ARM Information Center states that "The event flag is cleared when written to 1." What does this mean?

I have tried to write 0 directly to the register that holds the flag (Global Timer Interrupt Status Register), I tried to write 1, I tried to disable the interrupts of the timer and the compare functionality, but nothing seems to work.

Thanks in advance

Tiago Duarte

标记 (2)
0 项奖励
回复
1 解答
704 次查看
tiagoduarte
Contributor II

Solution: turn of the compare flag and write 1 to the Global Timer Interrupt Status Register. Then turn on again the compare flag.

在原帖中查看解决方案

0 项奖励
回复
1 回复
705 次查看
tiagoduarte
Contributor II

Solution: turn of the compare flag and write 1 to the Global Timer Interrupt Status Register. Then turn on again the compare flag.

0 项奖励
回复