about little endian/ big endian

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

about little endian/ big endian

2,222 次查看
Serma
Contributor I

Hello,

I have a technical problem. When I compile my project with the software IAR Embedded Workbench I have this error :

"This file should only be compiled in big endian mode" because of the variable __LITTLE_ENDIAN__ == 1 and I go in the loop (file arm7100.h) :

#if __LITTLE_ENDIAN__ == 1
#error This file should only be compiled in big endian mode
#endif

So my question is : Is it possible to change an option in this software for compiling in big endian mode ?

Thank you for your answers.

标签 (1)
0 项奖励
回复
1 回复

875 次查看
ajacks504
Contributor I
The tool should automatically select endianness for you depending on the target, you may have better luck going through IAR support.  Have you seen this article?

Your ARM should be big endian, have you inadvertantly linked to some other libraries that are little endian specific?  Look at the flies that were linked BEFORE arm7100.h

Good luck!
0 项奖励
回复