Create a new task using the CC2640R2F SDK, in addition to the original (SimpleBLESpheral_createTask), create a user task.
I have created a new task and modified the global macro definition (ICALL-MAX-NUM-ENTITIES=7) (ICALL-MAX-NUM_TASKS=4),
The task can run, I imitated (SimpleBLESpheral_createTask) and used
ICall_ RegisterApp (&selfEntity,&syncEvent);
Event_ Pend (syncEvent, Event_Id_NONE, SBP_ALL-EVENTS, ICALL_TIMEOUT FOREVER);
Can also successfully send and receive events and queues.
However, when using "osal_snv_write (0x80, 1, (uint8 *)&data);" in a new task, it will get stuck in this function and not come out, which will be discovered during simulation.
This operation can be placed in 'SimpleBLESpheral_Task'.
May I ask if my configuration is correct? Do you need any other configurations?
// Configure task Task_Params taskParams; Task_Params_init(&taskParams); taskParams.stack = kiwiTaskStack; taskParams.stackSize = KIWI_TASK_STACK_SIZE; taskParams.priority = KIWI_TASK_PRIORITY; Task_construct(&kiwiTask, AppKiwi_taskFxn, &taskParams, NULL);