No SOURCES given to Zephyr library

We have a custom nRF9160 board which in Zephyr v1.7.1 defined in the boards\arm tree. It is a near copy of the nrf9160dk_nrf9160 folder with hardware changes and additions.We are now trying to implement a MQTT client as a proof of concept for a customer. Our current code connects to a custom TCP server. I wanted to use the latest Zephyr version v2.2.0 but now the nRF9160 simple MQTT example will not compile using our custom board definitions giving

No SOURCES given to Zephyr library: boards__arm__nrf9160_vaporc20

  Excluding target from build.

When building for the nrf9160dk_nrf9160_ns there are no errors.

I went over the files several times and do not see the difference but there must be something.

Executing task: nRF Connect: Generate config nrf9160_vaporc20_ns for e:\Projects\Nordic\nRF9160\ami_vaporc20_mqtt\ami_vaporc20_mqtt 

Building ami_vaporc20_mqtt
west build --build-dir e:\Projects\Nordic\nRF9160\ami_vaporc20_mqtt\ami_vaporc20_mqtt\build e:\Projects\Nordic\nRF9160\ami_vaporc20_mqtt\ami_vaporc20_mqtt --pristine --board nrf9160_vaporc20_ns -- -DNCS_TOOLCHAIN_VERSION:STRING="NONE" -DCONFIG_DEBUG_OPTIMIZATIONS=y -DCONFIG_DEBUG_THREAD_INFO=y

