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/CC2538: --wchar_t conflicts

Part Number: CC2538
Other Parts Discussed in Thread: Z-STACK, SIMPLELINK-CC13X2-26X2-SDK

Tool/software: TI C/C++ Compiler

We are working with Z-Stack 3.0.2. We are getting compile warnings "object files have incompatible wchar_t types" between cx2538_setup.obj and Router.a. cx2538_setup.obj has a flag --wchar_t=16 but  Router.a was compiled with --wchar_t=32. As per another thread we cannot change the project flag under the Runtime Model Options to 32 (see other thread on the subject). BTW this wouldn't solve our problem because driverlib.lib is compiled with with --wchar_t=16. Since we don't have the source code for the different Zigbee libraries (Router.a, EndDevice.a etc ) we cannot recompile with --wchar_t=16.

We don't want to use IAR. So what should we do now?

  • Can you provide a link to the other mentioned thread (if not https://e2e.ti.com/support/tools/ccs/f/81/t/836177)?  Do the incompatible types cause any unexpected application behavior?  What specifically are you attempting to accomplish?  IAR is the recommended IDE for the CC253x Z-Stack, but you could consider the SIMPLELINK-CC13X2-26X2-SDK with CCS.

    Regards,
    Ryan

  • Thanks Ryan for replying. The thread you mentioned is the one. Since we are in development it is hard to know if this causes issues. What I'm attempting to accomplish? Well, get rid of those warnings without simply silencing them. As per ti's own word: "Z-Stack is developed and tested using compilers from IAR and CCS". See here. So from our end it's simple, we need all z-Stack's libs compiled with --wchar_t=16.

  • I apologize for the confusion but mention of CCS compatibility on the Z-Stack tool page is intended for the SIMPLELINK-CC13X2-26X2-SDK only and Z-Stack 3.0.2 has only been developed/tested in IAR as stated in the Release Notes.  We would not be able to release re-compiled libraries unless they were first tested and verified, however TI's test plan currently only involves the SIMPLELINK-CC13X2-26X2-SDK.  You can request further action through your local TI Sales or FAE representative if this support is required.

    Regards,
    Ryan