方案一:检测优先级 osPriorityIdle = -3, ///< priority: idle (lowest) osPriorityLow = -2, ///< priority: low osPriorityBelowNormal = -1, ///< priority: below normal osPriorityNormal = 0, ///< priority: normal (default) osPriorityAboveNormal = +1, ///< priority: above normal osPriorityHigh = +2, ///< priority: high osPriorityRealtime = +3, ///< priority: realtime (highest) osPriorityError = 0x84 ///< system cannot determine priority or thread has illegal priority
smusart_creat_task osPriorityRealtime,// mqtt_creat_task osPriorityRealtime, // creat_mqtt_send_task osPriorityNormal, // mqtt_recv_task osPriorityRealtime, // ble_creat_task osPriorityRealtime, // nfc_creat_task osPriorityRealtime, // journal_creat_task osPriorityLow, MainTaskEF MainTaskEF
osThreadDef(MainTaskName, MainTaskEF, osPriorityNormal, 0, 512); osThreadDef( journalNULL, journal_task_entry , osPriorityLow, 0, configMINIMAL_STACK_SIZE*10);
1修改main是低 它是高 并没有效果