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.

SIMPLELINK-CC2640R2-SDK: Inconsistent wchar_t size ?

Part Number: SIMPLELINK-CC2640R2-SDK
Other Parts Discussed in Thread: CC2640

so,finally,how can we solve this warnig completly? my versoin was update to  the version 8.20.2,but the result was same to the older.I am so bad. 

  • Hi Zhyiyang,

    As Jeff mentioned at the end of the related thread you linked to, this IAR release note explains the change that IAR made: netstorage.iar.com/.../iccarm.ENU.html That was for IAR 8.11 but applies to newer versions like 8.20 as well.

    Which SDK version for CC2640R2 are you using? From the earlier related E2E thread linked at the top of this page, they were referring to SDK version 1.35, which was built with an older IAR 7.80 and that was the recommended version. The warning message occurred in that case because the SDK was built with the older IAR version with the old wchar_t size but the user was trying to build it on one of the newer IAR versions that uses a new wchar_t size, and obviously this could cause compatibility issues.

    I just looked at the release notes for our latest CC2640R2 SDK, version 1.50.00.58. That version says that it was built with IAR 8.11.2, and so therefore it shouldn't have this issue because 8.11.2 has the new wchar_t size.

    Can you migrate to the latest SDK version 1.50.00.58? www.ti.com/.../SIMPLELINK-CC2640R2-SDK

    Regards,
    Katie
  • Hi Katie,

    My SDK version for CC2640 is 1.40.00.45.And my IAR version is 8.20.2.If I change the SDK version to 1.50.00.58,this warning will be gone?IAR version should be changed?

    Yours,

    Zhangzhiyang

  • Hi Zhanghzhiyang,

    Are you using CC2640R2 SDK 1.40.00.45 - that version also should not have this warning. I just tried this with this sdk version, with the IAR version ARM 8.22.1 and I got no warnings. Are you sure that is the SDK version that you are using? I tested by simply opening the simple_peripheral.eww workspace from the install at path C:\ti\simplelink_cc2640r2_sdk_1_40_00_45\examples\rtos\CC2640R2_LAUNCHXL\blestack\simple_peripheral\tirtos\iar, and then building the stack and then building the app. For both of these builds I got no error or warning.

    Is there something different that I am doing from what you have tested, so that I can try to reproduce? Do you see the error when building the simple_peripheral project totally unmodified? Or are you only seeing the error on a version of the project that has some modifications? 

    Regards,
    Katie

  • Hi Zhangzhiyang,

    Any update? Are you still encountering the issue?

    Regards,
    Katie
  • It's been a little while so I'm hoping you were able to resolve your issue - I'll be closing the thread due to inactivity. However, you can still post back if you still need help.

    Regards,
    Katie