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.

CC1310: 15.4 Stack Initialization failure - myFunctions() before the stack ICall_init() leads to Main_assertHandler() restart

Part Number: CC1310


Hi,

I am using the TI Stack 15.4 simplelink_cc13x0_sdk_1_40_00_10 version with a CC1310 on a custom PCB with some other sensors.

In my application, in taskFxn() I am running my application before the stack starts. Please see below.

This is to collect sensor data to an on board flash chip and then start the stack to send the data to a collector. This is to keep the radio offed while I am collecting data to save power.

Void taskFxn(UArg a0, UArg a1)
{

Ssf_initializeMySensorClock();

initializeMySensors();

for(int x=0; x<315; x++)
{

Semaphore_pend(mySensorSemHandle, BIOS_WAIT_FOREVER);

mySensorProcess();

Ssf_setMySensorClock(1000);

}

// Start of Stack functions //

Power_setConstraint(PowerCC26XX_IDLE_PD_DISALLOW);

ICall_init();

.
.
.

By running my application in this manner, after it reaches the ICall_createRemoteTasks() function it goes to the Main_assertHandler() function and restarts. It never reaches the Sensor_init() function.

If I reduce my for loop to 300, then the stack initializes successfully and starts to send data to the collector.

I also tried using a Task_sleep(36000000) instead of my functions before the stack starts. Still the same problem occurs. 

I would like to understand what causes this issue please.

Any ideas are much appreciated.

Thanks in advance.

Abrar

  • Hey Abrar,

    Can you check your heap/stack numbers when the stack is unsuccessful? This can be done by defining HEAPMGR_METRICS in your project and the checking the heapmgr* variables in the debugger. You can use the ROV (RTOS Object Viewer) to view each tasks stack.