about little endian/ big endian

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

about little endian/ big endian

1,831 Views
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.

Labels (1)
0 Kudos
1 Reply

484 Views
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 Kudos