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.

MSP432E401Y: Heap Memory with Single-Shot Thread

Part Number: MSP432E401Y


Hi,

I was watching the heap usage using Memory_getStats() and noticed every time I run a thread that exits the memory goes down by 32 bytes.  Is this expected?  This particular thread calls MQTTClient_publish() so there is an fdOpenSession(TaskSelf()); and fdCloseSession(TaskSelf()); in it.  I have since changed the thread to stay alive and wait on a semaphore.  Keeping it alive does not cause the 32 bytes loss every time it executes.

I wanted to run the MQTTClient_publish() in the mqtt callback but this causes an exception.

Regards,

-Mike