s32k344 RTA-OS

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

s32k344 RTA-OS

1,635件の閲覧回数
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,603件の閲覧回数
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,540件の閲覧回数
preh_zhenjiang
Contributor I

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

0 件の賞賛
返信