s32k344 RTA-OS

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

s32k344 RTA-OS

663 Views
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 Kudos
Reply
2 Replies

631 Views
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 Kudos
Reply

568 Views
preh_zhenjiang
Contributor I

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

0 Kudos
Reply