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

nRF52 DK with SDK14 Blinky Example (without BLE) Compile Error by Using IAR 8.20.1

Hi,

I am using IAR embedded workbench IDE - ARM 8.20.1 (full version) to compile the SDK 14.0 blinky_pca10040_s132 -nrf52832_xxaa example. However, I got some errors which is

  1. Fatal Error[Pe1696]: cannot open source file "nrf_log_ctrl_internal.h"

  2. Error while running C/C++ Compiler app_util_platform.c
    app_error.c
    nrf_assert.c
    main.c
    nrf_sdh_soc.c

  3. Fatal Error[Pe1696]: cannot open source file "nrf_section_iter.h"

  4. Error while running C/C++ Compiler nrf_sdh.c

  5. Fatal Error[Pe1696]: cannot open source file "nrf_section_iter.h"

  6. Error while running C/C++ Compiler system_nrf52.c
    nrf_strerror.c
    nrf_section_iter.c

Total number of errors: 3 (Display on IAR message box)

I already did the below step before I built the project,

  1. Open workspace -> "blinky.eww"
  2. Set active -> blinky_pca10040_s132_nf52832_xxaa
  3. Select project -> options -> Gerneral Options -> Target -> Device -> "NordicSemi nRF52832_xxAA"
  4. Select project -> options -> Debugger -> Drive -> "J-link/J-Trace"
  5. Select project -> options -> Debugger -> J-link/J-Trace -> Setup -> JTAG/SWD speed -> Fixed 4000kHz
  6. Use nrfjprog erase and reset the chip

I had no idea that why I will got these errors. Please help.

Thank you.

Regards,

sm

Parents
  • Hi,

    Have you done any changes in that folder structure of the SDK ? Note that IAR uses relative paths, and if you have moved any of the components and files in the SDK, or the IAR projects itself, IAR won’t be able to find the files.

    Try to download a clean copy of the SDK from here, and try again.


    Note that we have now released SDK 14.1, where we have added support for Segger Embedded Studio (SES) IDE. You can use Segger Embedded Studio for commercial and non-commercial purpose with Nordic Semiconductor devices free of charge.

Reply
  • Hi,

    Have you done any changes in that folder structure of the SDK ? Note that IAR uses relative paths, and if you have moved any of the components and files in the SDK, or the IAR projects itself, IAR won’t be able to find the files.

    Try to download a clean copy of the SDK from here, and try again.


    Note that we have now released SDK 14.1, where we have added support for Segger Embedded Studio (SES) IDE. You can use Segger Embedded Studio for commercial and non-commercial purpose with Nordic Semiconductor devices free of charge.

Children
No Data
Related