Recently i was trying to develop example with IAR 8x

i have read it from a resource that 7.80.4 will support can anyone help me with IAR 7.80.4 setup trial to check the feasibility for development 

  • Hi,

    We support IAR in nRF5-SDK. www.nordicsemi.com/.../nRF5-SDK

    For nRF5-SDK v17.1.0, we used  IAR 7.80.4

    For IAR 8, you need to do some modifications to the SDK:

    Note for IAR 8 users:
    
    When using IAR 8, you must apply the following workaround in the MDK:
    
    - Apply a patch to modules/nrfx/mdk/compiler_abstraction.h at line 140
     (fix the '__ALIGN()' macro definition): use the argument 'n' in the macro expansion instead of 'x'.
    
    -------------------
    
    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 instructions:
     1. Open the IAR project in IAR 8. The IAR workbench will automatically generate an IAR 8 compatible project file.
     2. 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).
     3. Save the project.
     4. 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: https://devzone.nordicsemi.com/f/nordic-q-a/31123/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\…”.
     - nrf_cc310, nrf_cc310_bl, and nrf_oberon:
        - IAR7: Link to a library where “short_wchar” is part of the folder name.
        - IAR8: Link to a library without “short_wchar” in the folder name.
     - Gazell, NFC Tag, and 802.15.4:
        - IAR7: Includes the library where the file name ends with “_iar”.
        - IAR8: Switch to using the library with similar file name that ends with “_gcc”.
    *****

  •  Hey thanks ,but  suggested setting are pre-existing in IAR

    .Can you suggest how i can make IAR  work with Open Thread examples .Is their ways to work with IAR  8x to work with ZIgbee and openthread  nrf SDK (version 4.2).

    OR can you help us with  any share link for the IAR 7.80.4 

    Thanks 

    Amrit 

  • toamrit said:
    s their ways to work with IAR  8x to work with ZIgbee and openthread  nrf SDK (version 4.2).

    Lookin at the release notes for nRF5 SDK for Thread and Zigbee v4.2.0:

    https://infocenter.nordicsemi.com/topic/sdk_tz_v4.2.0/index.html

    We have this section:

    - Support for IAR and Keil compilers was removed for the v4.2.0 release.

    So if you want to use IAR, take a look at how the projects in v4.1.0 is configured, and try to port it to v4.2.0.  Another option, that is much easier, is to use e.g. Segger Embedded Studio instead

Related