I noticed when I create a task in simpleBLE peripheral project I can't pair anymore. Has anyone seen this issue before ?
Thanks,
Mario
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.
This is my what I do to create the task:
Task_Params taskParams;
// Configure task
Task_Params_init(&taskParams);
taskParams.stack = TaskStack;
taskParams.stackSize = SBP_TASK_STACK_SIZE;
taskParams.priority = SPI_TASK_PRIORITY;
Task_construct(&spiTask, ATMELcomm_taskFxn, &taskParams, NULL);
Hi Marie,
After adding heapmgrMemFail and pausing each time after pairing is attempted I can see that the count is going up each time so I'm getting memory allocation failures. So now the question is what can I do about it?
Can I increase the size of the heap?
Also, I am using SDK 1.35.00.33.
Thanks,
Mario
Hi Marie,
Thanks for that app note. I made a lot of progress. I used AUX RAM as RAM and I'm not getting heap memory allocation failures anymore, however I encountered one new issue. I can only run my application when I run it through my debugger. As soon as I disconnect my debugger and power cycle my board it doesn't advertise anymore. If I use start a debugging session then it works fine.
Any ideas why?
btw I'm using the cc2640r2 OAD build configuration so I don't know if that makes any difference.
Thanks,
Mario
EDIT:
If I flash my device using Btool then it boots up so it must be tied to debug code. This might have existed the whole time and not related to AUX RAM.