I am working with the F021 flash library on a TMS570LS2124 microprocessor using the IAR development environment. While investigating the behavior of the FAPI_CHECK_FSM_READY_BUSY macro, I discovered the an issue with the endian detection logic in the CGT.IAR.h file.
Per the IAR Embedded Workbench documentation, the __LITTLE_ENDIAN__ preprocessor symbol is defined to 1 when the byte order is little endian and 0 when the byte order is big endian. The F021 Flash Library CGT.IAR.h file makes its endian decision based on the presence of the _LITTLE_ENDIAN__ preprocessor symbol rather than the symbols value. Because IAR always defines the __LITTLE_ENDIAN__ symbol, _LITTLE_ENDIAN is always defined by the F021 Flash Library.
Could you confirm this problem and provide an timeline for resolution? I changed my local copy of CGT.IAR.h for now. Thanks.