Hi,
For the cortex-M0 core, Instruction memory and Private Peripheral Bus (PPB) accesses are always little-endian.
For the data memory, it is dependent on the implementation, but the AIRCR[ENDIANESS] Read-Only bit defines the endian format. For the LPC8xx, the bit is zero, so the data memory is little-endian.
In conclusion, the LPC804 uses little-endian format for both instruction and data memory.
I attach the UG of cortex-M0
2.1.5 Data types
The processor:
• supports the following data types:
— 32-bit words
— 16-bit halfwords
— 8-bit bytes
• manages all data memory accesses as either little-endian or big-endian,depending on the device implementation. Instruction memory and Private
Peripheral Bus (PPB) accesses are always little-endian. See Memory regions,
types and attributes on page 2-13 for more information.
Hope it can help you
BR
XiangJUn Rong