Hi TI experts
I am using CCS version 5.2, TI compiler 7.3.1 for C6748 DSP. Currently I want to make unaligned access but it is not working properly:
typedef struct _tSampleStruct
{
unsigned int numberA;
unsigned short numberB;
unsigned char numberC;
unsigned short numberD;
}
__attribute__ ((packed)) tSampleStruct;
But when I cast from a byte array to this struct the fields numberA -> numberD is not correct: (tSampleStruct*) byte_array
It is already compiled with option -gcc, I find some instructions to enable option --unaligned_access in Runtime Model Options but in my case the option does not exist.
Please help me on this annoying issue.
Thank you very much,
Long