I trying to extract a u32 from a char array and the results are not what I expected.
Memory dump shows: 0xA0000680: FF 22 3C 87 01 00 A pu8Buf is set to 0xA0000680 pu8Buf+= 2; // value is 0xA0000682 pu32Buf = (u32*)pu8Buf; // value is 0xA0000682 u32Data = *pu32Buf; // value is 22FF873C Should it not have the value of 873C0001
Why was the data extracted from the addr pointer two bytes lower than the u32 address pointer locations?