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

IAR 8.11 802.15.4 wireless_uart update?

....can't build the example because of Lt009 error "wchar_t size". Update soon?

Thanks

Parents
  • Hi,

    Looks like you need to link in the 15.4 library compiled with GCC.  From the SDK release notes: 

    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:
        - IAR 7: Includes the library located in the folder named "…_iar\…".
        - IAR 8: Switch to using the library from the folder named "…_armgcc\…".
    - nrf_cc310, nrf_cc310_bl, and nrf_oberon:
        - IAR 7: Includes the library where "_short_wchar_" is part of the file name.
        - IAR 8: Switch to using the library with similar naming, but where the "short_wchar" is removed.
    - Gazell, NFC Tag, and 802.15.4:
        - IAR 7: Includes the library where the file name ends with "_iar".
        - IAR 8: Switch to using the library with similar file name that ends with "_gcc".

     

Reply
  • Hi,

    Looks like you need to link in the 15.4 library compiled with GCC.  From the SDK release notes: 

    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:
        - IAR 7: Includes the library located in the folder named "…_iar\…".
        - IAR 8: Switch to using the library from the folder named "…_armgcc\…".
    - nrf_cc310, nrf_cc310_bl, and nrf_oberon:
        - IAR 7: Includes the library where "_short_wchar_" is part of the file name.
        - IAR 8: Switch to using the library with similar naming, but where the "short_wchar" is removed.
    - Gazell, NFC Tag, and 802.15.4:
        - IAR 7: Includes the library where the file name ends with "_iar".
        - IAR 8: Switch to using the library with similar file name that ends with "_gcc".

     

Children
No Data
Related