Hi All,
facing problem with simpleBlePeripheral example with newly created task,
Jumping to error loop when calling stack related function calls from the new task.
in compiler options set following as :
ICALL_MAX_NUM_TASKS=4//cahnged to 4 from 3
ICALL_MAX_NUM_ENTITIES=7 //frm 6
OSAL_MAX_NUM_PROXY_TASKS=3 //<<Added new symbol
Code is:
#define TEST_TASK_STACK_SIZE 1024//644
#define TEST_TASK_PRIORITY 1
static ICall_EntityID selfEntity_VT; static ICall_Semaphore sem_VT; static Queue_Struct appMsg_VT; static Queue_Handle appMsgQueue_VT; void verificationTest_createTask(void) { Task_Params taskParams; /* Configure task */ Task_Params_init(&taskParams); taskParams.stack = testTaskStack; taskParams.stackSize = TEST_TASK_STACK_SIZE; taskParams.priority = TEST_TASK_PRIORITY; Task_construct(&testTask, verificationTest_taskFxn, &taskParams, NULL); } static void verificationTestTask_init(void) { /* Register the current thread as an ICall dispatcher application so that the application can send and receive messages. */ test = ICall_registerApp(&selfEntity_VT, &sem_VT); /* Create an RTOS queue for message from profile to be sent to app. */ appMsgQueue_VT = Util_constructQueue(&appMsg_VT); } void verificationTest_taskFxn(UArg a0, UArg a1) { verificationTestTask_init(); /* sleeping untill main task get initialised */ Task_sleep(1000*1000 / Clock_tickPeriod); //----------- /* FAILS HERE! JUMP IN TO ERRROR HOOK! (This exact call works from the defaut application task) */ osal_snv_write( (osalSnvId_t) DEFAULT_SNV_ID, (osalSnvLen_t) sizeof(NVMDataRamCopy), (void *)&NVMDataRamCopy); //-----------
}