Multiple "fatal error: syscall_list.h: No such file or directory"

Hi everyone,

currently  I am trying to migrate a project from Segger Studio and SDK v1.8.0 to VS Code in combination with the SDK v2.0.0.

For the Project we are using a custom board which is derived from the standard nrf9160DK board configuration.
I have, so far, implemented a new board file to fit the new pinctrl regulations in SDK v2.0.0 and I have substituted the secure partition manager with the Trusted Firmware-M minimal version. This seam to be the only major changes which affect my application.

The problem is, that I get multiple errors in the building process stating, that I am missing the auto-generated file syscall_list.h. Here my build messages:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Building OEM_Application_V2
west build --build-dir c:\oem-module\src\OEM_Application_V2\build c:\oem-module\src\OEM_Application_V2 --pristine --board oem_module_v2_ns -- -DNCS_TOOLCHAIN_VERSION:STRING="NONE" -DCONFIG_DEBUG_OPTIMIZATIONS=y -DCONFIG_DEBUG_THREAD_INFO=y -DBOARD_ROOT:STRING="c:/oem-module/src/OEM_Application_V2" -DBOARD_ROOT:STRING="c:/oem-module/src/OEM_Application_V2"
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base (cached)).
-- Application: C:/oem-module/src/OEM_Application_V2
-- Found Python3: C:/ncs/toolchains/v2.0.0/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
-- Cache files will be written to: C:/ncs/v2.0.0/zephyr/.cache
-- Zephyr version: 3.0.99 (C:/ncs/v2.0.0/zephyr)
-- Found west (found suitable version "0.13.1", minimum required is "0.7.1")
-- Board: oem_module_v2_ns
-- Found host-tools: zephyr 0.14.1 (C:/ncs/toolchains/v2.0.0/opt/zephyr-sdk)
-- Found dtc: C:/ncs/toolchains/v2.0.0/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
-- Found toolchain: zephyr 0.14.1 (C:/ncs/toolchains/v2.0.0/opt/zephyr-sdk)
-- Found BOARD.dts: C:/oem-module/src/OEM_Application_V2/boards/arm/oem_module_v2/oem_module_v2_ns.dts
-- Generated zephyr.dts: C:/oem-module/src/OEM_Application_V2/build/zephyr/zephyr.dts
-- Generated devicetree_unfixed.h: C:/oem-module/src/OEM_Application_V2/build/zephyr/include/generated/devicetree_unfixed.h
-- Generated device_extern.h: C:/oem-module/src/OEM_Application_V2/build/zephyr/include/generated/device_extern.h
-- Including generated dts.cmake file: C:/oem-module/src/OEM_Application_V2/build/zephyr/dts.cmake
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

So far I was not able do find the cause of this problem. I also tried to build my application with the standard nRF9160DK board files unfortunately this yielded the same building errors which leaves me to belief I messed up some of the Config options in proj.conf. Maybe I have searched with the wrong terms, but so far I also was only able to find this Git thread with a "similar" problem. But the user which describes this problem uses external libs which are self-written, which is not the case in my application.

Best regards,

Andreas