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.

HERCULES-F021FLASHAPI: TI ARM clang incompatible due to wchar_t

Part Number: HERCULES-F021FLASHAPI

We are using TI Arm Clang Compiler v2.1.0.LTS for building our application software and are trying to use the F021 library.  Linking with the F021 library F021_API_CortexR4_BE_V3D16.lib results in warnings: "#16032-D object files have incompatible wchar_t types".  Since the clang runtime library only support wchar_t lengths of 32 bits we cannot find a way to resolve this.

1. Is there a version of the F021 library built with wchar_t of 32 bits?

2.  If not is there any known issues of using the F021 library if our application does not use or declare the wchar_t type anywhere?

  • Hi Michael,

    1. Is there a version of the F021 library built with wchar_t of 32 bits?

    I have checked that the "wchar_t" is not used at all in F021 Flash API source code. The F021 Flash Library Files were built using TI's code generation tools for ARM v5.1.3. By default, TI ARM compiler generates 16-bit wchar_t. The compiler automatically adds info about all basic types to the list inside the final library no matter if the type is used or not.

    2.  If not is there any known issues of using the F021 library if our application does not use or declare the wchar_t type anywhere?

    Since the wchar_t type is not referenced inside Flash Library, customers can still safely use the library.

  • thank you for your response and explanation.