This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LAUNCHXL-CC1310: cc1310

Part Number: LAUNCHXL-CC1310

UARTMon_taskFxn 不明原因 跑飛了

(當發生時,用中斷試過停在每一行//也用過變數值放在指令之間,當跑飛後,用其他Task傳出來看,數值就只停在固定值,位置程式碼也看不出異樣)

[努力過,,難找出真實因素]

其他Task功能都正常, APP_TASK_STACK_SIZE 也加大了,, 剩下只能 加機制 自我Reset MCU了 

A:有無API 可FREE 掉,重新 Task_construct嗎?

B:還有何API可讓我確認Task真的跑飛嗎?

======以下部份程式碼

#define APP_TASK_STACK_SIZE 2200 

Task_Struct uartTask;
Char uartTaskStack[APP_TASK_STACK_SIZE];

void Uart_TaskInit(void)
{
Task_Params taskParams;
Task_Params_init(&taskParams);
taskParams.stack = uartTaskStack;
taskParams.stackSize = APP_TASK_STACK_SIZE;
taskParams.priority = 2;

Task_construct(&uartTask, UARTMon_taskFxn, &taskParams, NULL);
}

void UARTMon_taskFxn(UArg a0, UArg a1)
{

while (1)
{

++Checki;//在CCS內 觀察,一旦停止 即為跑飛

...................

Cstep=0x16;  //當跑飛後 透過其他Task 傳出Cstep 查看
UART_write(uart, output, Count);
Cstep=0x17;

..............

}

}