Hi
Maybe silly question: I was wondering: if I cast a pointer to a uint32_t to an array "buff" of uint8_t, what is held in buff[0], MSByte or LSByte? Or in other words, what is the endianness on the Cortex M0 on the nrf51822?
thx
Hi
Maybe silly question: I was wondering: if I cast a pointer to a uint32_t to an array "buff" of uint8_t, what is held in buff[0], MSByte or LSByte? Or in other words, what is the endianness on the Cortex M0 on the nrf51822?
thx
nRF51822 is Little endian.
How you can check this easily - erase your nRF51822 target with the jtag, or compile and load your code into the nRF51822 target; look for "JLink Info" messages in your Keil's Build Output window:
Example:
Of course, there many are other ways to check endianness :)