This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

is cortex M0 little or big endian?

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

Parents
  • 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:

    • JLink Info: Found Cortex-M0 r0p0, Little endian.

    Of course, there many are other ways to check endianness :)

Reply
  • 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:

    • JLink Info: Found Cortex-M0 r0p0, Little endian.

    Of course, there many are other ways to check endianness :)

Children
No Data
Related