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.

Compiler/HERCULES-F021FLASHAPI: F021 Flash API for TMS570LS3137 using IAR Workbench

Part Number: HERCULES-F021FLASHAPI

Tool/software: TI C/C++ Compiler

Hello,

I’m designing a Bootloader using the F021 Flash v.2.01 API together with the IAR EWARM 7.10. In the File CGT.IAR.h is a software switch Big/Little Endian

#if !defined(__LITTLE_ENDIAN__)   /* is big endian compile */

#if !defined(_BIG_ENDIAN)

   #define _BIG_ENDIAN           /* FAPI generic define for big endian */

#endif

#endif

#if defined(__LITTLE_ENDIAN__)   /* is little endian compile */

#if !defined(_LITTLE_ENDIAN)

   #define _LITTLE_ENDIAN       /* FAPI generic define for little endian */

#endif

#endif

 

The EWARM Development Guide PDF says:

 

__LITTLE_ENDIAN__
Description: An integer that reflects the setting of the --endian option and is defined to 1 when the
byte order is little-endian. The symbol is defined to 0 when the byte order is big-endian.

Because if this behavior the Little Endian branch is taken absolutely in CGT.IAR.h, so the file definition File “Registers_FMC_LE.h” is included also for the Big Endian devices. This circumstance should be addressed/corrected in future releases for the F021 API

regards,

Lorenz