Skip to content

Commit 6e7d5cf

Browse files
GaofengZhangNXPdleach02
authored andcommitted
mcux: fix hang when cpu3 reset.
Destroy cpu1 and cpu3 imu task but not set flag when cpu3 reset. because flag is not set, so zephyr task list is loop when create cpu1 and cpu3 task again, and will hang when pick next task Don't reset imu_task_flag when destroying imu task when deinit imu Signed-off-by: Gaofeng Zhang <[email protected]>
1 parent ca9c81a commit 6e7d5cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mcux/mcux-sdk/components/rpmsg/fsl_adapter_rfimu.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1544,16 +1544,16 @@ static void HAL_ImuTaskDeinit(uint8_t link)
15441544
#ifndef __ZEPHYR__
15451545
(void)OSA_EventDestroy((osa_event_handle_t)ImuQ13FlagsRef);
15461546
(void)OSA_TaskDestroy(ImuTaskHandleCpu13);
1547-
#endif
15481547
imu_task_flag &= ~(1U << link);
1548+
#endif
15491549
}
15501550
else if (link == kIMU_LinkCpu2Cpu3 && (imu_task_flag & (1U << link)) != 0)
15511551
{
15521552
#ifndef __ZEPHYR__
15531553
(void)OSA_EventDestroy((osa_event_handle_t)ImuQ23FlagsRef);
15541554
(void)OSA_TaskDestroy(ImuTaskHandleCpu23);
1555-
#endif
15561555
imu_task_flag &= ~(1U << link);
1556+
#endif
15571557
}
15581558
else
15591559
{

0 commit comments

Comments
 (0)