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

ble_nfc_pairing_reference compile problem

Hello,

I am getting an error message while I was compiling the "ble_nfc_pairing_reference" example. How can I obtain this "micro_ecc_lib_nrf52.a" file ?

Fatal Error[Li001]: could not open file "E:\nRF5_SDK\external\micro-ecc\nrf52hf_iar\armgcc\micro_ecc_lib_nrf52.a"

  • I compiled it completely. Now I have another problem. I get the errors below.

    Error[Lt009]: Inconsistent wchar_t size
    uECC.c.o(micro_ecc_lib_nrf52.a) and 1 other objects in 2 different libraries have wchar_t size 16 bits
    app_button.o and 103 other objects, some of them in dl7M_tlf.a and 11 other libraries have wchar_t size 32 bits
    Error[Li016]: size limit exceeded. The application needs 0xbf77 (49 015) bytes, which is greater than the limit of 0x8000 (32 768) bytes.
    The limit is due to license "ARM.EW.LINKER" from "app_button.o" (and 85 other modules).
    Error while running Linker

  • Hi,

    From the error messages it looks like you are using IAR. What version of IAR are you using. There was a change around IAR v8.10 where wchar_t was changed from 16 bits to 32 bits, and the linker will fail is trying to link objects of different wchar_t setting.

    I assume that you use the latest version of the nRF5 SDK, which at the point of writing is v15.0.0. There is a note for IAR users in the SDK release notes (provided with the SDK as well as on the Indroduction page of the online SDK documentation.) It has instructions for how to fix the wchar_t issue.

    Regards,
    Terje

Related