This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrf52 Bootloader_secure_ble

Hello, I am using nrf52 with sdk 13.0.0. Bootloader_secure_ble gives error while compiling. What should I do ?

        Error[Lt009]: Inconsistent wchar_t size 
        micro_ecc_lib_uECC.c.o(micro_ecc_lib_nrf52.a) has wchar_t size 16 bits 
        app_error_weak.o and 66 other objects have wchar_t size 32 bits 
  • Hello Howard,

    I had the same problem, then the SDK v15.2.0 Release Notes helped me:

    " Note for IAR 8 users: (Libraries for IAR 8 require wchar_t to be of size 32 bits while IAR 7 requires 16 bits).

    To run a project using IAR 8, follow these intructions:

    - Open the IAR project in IAR 8. The IAR workbench will automatically generate an IAR 8 compatible project file.

    - If the project contains one of the precompiled libraries listed below, replace it with the IAR 8 compatible alternative (there are no projects targeting nRF51 in this SDK).

    - Save the project.

    - When building the project, you might get the warning: "The header file 'cmsis_iar.h' is obsolete and should not be used. [...]".

    - The problem is described in DevZone post: devzone.nordicsemi.com/.../iar-ewarm-8-22-1-complains-about-cmsis_iar-h The solution is to remove all occurrences of #include <cmsis_iar.h>.

    The affected libraries are:

    - micro-ecc crypto:

    • IAR7: Includes library located in the folder named “…_iar\…”.
    • IAR8: Switch to using the library from the folder named “…_armgcc\…

    "

    I've simply cross-compiled "_armgcc\"  and switched the library and all seems to work correctly.

Related