Part Number: TMS320F28379D
Tool/software: Code Composer Studio
We are using TMS320f28379D eval board. I'm facing issue when typecasting lacal 16-bit array to 32-bit variable.
unsigned short int arr[5] = {0x1234, 0xabcd, 0x12ab, 0x5577, 0xaa55};
unsigned int b;
b = *(unsigned int*)&arr[0];
I'm expecting value in b is 0xabcd1234. But it is fetching from previous memory word and the value of b is 0x1234ffff. In expression window (*(unsigned int*)&arr[0]) it is showing the as expected (0xabcd1234).