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.

CC2538: Memory allocation problem

Part Number: CC2538

Hello,

In this line of code

pMsg = (mtOSALSerialData_t *)osal_msg_allocate( sizeof ( mtOSALSerialData_t ) + MT_RPC_FRAME_HDR_SZ + LEN_Token );

pMsg is now giving memory address 0x00.

Previously, it was working all right and suddenly it started giving a Null address.

What can be the issue and how to resolve it?

LEN_Token =0x08

MT_RPC_FRAME_HDR_SZ  =0x03

pMsg is of mtOSALSerialData_t data type.