This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Controlling endianness using IAR EW in MSP430s

Other Parts Discussed in Thread: MSP430F248

I know that MSP430s are little Endian. I am using the MSP430F248 micro-controller.

Is there a way to directly convert values when storing and retrieving between BE and LE in IAR embedded workbench? So far I am using a function defined by me. 

thanks in advance.

  • The endianess is a function of the hardware, not the compiler.  ARM processors (at least some of the ones I've used) have the ability to select endianess in some configuration registers but the MSP430 doesn't.  Using your own function or macro is the only way to manage this.

    Jim Noxon

**Attention** This is a public forum