-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: E:/Projects/Nordic/nRF9160/ami_vaporc20_mqtt/ami_vaporc20_mqtt
-- Found Python3: C:/ncs/toolchains/v2.2.0/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter 
-- Cache files will be written to: C:/ncs/v2.2.0/zephyr/.cache
-- Zephyr version: 3.2.99 (C:/ncs/v2.2.0/zephyr)
-- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
-- Board: nrf9160_vaporc20_ns, Revision: 0.7.0
-- Found host-tools: zephyr 0.15.1 (C:/ncs/toolchains/v2.2.0/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.15.1 (C:/ncs/toolchains/v2.2.0/opt/zephyr-sdk)
-- Found Dtc: C:/ncs/toolchains/v2.2.0/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") 
-- Found BOARD.dts: C:/ncs/v2.2.0/zephyr/boards/arm/nrf9160_vaporc20/nrf9160_vaporc20_ns.dts
-- Generated zephyr.dts: E:/Projects/Nordic/nRF9160/ami_vaporc20_mqtt/ami_vaporc20_mqtt/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: E:/Projects/Nordic/nRF9160/ami_vaporc20_mqtt/ami_vaporc20_mqtt/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: E:/Projects/Nordic/nRF9160/ami_vaporc20_mqtt/ami_vaporc20_mqtt/build/zephyr/dts.cmake
Parsing E:/Projects/Nordic/nRF9160/ami_vaporc20_mqtt/ami_vaporc20_mqtt/Kconfig
Loaded configuration 'C:/ncs/v2.2.0/zephyr/boards/arm/nrf9160_vaporc20/nrf9160_vaporc20_ns_defconfig'
Merged configuration 'E:/Projects/Nordic/nRF9160/ami_vaporc20_mqtt/ami_vaporc20_mqtt/prj.conf'
Merged configuration 'E:/Projects/Nordic/nRF9160/ami_vaporc20_mqtt/ami_vaporc20_mqtt/build/zephyr/misc/generated/extra_kconfig_options.conf'
Configuration saved to 'E:/Projects/Nordic/nRF9160/ami_vaporc20_mqtt/ami_vaporc20_mqtt/build/zephyr/.config'
Kconfig header saved to 'E:/Projects/Nordic/nRF9160/ami_vaporc20_mqtt/ami_vaporc20_mqtt/build/zephyr/include/generated/autoconf.h'
-- The C compiler identification is GNU 12.1.0
-- The CXX compiler identification is GNU 12.1.0
-- The ASM compiler identification is GNU
-- Found assembler: C:/ncs/toolchains/v2.2.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
CMake Warning at C:/ncs/v2.2.0/zephyr/CMakeLists.txt:824 (message):
  No SOURCES given to Zephyr library: boards__arm__nrf9160_vaporc20

  Excluding target from build.


-- Configuring done
-- Generating done
-- Build files have been written to: E:/Projects/Nordic/nRF9160/ami_vaporc20_mqtt/ami_vaporc20_mqtt/build
-- west build: building application
[1/205] Generating include/generated/version.h
-- Zephyr version: 3.2.99 (C:/ncs/v2.2.0/zephyr), build: v3.2.99-ncs1
[2/205] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
[3/205] Generating include/generated/driver-validation.h
[4/205] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
[5/205] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
[6/205] Building C object zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj
[7/205] Generating include/generated/offsets.h
[8/205] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_history.c.obj
[9/205] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/modules/devmem_service.c.obj
[10/205] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_fprintf.c.obj
[11/205] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_log_backend.c.obj
[12/205] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_help.c.obj
[13/205] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_utils.c.obj
[14/205] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/backends/shell_uart.c.obj
[15/205] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_ops.c.obj
[16/205] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_cmds.c.obj
[17/205] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
[18/205] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell.c.obj
[19/205] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/state.c.obj
[20/205] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/shell_wildcard.c.obj
[21/205] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/sockets/getaddrinfo.c.obj
[22/205] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/utils/addr_utils.c.obj
[23/205] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/sockets/sockets_select.c.obj
[24/205] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/pm.c.obj
[25/205] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/sockets/socket_offload.c.obj
[26/205] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fault_s.S.obj
[27/205] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/exc_exit.S.obj
[28/205] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/policy.c.obj
[29/205] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/cpu_idle.S.obj
[30/205] Building C object zephyr/arch/common/CMakeFiles/isr_tables.dir/isr_tables.c.obj
[31/205] Generating linker_zephyr_pre1.cmd
[32/205] Generating linker_zephyr_pre0.cmd
[33/205] Building C object zephyr/arch/common/CMakeFiles/arch__common.dir/sw_isr_common.c.obj
[34/205] Building C object zephyr/CMakeFiles/zephyr_pre0.dir/misc/empty_file.c.obj
[35/205] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/irq_manage.c.obj
[36/205] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/nmi.c.obj
[37/205] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap_helper.S.obj
[38/205] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/prep_c.c.obj
[39/205] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/fatal.c.obj
[40/205] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/nmi_on_reset.S.obj
[41/205] Linking C static library zephyr\arch\common\libisr_tables.a
[42/205] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap.c.obj
[43/205] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/isr_wrapper.S.obj
[44/205] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/irq_init.c.obj
[45/205] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/reset.S.obj
[46/205] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/sockets/sockets.c.obj
[47/205] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/vector_table.S.obj
[48/205] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/thread.c.obj
[49/205] Linking C static library zephyr\arch\common\libarch__common.a
[50/205] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fpu.c.obj
[51/205] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/scb.c.obj
[52/205] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fault.c.obj
[53/205] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/thread_abort.c.obj
[54/205] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/cmse/CMakeFiles/arch__arm__core__aarch32__cortex_m__cmse.dir/arm_core_cmse.c.obj
[55/205] Building C object zephyr/soc/arm/common/cortex_m/CMakeFiles/soc__arm__common__cortex_m.dir/arm_mpu_regions.c.obj
[56/205] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_core_mpu.c.obj
[57/205] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
[58/205] Linking C static library zephyr\arch\arch\arm\core\aarch32\libarch__arm__core__aarch32.a
[59/205] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
[60/205] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
[61/205] Building C object zephyr/lib/libc/newlib/CMakeFiles/lib__libc__newlib.dir/libc-hooks.c.obj
[62/205] Linking C static library zephyr\arch\arch\arm\core\aarch32\cortex_m\cmse\libarch__arm__core__aarch32__cortex_m__cmse.a
[63/205] Linking C static library zephyr\arch\arch\arm\core\aarch32\cortex_m\libarch__arm__core__aarch32__cortex_m.a
[64/205] Linking C static library zephyr\soc\arm\common\cortex_m\libsoc__arm__common__cortex_m.a
[65/205] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
[66/205] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
[67/205] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_mpu.c.obj
[68/205] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
[69/205] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
[70/205] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
[71/205] Linking C static library zephyr\lib\libc\newlib\liblib__libc__newlib.a
[72/205] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
[73/205] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
[74/205] Linking C static library zephyr\arch\arch\arm\core\aarch32\mpu\libarch__arm__core__aarch32__mpu.a
[75/205] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
[76/205] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
[77/205] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/multi_heap.c.obj
[78/205] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
[79/205] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
[80/205] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
[81/205] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
[82/205] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
[83/205] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
[84/205] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
[85/205] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
[86/205] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
[87/205] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj
[88/205] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/assert.c.obj
[89/205] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/ring_buffer.c.obj
[90/205] Building C object zephyr/CMakeFiles/zephyr.dir/lib/util/fnmatch/fnmatch.c.obj
[91/205] Building C object CMakeFiles/app.dir/src/main.c.obj
[92/205] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/nrf91/power.c.obj
[93/205] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/reboot.c.obj
[94/205] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_cache.c.obj
[95/205] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/nrf91/soc.c.obj
[96/205] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/mpsc_pbuf.c.obj
[97/205] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_cmds.c.obj
[98/205] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/modules/device_service.c.obj
[99/205] Building ASM object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/common/soc_nrf_common.S.obj
[100/205] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_output.c.obj
[101/205] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/shell/modules/kernel_service.c.obj
[102/205] Linking C static library app\libapp.a
[103/205] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_msg.c.obj
[104/205] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/validate_enabled_instances.c.obj
[105/205] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/debug/thread_info.c.obj
[106/205] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_core.c.obj
[107/205] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_timeout.c.obj
[108/205] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/validate_base_addresses.c.obj
[109/205] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_mgmt.c.obj
[110/205] Building C object zephyr/subsys/net/CMakeFiles/subsys__net.dir/buf.c.obj
[111/205] Building C object zephyr/subsys/net/lib/mqtt/CMakeFiles/subsys__net__lib__mqtt.dir/mqtt_transport.c.obj
[112/205] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/utils.c.obj
[113/205] Building C object zephyr/subsys/net/lib/mqtt/CMakeFiles/subsys__net__lib__mqtt.dir/mqtt_transport_socket_tcp.c.obj
[114/205] Building C object zephyr/subsys/net/lib/mqtt/CMakeFiles/subsys__net__lib__mqtt.dir/mqtt_decoder.c.obj
[115/205] Building C object zephyr/subsys/net/lib/mqtt/CMakeFiles/subsys__net__lib__mqtt.dir/mqtt_rx.c.obj
[116/205] Linking C static library zephyr\subsys\net\libsubsys__net.a
[117/205] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_core.c.obj
[118/205] Linking C static library zephyr\libzephyr.a
[119/205] Building C object zephyr/drivers/console/CMakeFiles/drivers__console.dir/uart_console.c.obj
[120/205] Building C object zephyr/subsys/net/lib/mqtt/CMakeFiles/subsys__net__lib__mqtt.dir/mqtt.c.obj
[121/205] Building C object zephyr/drivers/hwinfo/CMakeFiles/drivers__hwinfo.dir/hwinfo_weak_impl.c.obj
[122/205] Building C object zephyr/subsys/net/ip/CMakeFiles/subsys__net__ip.dir/net_if.c.obj
[123/205] Building C object zephyr/drivers/serial/CMakeFiles/drivers__serial.dir/uart_nrfx_uarte.c.obj
FAILED: zephyr/drivers/serial/CMakeFiles/drivers__serial.dir/uart_nrfx_uarte.c.obj 
C:\ncs\toolchains\v2.2.0\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DNRF9160_XXAA -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DNRF_TRUSTZONE_NONSECURE -DUSE_PARTITION_MANAGER=0 -D_ANSI_SOURCE -D_FORTIFY_SOURCE=1 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR_SUPERVISOR__ -D__ZEPHYR__=1 -IC:/ncs/v2.2.0/zephyr/include -Izephyr/include/generated -IC:/ncs/v2.2.0/zephyr/soc/arm/nordic_nrf/nrf91 -IC:/ncs/v2.2.0/zephyr/lib/libc/newlib/include -IC:/ncs/v2.2.0/zephyr/lib/util/fnmatch/. -IC:/ncs/v2.2.0/zephyr/soc/arm/nordic_nrf/common/. -IC:/ncs/v2.2.0/zephyr/subsys/net/lib/sockets/. -IC:/ncs/v2.2.0/nrf/include -IC:/ncs/v2.2.0/nrf/lib/at_cmd_parser/include -IC:/ncs/v2.2.0/nrf/tests/include -IC:/ncs/v2.2.0/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.2.0/modules/hal/nordic/nrfx -IC:/ncs/v2.2.0/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.2.0/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.2.0/zephyr/modules/hal_nordic/nrfx/. -IC:/ncs/v2.2.0/nrfxlib/nrf_modem/include -fno-strict-aliasing -Og -imacros E:/Projects/Nordic/nRF9160/ami_vaporc20_mqtt/ami_vaporc20_mqtt/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=C:/ncs/toolchains/v2.2.0/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v2.2.0/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=E:/Projects/Nordic/nRF9160/ami_vaporc20_mqtt/ami_vaporc20_mqtt=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.2.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.2.0=WEST_TOPDIR -ffunction-sections -fdata-sections -specs=nano.specs -std=c99 -MD -MT zephyr/drivers/serial/CMakeFiles/drivers__serial.dir/uart_nrfx_uarte.c.obj -MF zephyr\drivers\serial\CMakeFiles\drivers__serial.dir\uart_nrfx_uarte.c.obj.d -o zephyr/drivers/serial/CMakeFiles/drivers__serial.dir/uart_nrfx_uarte.c.obj -c C:/ncs/v2.2.0/zephyr/drivers/serial/uart_nrfx_uarte.c
In file included from C:\ncs\v2.2.0\zephyr\include\zephyr\toolchain.h:50,
                 from C:\ncs\v2.2.0\zephyr\include\zephyr\devicetree\zephyr.h:15,
                 from C:\ncs\v2.2.0\zephyr\include\zephyr\devicetree.h:3931,
                 from C:\ncs\v2.2.0\zephyr\include\zephyr\device.h:12,
                 from C:\ncs\v2.2.0\zephyr\include\zephyr\drivers\uart.h:26,
                 from C:\ncs\v2.2.0\zephyr\drivers\serial\uart_nrfx_uarte.c:11:
C:\ncs\v2.2.0\zephyr\include\zephyr\toolchain\gcc.h:77:36: error: static assertion failed: "/soc/peripheral@40000000/uart@8000 defined without required pin configuration"
   77 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG)
      |                                    ^~~~~~~~~~~~~~
