This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

SDK16.0 Keil5.26 building error

Hello, I encountered the following error when compiling the SDK16.0.0 with keil5.26, how to solve it?

compiling system_nrf52840.c...
RTE\Device\nRF52840_xxAA\system_nrf52840.c(29): error: #5: cannot open source input file "nrf_erratas.h": No such file or directory
#include "nrf_erratas.h"
RTE\Device\nRF52840_xxAA\system_nrf52840.c: 0 warnings, 1 error
".\_build\nrf52840_xxaa.axf" - 1 Error(s), 0 Warning(s).
Target not created.

  • Check out the solutions in this thread and see if that gets rid of the error message.

    If it doesn't work, please report to me and I will look into it.

    Best regards,

    Simon

  • Hi,simon,

    I tried to delete the special file(compiler_abstraction.h) according to the guide,but the same compiling error still exist

  • I got the same error and executed the steps below, and was able to build and flash an example with Keil V5.28. I don't have too much knowledge about Keil, and I don't know if this is the "correct"  way of going about it, but it worked. Here is my approach:

    • Set "Select Software Packs.." as followed:

    • Renamed compiler_abstraction.h in modules/nrfx/mdk:

    • Built examples\peripheral\blinky\pca10056 
      • It built successfully but got many warnings:

    • Flashed the example and saw that LED1-LED4 toggled

    Best regards,

    Simon

  • I tried it according to your method, and the compilation error has been solved. I tried another method to solve this problem, which is to replace system_nrf52840.c  file in the project directory.

    For example, replace examples /ble_peripheral /ble_app_uart /pca10056/s140/arm5_no_packs/ RTE/Device/nRF52840_xxAA/system_nrf52840.c  with  modules / nrfx / mdk / system_nrf52840.c.

Related