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: BLE 5 Simple Peripheral Warning[Lt009]: Inconsistent wchar_t size ?

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

Hi,

    I build BLE5 Simple Peripheral at IAR Embedded Workbench 8.11.1, and I am getting this warning below. How do I solve this warning?

Warning[Lt009]: Inconsistent wchar_t size
CryptoCC26XX.orm3(drivers_cc26x0r2.arm3) and 70 other objects have wchar_t size 16 bits
ble_user_config.o and 57 other objects have wchar_t size 32 bits

- kel

  • Hi Kel,

    As you can see from this thread it is most likely because of the IAR version: e2e.ti.com/.../599764

    As is stated in the BLE5 1.0 release notes the sample applications are built using IAR 7.80.3. I recommend that you use the same version.

    Cheers,
    Fredrik
  • Hi Fredrik,

    My manager just ask me to use IAR 8.11.1, for further software development with CC2640R2F. So, using a lower IAR version 7.80.3. just to resolve the warning is not going to happen. If it is just me it is okay to use IAR 7.80.3. But at work I have to explain this to my colleagues and my manager, why I used IAR 7.80.3. Maybe I will ask advice at IAR forums.

    - kel
  • Hi kel,

    You can read more about this change in the Release notes for the IAR C/C++ Compiler for ARM version 8.11.1:
    netstorage.iar.com/.../iccarm.ENU.html

    As Fredrik states, we do not provide any assurance that you will get the same results if you use a different tool chain that what is listed in the SDK/component release notes. The SIMPLELINK-CC2640R2-SDK v1.35 and related BLE libs were generated with IAR 7.80.3.

    Best wishes