首先是在simple_peripheral_oad_offchip 的主任务中添加了新的功能函数实现,不知道是不是系统内存不够还是其他的原因,编译没问题下载到电路板上发现蓝牙连接超时的情况。 于是我在项目中添加了新任务,结果还是一样。
注:参照了该链接:processors.wiki.ti.com/.../Adding_BLE_Enabled_RTOS_Task
配置了app和stack的预定义 ICALL_MAX_NUM_TASKS=4 ICALL_MAX_NUM_ENTITIES=7 OSAL_MAX_NUM_PROXY_TASKS=3
创建任务代码:
void IRD_ReadScan_createTask(void){
Task_Params taskParams;
// Configure task
Task_Params_init(&taskParams);
taskParams.stack = IRDTaskStack;
taskParams.stackSize = IRD_TASK_STACK_SIZE;
taskParams.priority = IRD_TASK_PRIORITY;
Task_construct(&IRD_Task, IRD_ReadScan_taskFxn, &taskParams, NULL);
}
static void IRD_ReadScan_taskFxn(UArg a0, UArg a1){
// Register the current thread as an ICall dispatcher application
// so that the application can send and receive messages.
ICall_registerApp(&IRD_Entity, &IRD_Event);
//...do someting
}
求各路大神解答!!!