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.
Tool/software: Code Composer Studio
Hello in IWR1642 lab0011-pplcount source code mss_main.c, I would like to add a task as follows:
Why does the MmwDemo_mssDoorTask I created not work
-----------------------------------------
/* Setup the default mailbox configuration */
Mailbox_Config_init(&mboxCfg);
/* Setup the configuration: */
mboxCfg.chType = MAILBOX_CHTYPE_MULTI;
mboxCfg.chId = MAILBOX_CH_ID_0;
mboxCfg.writeMode = MAILBOX_MODE_BLOCKING;
mboxCfg.readMode = MAILBOX_MODE_CALLBACK;
mboxCfg.readCallback = &MmwDemo_mboxCallback;
/* Initialization of Mailbox Virtual Channel */
gMmwMssMCB.peerMailbox = Mailbox_open(MAILBOX_TYPE_DSS, &mboxCfg, &errCode);
if (gMmwMssMCB.peerMailbox == NULL)
{
/* Error: Unable to open the mailbox */
System_printf("Error: Unable to open the Mailbox to the DSS [Error code %d]\n", errCode);
return;
}
/* Create task to handle mailbox messages */
Task_Params_init(&taskParams);
taskParams.stackSize = 4*1024;
taskParams.priority = 4;
Task_create(MmwDemo_mboxReadTask, &taskParams, NULL);
//add by zhangwei -----------------
Task_Params taskParamsDoor;
Task_Handle taskDoor;
Error_Block ebDoor;
Error_init(&ebDoor);
/*Create 1 task with priority 15*/
Task_Params_init(&taskParamsDoor);
taskParamsDoor.priority = 7;
taskParamsDoor.stackSize = 512;
taskDoor = Task_create(MmwDemo_mssDoorTask, &taskParamsDoor, NULL);
if(taskDoor == NULL){
//System_about("Task create failed!");
DebugP_assert(0);
return ;
}
/*****************************************************************************
* Create Event to handle mmwave callback and system datapath events
*****************************************************************************/
/* Default instance configuration params */
Error_init(&eb);
Hi,
Can you post any error messages you are getting? Have you tried running in debug mode to get more detailed error output?
A few things to check for:
Regards,
Justin