I found two statements in cortex m3 guide(red book)
- Cortex m3 supports both Little as well as big endianness.
- After reset endianness cannot be changed dynamically.
So indirectly it is telling change endianness settings in reset handler, is it so?
If yes, then how to change endianness? Which register need to configuring and where to configure (in reset or in exception handler)
I understand it is not actually good idea to change endianness. But still as a curiosity I wanted to see whether a cortex m3 really supports to both endianness or not?
The Cortex-M architecture can be configured to support either big-endian or little-endian operation.
However, a specific Cortex-M implementation can only support one endianness -- it's hard-wired into the silicon, and cannot be changed. Every implementation I'm aware of has chosen little-endian.