Tool/software: TI C/C++ Compiler
Dear Support Team,
We are facing an issue on the ARM Cortex A53 with pointers.
The issue is the following: When assigning the pointer value, the executed code returns a 64-bit swapped pointer.
u8_g_tmp_ptr= (u8_t *)g_FgNrtIdnValues.MACAddr.pData;
For example, when the pointer is 0x0000000012345678, the u8_g_tmp_ptr will become 0x1234567800000000.
We capture the error in below screenshot.
pData is a void pointer.
typedef struct tagELEMENTDATA
{
WORD_A wLen; ///< actual length of element
WORD_A wMaxLen; ///< maximum length of element
void *pData; ///< pointer to element data
}ELEMENTDATA; ///< Type definition of structure #tagELEMENTDATA
Can you please check if this is an error, or if we need to use it in a different way.
Regards,
Thomas