I need little_endian mode in CodeWarrior

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

I need little_endian mode in CodeWarrior

3,064 次查看
Gabriel
Contributor I
Hi, is it posible to use Codewarrior in LITTLE_ENDIAN mode, or it olny works in BIG_ENDIAN mode?
标签 (1)
0 项奖励
回复
2 回复数

869 次查看
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 项奖励
回复

869 次查看
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 项奖励
回复