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

build issue with nrf52832 ... please help me.

Hi, 

thanks for your support in advance.

when trying to build with example of sdk, I got the following error. it seems to be related with build env setting... please help me to solve it.

Error[Pe020]: identifier "x" is undefined C:\project\nrf52832\nRF5_SDK_17.1.0_ddde560\modules\nrfx\soc\nrfx_coredep.h 161

the code is defined as below.

    __ALIGN(16)

thanks.

Parents Reply
  • Hi,

    This is related to a bug in the MDK included in nRF5 SDK v17.1.0. There is a note regarding this in the SDK release notes with a workaround:

    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'.

    Another option is to download and use the latest MDK version, nRF MDK v8.42.0, where this has been fixed. You can find this by going to the following link: nRF MDK Downloads.

    Best regards,

    Marte

Children
Related