I need little_endian mode in CodeWarrior

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I need little_endian mode in CodeWarrior

2,701 Views
Gabriel
Contributor I
Hi, is it posible to use Codewarrior in LITTLE_ENDIAN mode, or it olny works in BIG_ENDIAN mode?
Labels (1)
0 Kudos
Reply
2 Replies

506 Views
Jonno
Contributor I
I can tell you that for bi-endian PowerPC MCUs, CodeWarrior does *not* produce good code in little-endian mode. You can get the processor to enter LE mode and get basic code to run but memory mapped register accesses are screwed up. According to Freescale, LE support has been officially dropped for PPC processors... Don't get me started on the absurdity of this...
0 Kudos
Reply

506 Views
kef
Specialist I
What target MCU/MPU you are talking about? The wast majority of Freescale (former Motorola) MCU's and MPU's are big endian and Codewarrior just follows that. Are you targeting ARM core, that (I heard something) can be switched between low and big endianess? I don't know if it's supported by CW for ARM. Even if it was supported, I would choose the mode that matches the endianess of 16 and 32-bit wide peripherals.
 
 
0 Kudos
Reply