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.

AWRL6432BOOST: 新增一個task,運作異常!

Part Number: AWRL6432BOOST

新增一個task,運作異常!

我參考了範例程式碼(radar_toolbox_2_00_00_06-Kick_to_Open)並修改Predefined Symbols => SOC_XWRL64XX。

在mmw_cli.c修改下列部分

===========================

TaskHandle_t gDpcTask1;
StaticTask_t gDpcTaskObj1;
StackType_t gDpcTaskStack1[128] __attribute__((aligned(32)));

void mmwDemo_dpcTask1();

#define CLI_BYPASS 1

void mmwDemo_dpcTask1()
{
DebugP_log("mmwDemo_dpcTask1 ...\r\n");

while (true)
{
vTaskDelay(500 / portTICK_PERIOD_MS); // Block for 500ms.
}
}

int32_t CLI_MMWStart(void)

{

gDpcTask = xTaskCreateStatic(mmwDemo_dpcTask, /* Pointer to the function that implements the task. */
"dpc_task", /* Text name for the task. This is to facilitate debugging only. */
DPC_TASK_STACK_SIZE, /* Stack depth in units of StackType_t typically uint32_t on 32b CPUs */
NULL, /* We are not using the task parameter. */
DPC_TASK_PRI, /* task priority, 0 is lowest priority, configMAX_PRIORITIES-1 is highest */
gDpcTaskStack, /* pointer to stack base */
&gDpcTaskObj); /* pointer to statically allocated task object memory */
configASSERT(gDpcTask != NULL);


gTlvTask = xTaskCreateStatic(mmwDemo_TransmitProcessedOutputTask, /* Pointer to the function that implements the task. */
"tlv_task", /* Text name for the task. This is to facilitate debugging only. */
TLV_TASK_STACK_SIZE, /* Stack depth in units of StackType_t typically uint32_t on 32b CPUs */
NULL, /* We are not using the task parameter. */
TLV_TASK_PRI, /* task priority, 0 is lowest priority, configMAX_PRIORITIES-1 is highest */
gTlvTaskStack, /* pointer to stack base */
&gTlvTaskObj); /* pointer to statically allocated task object memory */
configASSERT(gTlvTask != NULL);

gDpcTask1 = xTaskCreateStatic(mmwDemo_dpcTask1, /* Pointer to the function that implements the task. */
"dpc_task1", /* Text name for the task. This is to facilitate debugging only. */
128, /* Stack depth in units of StackType_t typically uint32_t on 32b CPUs */
NULL, /* We are not using the task parameter. */
0, /* task priority, 0 is lowest priority, configMAX_PRIORITIES-1 is highest */
gDpcTaskStack1, /* pointer to stack base */
&gDpcTaskObj1); /* pointer to statically allocated task object memory */
configASSERT(gDpcTask1 != NULL);

}

=======================================================

mmwave 就停止了?新增task應該是基本的功能!請問哪錯了?