c:\ncs\v2.2.0\zephyr\soc\arm\nordic_nrf\common\soc_nrf_common.h:218:9: note: in expansion of macro 'BUILD_ASSERT'
  218 |         BUILD_ASSERT((IS_ENABLED(CONFIG_PINCTRL) &&                     \
      |         ^~~~~~~~~~~~
C:\ncs\v2.2.0\zephyr\drivers\serial\uart_nrfx_uarte.c:2080:9: note: in expansion of macro 'NRF_DT_CHECK_PIN_ASSIGNMENTS'
 2080 |         NRF_DT_CHECK_PIN_ASSIGNMENTS(UARTE(idx), 1,                            \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\ncs\v2.2.0\zephyr\drivers\serial\uart_nrfx_uarte.c:2185:1: note: in expansion of macro 'UART_NRF_UARTE_DEVICE'
 2185 | UART_NRF_UARTE_DEVICE(0);
      | ^~~~~~~~~~~~~~~~~~~~~
C:\ncs\v2.2.0\zephyr\include\zephyr\toolchain\gcc.h:77:36: error: static assertion failed: "/soc/peripheral@40000000/uart@8000 has pinctrl states defined although PINCTRL is not enabled"
   77 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, "" MSG)
      |                                    ^~~~~~~~~~~~~~
c:\ncs\v2.2.0\zephyr\soc\arm\nordic_nrf\common\soc_nrf_common.h:234:9: note: in expansion of macro 'BUILD_ASSERT'
  234 |         BUILD_ASSERT(IS_ENABLED(CONFIG_PINCTRL) ||                      \
      |         ^~~~~~~~~~~~
C:\ncs\v2.2.0\zephyr\drivers\serial\uart_nrfx_uarte.c:2080:9: note: in expansion of macro 'NRF_DT_CHECK_PIN_ASSIGNMENTS'
 2080 |         NRF_DT_CHECK_PIN_ASSIGNMENTS(UARTE(idx), 1,                            \
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\ncs\v2.2.0\zephyr\drivers\serial\uart_nrfx_uarte.c:2185:1: note: in expansion of macro 'UART_NRF_UARTE_DEVICE'
 2185 | UART_NRF_UARTE_DEVICE(0);
      | ^~~~~~~~~~~~~~~~~~~~~
[124/205] Building C object zephyr/drivers/hwinfo/CMakeFiles/drivers__hwinfo.dir/hwinfo_shell.c.obj
[125/205] Building C object zephyr/drivers/clock_control/CMakeFiles/drivers__clock_control.dir/clock_control_nrf.c.obj
[126/205] Building C object zephyr/subsys/net/lib/mqtt/CMakeFiles/subsys__net__lib__mqtt.dir/mqtt_encoder.c.obj
[127/205] Building C object zephyr/drivers/gpio/CMakeFiles/drivers__gpio.dir/gpio_nrfx.c.obj
[128/205] Linking C static library zephyr\drivers\console\libdrivers__console.a
[129/205] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/sys_clock_init.c.obj
[130/205] Linking C static library zephyr\subsys\net\ip\libsubsys__net__ip.a
[131/205] Building C object modules/nrf/lib/nrf_modem_lib/CMakeFiles/..__nrf__lib__nrf_modem_lib.dir/nrf_modem_lib.c.obj
FAILED: modules/nrf/lib/nrf_modem_lib/CMakeFiles/..__nrf__lib__nrf_modem_lib.dir/nrf_modem_lib.c.obj 
C:\ncs\toolchains\v2.2.0\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DNRF9160_XXAA -DNRF_SKIP_FICR_NS_COPY_TO_RAM -DNRF_TRUSTZONE_NONSECURE -DUSE_PARTITION_MANAGER=0 -D_ANSI_SOURCE -D_FORTIFY_SOURCE=1 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/ncs/v2.2.0/zephyr/include -Izephyr/include/generated -IC:/ncs/v2.2.0/zephyr/soc/arm/nordic_nrf/nrf91 -IC:/ncs/v2.2.0/zephyr/lib/libc/newlib/include -IC:/ncs/v2.2.0/zephyr/lib/util/fnmatch/. -IC:/ncs/v2.2.0/zephyr/soc/arm/nordic_nrf/common/. -IC:/ncs/v2.2.0/zephyr/subsys/net/lib/sockets/. -IC:/ncs/v2.2.0/nrf/include -IC:/ncs/v2.2.0/nrf/lib/at_cmd_parser/include -IC:/ncs/v2.2.0/nrf/tests/include -IC:/ncs/v2.2.0/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.2.0/modules/hal/nordic/nrfx -IC:/ncs/v2.2.0/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.2.0/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.2.0/zephyr/modules/hal_nordic/nrfx/. -IC:/ncs/v2.2.0/nrfxlib/nrf_modem/include -fno-strict-aliasing -Og -imacros E:/Projects/Nordic/nRF9160/ami_vaporc20_mqtt/ami_vaporc20_mqtt/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m33 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=C:/ncs/toolchains/v2.2.0/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v2.2.0/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wno-main -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=E:/Projects/Nordic/nRF9160/ami_vaporc20_mqtt/ami_vaporc20_mqtt=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.2.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.2.0=WEST_TOPDIR -ffunction-sections -fdata-sections -specs=nano.specs -std=c99 -MD -MT modules/nrf/lib/nrf_modem_lib/CMakeFiles/..__nrf__lib__nrf_modem_lib.dir/nrf_modem_lib.c.obj -MF modules\nrf\lib\nrf_modem_lib\CMakeFiles\..__nrf__lib__nrf_modem_lib.dir\nrf_modem_lib.c.obj.d -o modules/nrf/lib/nrf_modem_lib/CMakeFiles/..__nrf__lib__nrf_modem_lib.dir/nrf_modem_lib.c.obj -c C:/ncs/v2.2.0/nrf/lib/nrf_modem_lib/nrf_modem_lib.c
C:\ncs\v2.2.0\nrf\lib\nrf_modem_lib\nrf_modem_lib.c:17:10: fatal error: pm_config.h: No such file or directory
   17 | #include <pm_config.h>
      |          ^~~~~~~~~~~~~
compilation terminated.
[132/205] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/nrf_rtc_timer.c.obj
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'c:\ncs\toolchains\v2.2.0\opt\bin\cmake.EXE' --build 'e:\Projects\Nordic\nRF9160\ami_vaporc20_mqtt\ami_vaporc20_mqtt\build'

 *  The terminal process terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. 

My board folder:

nrf9160_vaporc20_02Jan2023a.zip

My project:

ami_vaporc20_mqtt_02Jan2023a.zip

Sorry but I have spent hours and cannot see the difference.

Thanks for your help!

David

Parents
  • Hi David,

    The problem of "No sources given" is related to the commands given in the CMakeLists.txt where we are instructing to add the library but are not including any library / source (solution below).

    Other problems (pin control and pm_config) are related to the project configurations. We have to enable the PINCTRL and PM in the proj.conf (see below).

    Here is what I did and it was compiled successfully:

    1) I updated the folder structure by including the contents of the board files here:   ./boards/arm/nrf9160_vaporc20/ 

    2) I removed the contents of CMakeLists.txt present in ./boards/arm/nrf9160_vaporc20/ 

    3) Updated the proj.conf by including following:

    CONFIG_PINCTRL=y
    CONFIG_BUILD_WITH_TFM=y
    CONFIG_PARTITION_MANAGER_ENABLED=y
    CONFIG_PM=y
    CONFIG_MQTT_LIB_TLS=y

    No error / successful compilation.

    Hope it helps.

    Regards,

    Naeem

Reply
  • Hi David,

    The problem of "No sources given" is related to the commands given in the CMakeLists.txt where we are instructing to add the library but are not including any library / source (solution below).

    Other problems (pin control and pm_config) are related to the project configurations. We have to enable the PINCTRL and PM in the proj.conf (see below).

    Here is what I did and it was compiled successfully:

    1) I updated the folder structure by including the contents of the board files here:   ./boards/arm/nrf9160_vaporc20/ 

    2) I removed the contents of CMakeLists.txt present in ./boards/arm/nrf9160_vaporc20/ 

    3) Updated the proj.conf by including following:

    CONFIG_PINCTRL=y
    CONFIG_BUILD_WITH_TFM=y
    CONFIG_PARTITION_MANAGER_ENABLED=y
    CONFIG_PM=y
    CONFIG_MQTT_LIB_TLS=y

    No error / successful compilation.

    Hope it helps.

    Regards,

    Naeem

Children
Related