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.

CC2652P: multiple tasks run into abort

Part Number: CC2652P

Hi engineers,

Device:CC2652P

SDK:simplelink_cc13xx_cc26xx_sdk_7_10_00_98

 

when creating 2 tasks om multirole demo. project will run into abort() at exit.c in simulation. If I create only 1 task, it will not run there. But this issue only happens in simulation, if I flash my project to device, seems it runs good.

 

test task 1 and 2 are created in main.c

 

  • Hi Simon,

    There are multiple reasons this could be happening. Generally when using the debug mode, which you refer to as the "simulation", some code optimization takes place which may interfere with how the code behaves during "simulation", but not when you flash the device. You can try turning off optimization for the code, and then run the "simulation".

    The way to do this is by right clicking on the project in your CCS IDE, going to "properties", then drop down the "Build" field and drop down the "Arm Compiler" field. Here you can got the "Optimizations" field and set that to 0, and see if that helps your case