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.

CCS/TMS320C6746: structure pointers

Part Number: TMS320C6746


Tool/software: Code Composer Studio

typedef struct _EMAC_Desc {
struct _EMAC_Desc *pNext; 
Uint8 *pBuffer; 
Uint32 BufOffLen; 
Uint32 PktFlgLen; 
} EMAC_Desc;

I have the above structure and I declared a pointer variable to the above structure.

EMAC_Desc *ptr ;

But when I write to the strucure variables as below

ptr->BufOffLen = 60;

and debug the value in ptr->BufOffLen is not changing ?

Can anyone help me ??