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.

CC2340R5: pthread_attr_setstack() , why the appTaskStack address is null ?

Part Number: CC2340R5

Tool/software:

Hi,

In the BLEAppUtil_createBLEAppUtilTask(), the second parameter of pthread_attr_setstack() is appTaskStack and the value is NULL.

Why the stack address is NULL, is it correct?

  • Hi James,

    So looking at the pthread.c source we see that this stackaddr parameter is never touched by pthread_create/xTaskCreate, only the stacksize parameter is necessary.  So you could likely use pthread_attr_setstacksize instead but the point is that the end result should be the same.

    Regards,
    Ryan