Part Number: TMS320F28075
Tool/software: Code Composer Studio
Hello,
I am trying to decode a serial stream and extract some 32bit values.
Here is part of my code:
#define UB_MAX_PACKET 128
.
.
.
char buffer[UB_MAX_PACKET];
.
.
.
int16 ExtractuBData()
{
.
.
.
int32 it;
.
.
.
it = *((int32 *)&buffer[10/2]);
.
.
.
}
As shown below in debug screen, I expected on breakpoint to have the value of 0x1e935e75 = 512974453 which is buffer[6]:buffer[5], but I have 0x5e75087f = 1584728191 which is buffer[5]:buffer[4]
The second line in Expressions window is the exact expression as it variable in first line of expression window but different results.
The CCS is V10.1.0 and CGT is V20.2.2. Code is generated with the default compiler and linker settings of Debug configuration of CCS.
With regards,
MHG
