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

Porting Mesh to IAR

Hi, 

I am facing difficulties porting Mesh examples to IAR.

I am getting the following error :  #error "Your compiler is currently not supported." during compilation from nrf_mesh_assert.h

I understand that any of the _lint/__GNUC__/__CC_ARM are defined, but i do not know which one and where i am supposed to define it.

I tried to declare each of them in preprocesor symbol but it did not work (i got an infinity of error).

Could you helping me porting my project to IAR ?

  • Hi,

    The nRF5 SDK for Mesh v2.0.1 supports SEGGER Embedded Studio and CMake. I highly recommend using SEGGER Embedded Studio. It is free to use for projects for Nordic ICs, and is supported by all of our SDKs. If for some reason you need to port it to a different toolchain then I am afraid we can only provide limited help and support.

    The defines that you mention are for code that differs depending on what toolchain/compiler is used. __CC_ARM is the ARM  compiler (e.g. Keil), __GNUC__ is gcc. For IAR it would be __ICCARM__, but there is no implementations for that in the nRF5 SDK for Mesh as that SDK does not support IAR. You will see that it is used some places in nRF5 SDK, where IAR is supported. Unfortunately we do not have any overview of how to imlement IAR support in the nRF5 SDK for Mesh.

    Regards,
    Terje

Related