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

Linker Error when Compiling Thread Examples with IAR

I'm having some issues getting any of the provided experimental Thread examples to compile with IAR version 8.11.2. I'm using an nRF52840-PDK with the SDK for Thread version 0.10.0. Please see the following image for the error message log.

Error Log

I followed the tutorial for using nRF51 and nRF52 development kits with IAR as well as installed the latest nRFx-MDK-IAR, version 8.14.1. I'm using the included IAR workspaces for the Thread examples. I'm mainly interested in getting the thread_cloud_coap_client example working (and the above image is based off of that example). I'd really appreciate any help you can provide. Let me know if you need any further details to help resolve this issue. Thanks!

Parents
  • Please refer to release notes, included at the end of this page:

    They mention: "The following toolchains have been used for testing and verification of the Thread examples:

    • GCC: GCC ARM Embedded 4.9 2015q3
    • IAR: IAR Workbench 7.60.2"

    Also a page about CryptoCell support says: "CryptoCell and mbedTLS libraries for IAR Embedded Workbench were built with GCC and tested with IAR 7.60.2, which uses 2-byte wchar_t type. Since version 8.10, IAR uses 4-byte wchar_t type, and thus the libraries provided are not compatible with this version."

    So I expect that all IAR versions above 8.10 are not compatible. I strongly recommend you to instal and try version 7.60.2.

    Best regards,

    Krzysztof Loska

Reply
  • Please refer to release notes, included at the end of this page:

    They mention: "The following toolchains have been used for testing and verification of the Thread examples:

    • GCC: GCC ARM Embedded 4.9 2015q3
    • IAR: IAR Workbench 7.60.2"

    Also a page about CryptoCell support says: "CryptoCell and mbedTLS libraries for IAR Embedded Workbench were built with GCC and tested with IAR 7.60.2, which uses 2-byte wchar_t type. Since version 8.10, IAR uses 4-byte wchar_t type, and thus the libraries provided are not compatible with this version."

    So I expect that all IAR versions above 8.10 are not compatible. I strongly recommend you to instal and try version 7.60.2.

    Best regards,

    Krzysztof Loska

Children
No Data
Related