systick由freertos初始化,void SVC_Handler(void)、void PendSV_Handler(void)也已注释,但运行后会卡在while( uxDeletedTasksWaitingCleanUp > ( UBaseType_t ) 0U )。
除了网上说的,还可能是systick中断函数没改:
/**
* @brief This function handles SysTick Handler.
* @param None
* @retval None
*/
extern void xPortSysTickHandler(void);
//systick中断服务函数
void SysTick_Handler(void)
{
#if (INCLUDE_xTaskGetSchedulerState == 1 )
if (xTaskGetSchedulerState() != taskSCHEDULER_NOT_STARTED)
{
#endif /* INCLUDE_xTaskGetSchedulerState */
xPortSysTickHandler();
#if (INCLUDE_xTaskGetSchedulerState == 1 )
}
#endif /* INCLUDE_xTaskGetSchedulerState */
}
网友评论