s32k344 RTA-OS

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

s32k344 RTA-OS

1,928 次查看
preh_zhenjiang
Contributor I

We recently used RTA-OS to configure the OS. After integration, it was found that the task would break the counter's software interrupt when running.

/**************************/
/* PIT_1 channel 1 1ms return function */
/**************************/
void Gpt_Pit1Notificaiton(void)
{
    gpt_timer_count++;
    IncrementCounter(MillisecondCounter);
}
 
We configured a 10ms periodic task. The PIT1 interrupt is interrupted when the task executes time operation 1ms. For example, if the task execution time is 3ms, the PIT1 interrupt will be interrupted twice, causing the task cycle to be stretched to 12ms; if the task execution time is 5ms, the PIT1 interrupt will be interrupted fource, causing the task cycle to be stretched to 14ms. But, if the task execution time is less than 1ms, the task cycle is normal. 
We are using the 2.0.0 SDK package. 
Have you encountered any related problems and how to solve them? 
 

 

0 项奖励
回复
2 回复数

1,896 次查看
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @preh_zhenjiang 
I checked the history but I can see nothing related to PIT what could explain similar behavior.
But anyway, I think some deeper debugging will be necessary. PIT handler should be relatively fast, I don't think that this handler could add such delay. It looks like there's something else what inserts the delays. I'm afraid I can't provide more help without more details.
Regards,
Lukas

0 项奖励
回复

1,833 次查看
preh_zhenjiang
Contributor I

Thanks for your reply. I have solved the problem. Something went wrong  with the ISR configuration. 

0 项奖励
回复