Giter Site home page Giter Site logo

Comments (7)

rbaron avatar rbaron commented on June 12, 2024

@schejbity I just tried building the ble and zigbee samples using the 2.3.0 nrf-connect SDK and it seems to work fine for me. Did you get the same error before updating the SDK?

I would try:

  • Double checking your repository is clean
  • Doing a pristine build (alternatively removing the build/ directory inside the sample dir you're building)
  • Trying to build some other built-in sample from the SDK (like blinky)

Edit: SDK 2.3.0 also seems to be working as expected with Docker:

$ docker run --rm -v ${PWD}:/code -w /code/samples/ble nordicplayground/nrfconnect-sdk:v2.3-branch west build --build-dir ./build --pristine --board [email protected]

-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /code/samples/ble

... Lots of build targets ...

[206/218] Linking C static library prstlib/libprstlib.a
[207/218] Linking C static library app/libapp.a
[208/218] Linking C executable zephyr/zephyr_pre0.elf

[209/218] Generating dev_handles.c
[210/218] Building C object zephyr/CMakeFiles/zephyr_pre1.dir/misc/empty_file.c.obj
[211/218] Building C object zephyr/CMakeFiles/zephyr_pre1.dir/dev_handles.c.obj
[212/218] Linking C executable zephyr/zephyr_pre1.elf

[213/218] Generating linker.cmd
[214/218] Generating isr_tables.c, isrList.bin
[215/218] Building C object zephyr/CMakeFiles/zephyr_final.dir/misc/empty_file.c.obj
[216/218] Building C object zephyr/CMakeFiles/zephyr_final.dir/dev_handles.c.obj
[217/218] Building C object zephyr/CMakeFiles/zephyr_final.dir/isr_tables.c.obj
[218/218] Linking C executable zephyr/zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:      187024 B         1 MB     17.84%
             RAM:       33176 B       256 KB     12.66%
        IDT_LIST:          0 GB         2 KB      0.00%

$ echo $?
0

from b-parasite.

schejbity avatar schejbity commented on June 12, 2024

I have already tried several examples - ble and soil_read_loop. Without success.

Yes, the same errors were displayed even with the older version of the SDK before the update.

The repository was freshly downloaded, with no changes. I will try to download it again.

In the following days, I will try the blinky example.

Thanks.

from b-parasite.

schejbity avatar schejbity commented on June 12, 2024

Still not working :-(

I tried downloading the entire repository again, reinstalling the VSCode extension and still nothing.
Also delete all build directories.
Build succeeded only for the "blinky" example.

Is my build configuration correct?
image

Here is the output from the terminal, when building the example "ble":

[200/214] Linking C static library zephyr\kernel\libkernel.a
[201/214] Building C object prstlib/CMakeFiles/prstlib.dir/src/adc.c.obj
FAILED: prstlib/CMakeFiles/prstlib.dir/src/adc.c.obj 
C:\ncs\toolchains\v2.3.0\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DNRF52840_XXAA -DUSE_PARTITION_MANAGER=0 -D_ANSI_SOURCE -D_FORTIFY_SOURCE=1 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -ID:/b-parasite-main/code/nrf-connect/samples/ble/src -ID:/b-parasite-main/code/nrf-connect/prstlib/include -IC:/ncs/v2.3.0/nrf/drivers/mpsl/clock_control -IC:/ncs/v2.3.0/zephyr/include -Izephyr/include/generated -IC:/ncs/v2.3.0/zephyr/soc/arm/nordic_nrf/nrf52 -IC:/ncs/v2.3.0/zephyr/lib/libc/newlib/include -IC:/ncs/v2.3.0/zephyr/soc/arm/nordic_nrf/common/. -IC:/ncs/v2.3.0/zephyr/subsys/bluetooth -IC:/ncs/v2.3.0/nrf/include -IC:/ncs/v2.3.0/nrf/lib/multithreading_lock/. -IC:/ncs/v2.3.0/nrf/subsys/bluetooth/controller/. -IC:/ncs/v2.3.0/nrf/tests/include -IC:/ncs/v2.3.0/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.3.0/modules/hal/nordic/nrfx -IC:/ncs/v2.3.0/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.3.0/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.3.0/zephyr/modules/hal_nordic/nrfx/. -IC:/ncs/v2.3.0/modules/debug/segger/SEGGER -IC:/ncs/v2.3.0/modules/debug/segger/Config -IC:/ncs/v2.3.0/zephyr/modules/segger/. -IC:/ncs/v2.3.0/modules/crypto/tinycrypt/lib/include -IC:/ncs/v2.3.0/nrfxlib/mpsl/include -IC:/ncs/v2.3.0/nrfxlib/mpsl/include/protocol -IC:/ncs/v2.3.0/nrfxlib/softdevice_controller/include -isystem C:/ncs/v2.3.0/nrfxlib/crypto/nrf_cc310_platform/include -fno-strict-aliasing -Os -imacros D:/b-parasite-main/code/nrf-connect/samples/ble/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=C:/ncs/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v2.3.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=D:/b-parasite-main/code/nrf-connect/samples/ble=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.3.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.3.0=WEST_TOPDIR -ffunction-sections -fdata-sections -specs=nano.specs -std=c99 -MD -MT prstlib/CMakeFiles/prstlib.dir/src/adc.c.obj -MF prstlib\CMakeFiles\prstlib.dir\src\adc.c.obj.d -o prstlib/CMakeFiles/prstlib.dir/src/adc.c.obj -c D:/b-parasite-main/code/nrf-connect/prstlib/src/adc.c
In file included from D:\b-parasite-main\code\nrf-connect\prstlib\src\adc.c:4:
C:\ncs\v2.3.0\zephyr\include\zephyr\devicetree.h:190:36: error: 'DT_N_NODELABEL_soil_calibration_coeffs_P_dry' undeclared here (not in a function)
  190 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
      |                                    ^~~~~~~~~~~~~~~
C:\ncs\v2.3.0\zephyr\include\zephyr\devicetree.h:3903:29: note: in definition of macro 'DT_CAT3'
 3903 | #define DT_CAT3(a1, a2, a3) a1 ## a2 ## a3
      |                             ^~
D:\b-parasite-main\code\nrf-connect\prstlib\src\adc.c:21:34: note: in expansion of macro 'DT_PROP'
   21 | static const int dry_coeffs[3] = DT_PROP(DT_NODELABEL(soil_calibration_coeffs), dry);
      |                                  ^~~~~~~
C:\ncs\v2.3.0\zephyr\include\zephyr\devicetree.h:190:29: note: in expansion of macro 'DT_CAT'
  190 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
      |                             ^~~~~~
D:\b-parasite-main\code\nrf-connect\prstlib\src\adc.c:21:42: note: in expansion of macro 'DT_NODELABEL'
   21 | static const int dry_coeffs[3] = DT_PROP(DT_NODELABEL(soil_calibration_coeffs), dry);
      |                                          ^~~~~~~~~~~~
C:\ncs\v2.3.0\zephyr\include\zephyr\devicetree.h:190:36: error: 'DT_N_NODELABEL_soil_calibration_coeffs_P_wet' undeclared here (not in a function)
  190 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
      |                                    ^~~~~~~~~~~~~~~
C:\ncs\v2.3.0\zephyr\include\zephyr\devicetree.h:3903:29: note: in definition of macro 'DT_CAT3'
 3903 | #define DT_CAT3(a1, a2, a3) a1 ## a2 ## a3
      |                             ^~
D:\b-parasite-main\code\nrf-connect\prstlib\src\adc.c:22:34: note: in expansion of macro 'DT_PROP'
   22 | static const int wet_coeffs[3] = DT_PROP(DT_NODELABEL(soil_calibration_coeffs), wet);
      |                                  ^~~~~~~
C:\ncs\v2.3.0\zephyr\include\zephyr\devicetree.h:190:29: note: in expansion of macro 'DT_CAT'
  190 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
      |                             ^~~~~~
D:\b-parasite-main\code\nrf-connect\prstlib\src\adc.c:22:42: note: in expansion of macro 'DT_NODELABEL'
   22 | static const int wet_coeffs[3] = DT_PROP(DT_NODELABEL(soil_calibration_coeffs), wet);
      |                                          ^~~~~~~~~~~~
In file included from C:\ncs\v2.3.0\zephyr\include\zephyr\toolchain\gcc.h:89,
                 from C:\ncs\v2.3.0\zephyr\include\zephyr\toolchain.h:50,
                 from C:\ncs\v2.3.0\zephyr\include\zephyr\init.h:13,
                 from C:\ncs\v2.3.0\zephyr\include\zephyr\device.h:13,
                 from C:\ncs\v2.3.0\zephyr\include\zephyr\drivers\adc.h:16,
                 from D:\b-parasite-main\code\nrf-connect\prstlib\src\adc.c:5:
C:\ncs\v2.3.0\zephyr\include\zephyr\device.h:83:41: error: '__device_dts_ord_DT_N_NODELABEL_fast_disch_P_gpios_IDX_0_PH_ORD' undeclared here (not in a function)
   83 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
      |                                         ^~~~~~~~~
C:\ncs\v2.3.0\zephyr\include\zephyr\toolchain\common.h:132:26: note: in definition of macro '_DO_CONCAT'
  132 | #define _DO_CONCAT(x, y) x ## y
      |                          ^
C:\ncs\v2.3.0\zephyr\include\zephyr\device.h:83:33: note: in expansion of macro '_CONCAT'
   83 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
      |                                 ^~~~~~~
C:\ncs\v2.3.0\zephyr\include\zephyr\device.h:209:37: note: in expansion of macro 'DEVICE_NAME_GET'
  209 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id))
      |                                     ^~~~~~~~~~~~~~~
C:\ncs\v2.3.0\zephyr\include\zephyr\device.h:226:34: note: in expansion of macro 'DEVICE_DT_NAME_GET'
  226 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id))
      |                                  ^~~~~~~~~~~~~~~~~~
C:\ncs\v2.3.0\zephyr\include\zephyr\drivers\gpio.h:316:25: note: in expansion of macro 'DEVICE_DT_GET'
  316 |                 .port = DEVICE_DT_GET(DT_GPIO_CTLR_BY_IDX(node_id, prop, idx)),\
      |                         ^~~~~~~~~~~~~
C:\ncs\v2.3.0\zephyr\include\zephyr\drivers\gpio.h:352:9: note: in expansion of macro 'GPIO_DT_SPEC_GET_BY_IDX'
  352 |         GPIO_DT_SPEC_GET_BY_IDX(node_id, prop, 0)
      |         ^~~~~~~~~~~~~~~~~~~~~~~
D:\b-parasite-main\code\nrf-connect\prstlib\src\adc.c:25:5: note: in expansion of macro 'GPIO_DT_SPEC_GET'
   25 |     GPIO_DT_SPEC_GET(DT_NODELABEL(fast_disch), gpios);
      |     ^~~~~~~~~~~~~~~~
C:\ncs\v2.3.0\zephyr\include\zephyr\devicetree.h:190:36: error: 'DT_N_NODELABEL_fast_disch_P_gpios_IDX_0_VAL_pin' undeclared here (not in a function)
  190 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
      |                                    ^~~~~~~~~~~~~~~
C:\ncs\v2.3.0\zephyr\include\zephyr\devicetree.h:3912:9: note: in definition of macro 'DT_CAT7'
 3912 |         a1 ## a2 ## a3 ## a4 ## a5 ## a6 ## a7
      |         ^~
C:\ncs\v2.3.0\zephyr\include\zephyr\devicetree\gpio.h:164:9: note: in expansion of macro 'DT_PHA_BY_IDX'
  164 |         DT_PHA_BY_IDX(node_id, gpio_pha, idx, pin)
      |         ^~~~~~~~~~~~~
C:\ncs\v2.3.0\zephyr\include\zephyr\drivers\gpio.h:317:24: note: in expansion of macro 'DT_GPIO_PIN_BY_IDX'
  317 |                 .pin = DT_GPIO_PIN_BY_IDX(node_id, prop, idx),                 \
      |                        ^~~~~~~~~~~~~~~~~~
C:\ncs\v2.3.0\zephyr\include\zephyr\drivers\gpio.h:352:9: note: in expansion of macro 'GPIO_DT_SPEC_GET_BY_IDX'
  352 |         GPIO_DT_SPEC_GET_BY_IDX(node_id, prop, 0)
      |         ^~~~~~~~~~~~~~~~~~~~~~~
D:\b-parasite-main\code\nrf-connect\prstlib\src\adc.c:25:5: note: in expansion of macro 'GPIO_DT_SPEC_GET'
   25 |     GPIO_DT_SPEC_GET(DT_NODELABEL(fast_disch), gpios);
      |     ^~~~~~~~~~~~~~~~
C:\ncs\v2.3.0\zephyr\include\zephyr\devicetree.h:190:29: note: in expansion of macro 'DT_CAT'
  190 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
      |                             ^~~~~~
D:\b-parasite-main\code\nrf-connect\prstlib\src\adc.c:25:22: note: in expansion of macro 'DT_NODELABEL'
   25 |     GPIO_DT_SPEC_GET(DT_NODELABEL(fast_disch), gpios);
      |                      ^~~~~~~~~~~~
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'c:\ncs\toolchains\v2.3.0\opt\bin\cmake.EXE' --build 'd:\b-parasite-main\code\nrf-connect\samples\ble\build'

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

from b-parasite.

rbaron avatar rbaron commented on June 12, 2024

The issue is likely that you're not including prstlib as described in the docs. I suggest you use the provided .code-workspace file for the sample you're trying to build.

from b-parasite.

schejbity avatar schejbity commented on June 12, 2024

I did the following and the problem persists:
Did I add prstlib correctly?
image

I also noticed that in the "source files" some items are red.
image

Here is the terminal output once again, this time in full.

Building ble
C:\WINDOWS\system32\cmd.exe /d /s /c "west build --build-dir d:\b-parasite-main\code\nrf-connect\samples\ble\build d:\b-parasite-main\code\nrf-connect\samples\ble --pristine --board nrf52840dk_nrf52840 -- -DNCS_TOOLCHAIN_VERSION:STRING="NONE" -DBOARD_ROOT:STRING="d:/b-parasite-main/code/nrf-connect/prstlib""

-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: D:/b-parasite-main/code/nrf-connect/samples/ble
-- Found Python3: C:/ncs/toolchains/v2.3.0/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter 
-- Cache files will be written to: C:/ncs/v2.3.0/zephyr/.cache
-- Zephyr version: 3.2.99 (C:/ncs/v2.3.0/zephyr)
-- Found west (found suitable version "0.14.0", minimum required is "0.7.1")
-- Board: nrf52840dk_nrf52840
-- Found host-tools: zephyr 0.15.2 (C:/ncs/toolchains/v2.3.0/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.15.2 (C:/ncs/toolchains/v2.3.0/opt/zephyr-sdk)
-- Found Dtc: C:/ncs/toolchains/v2.3.0/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6") 
-- Found BOARD.dts: C:/ncs/v2.3.0/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840.dts
-- Found devicetree overlay: D:/b-parasite-main/code/nrf-connect/samples/ble/nrf52840dk_nrf52840.overlay
-- Generated zephyr.dts: D:/b-parasite-main/code/nrf-connect/samples/ble/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: D:/b-parasite-main/code/nrf-connect/samples/ble/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: D:/b-parasite-main/code/nrf-connect/samples/ble/build/zephyr/dts.cmake
Parsing D:/b-parasite-main/code/nrf-connect/samples/ble/Kconfig
Loaded configuration 'C:/ncs/v2.3.0/zephyr/boards/arm/nrf52840dk_nrf52840/nrf52840dk_nrf52840_defconfig'
Merged configuration 'D:/b-parasite-main/code/nrf-connect/samples/ble/prj.conf'
Configuration saved to 'D:/b-parasite-main/code/nrf-connect/samples/ble/build/zephyr/.config'
Kconfig header saved to 'D:/b-parasite-main/code/nrf-connect/samples/ble/build/zephyr/include/generated/autoconf.h'

warning: UART_CONSOLE (defined at drivers/console/Kconfig:43) was assigned the value 'y' but got the
value 'n'. Check these unsatisfied dependencies: SERIAL (=n), SERIAL_HAS_DRIVER (=n). See
http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_UART_CONSOLE and/or look up UART_CONSOLE in
the menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration
Values, and Kconfig - Tips and Best Practices sections of the manual might be helpful too.

-- 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.3.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc.exe
CMake Warning at C:/ncs/v2.3.0/zephyr/CMakeLists.txt:824 (message):
  No SOURCES given to Zephyr library: drivers__console

  Excluding target from build.


Loading Zephyr default modules (Zephyr base (cached)).
-- Configuring done
-- Generating done
-- Build files have been written to: D:/b-parasite-main/code/nrf-connect/samples/ble/build
-- west build: building application
[1/214] Generating include/generated/version.h
-- Zephyr version: 3.2.99 (C:/ncs/v2.3.0/zephyr), build: v3.2.99-ncs2
[2/214] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
[3/214] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
[4/214] Generating include/generated/driver-validation.h
[5/214] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
[6/214] Building C object zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj
[7/214] Generating include/generated/offsets.h
[8/214] Building C object zephyr/CMakeFiles/zephyr.dir/C_/ncs/v2.3.0/modules/crypto/tinycrypt/lib/source/aes_decrypt.c.obj
[9/214] Building C object zephyr/CMakeFiles/zephyr.dir/C_/ncs/v2.3.0/nrfxlib/crypto/nrf_cc310_platform/src/nrf_cc3xx_platform_mutex_zephyr.c.obj
[10/214] Building C object zephyr/CMakeFiles/zephyr.dir/C_/ncs/v2.3.0/modules/crypto/tinycrypt/lib/source/utils.c.obj
[11/214] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/tracing/tracing_none.c.obj
[12/214] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/state.c.obj
[13/214] Building C object zephyr/CMakeFiles/zephyr.dir/C_/ncs/v2.3.0/nrfxlib/crypto/nrf_cc310_platform/src/nrf_cc3xx_platform_abort_zephyr.c.obj
[14/214] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/device.c.obj
[15/214] Building C object zephyr/CMakeFiles/zephyr.dir/C_/ncs/v2.3.0/modules/crypto/tinycrypt/lib/source/aes_encrypt.c.obj
[16/214] Building C object zephyr/arch/common/CMakeFiles/isr_tables.dir/isr_tables.c.obj
[17/214] Building C object zephyr/CMakeFiles/zephyr.dir/C_/ncs/v2.3.0/modules/crypto/tinycrypt/lib/source/cmac_mode.c.obj
[18/214] Building C object zephyr/arch/common/CMakeFiles/arch__common.dir/sw_isr_common.c.obj
[19/214] Generating linker_zephyr_pre1.cmd
[20/214] Generating linker_zephyr_pre0.cmd
[21/214] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/cpu_idle.S.obj
[22/214] Building C object zephyr/CMakeFiles/zephyr_pre0.dir/misc/empty_file.c.obj
[23/214] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap_helper.S.obj
[24/214] Linking C static library zephyr\arch\common\libisr_tables.a
[25/214] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/nmi_on_reset.S.obj
[26/214] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/prep_c.c.obj
[27/214] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/irq_manage.c.obj
[28/214] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/fatal.c.obj
[29/214] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap.c.obj
[30/214] Linking C static library zephyr\arch\common\libarch__common.a
[31/214] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/isr_wrapper.S.obj
[32/214] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/exc_exit.S.obj
[33/214] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fault_s.S.obj
[34/214] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/thread.c.obj
[35/214] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/nmi.c.obj
[36/214] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/reset.S.obj
[37/214] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/irq_init.c.obj
[38/214] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fpu.c.obj
[39/214] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/scb.c.obj
[40/214] Linking C static library zephyr\arch\arch\arm\core\aarch32\libarch__arm__core__aarch32.a
[41/214] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fault.c.obj
[42/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/dec.c.obj
[43/214] Building C object CMakeFiles/app.dir/src/encoding.c.obj
[44/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/printk.c.obj
[45/214] Building C object CMakeFiles/app.dir/src/ble.c.obj
[46/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/hex.c.obj
[47/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/thread_entry.c.obj
[48/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
[49/214] Building C object CMakeFiles/app.dir/src/main.c.obj
[50/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/sem.c.obj
[51/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/fdtable.c.obj
[52/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/rb.c.obj
[53/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/bitarray.c.obj
[54/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/multi_heap.c.obj
[55/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32c_sw.c.obj
[56/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap-validate.c.obj
[57/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/onoff.c.obj
[58/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/timeutil.c.obj
[59/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc8_sw.c.obj
[60/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/heap.c.obj
[61/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc16_sw.c.obj
[62/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc32_sw.c.obj
[63/214] Building C object zephyr/CMakeFiles/zephyr.dir/misc/generated/configs.c.obj
[64/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/crc7_sw.c.obj
[65/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
[66/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/notify.c.obj
[67/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/assert.c.obj
[68/214] Building ASM object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/common/soc_nrf_common.S.obj
[69/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/mpsc_pbuf.c.obj
[70/214] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/validate_enabled_instances.c.obj
[71/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/reboot.c.obj
[72/214] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_mgmt.c.obj
[73/214] Building C object zephyr/CMakeFiles/zephyr.dir/soc/arm/nordic_nrf/validate_base_addresses.c.obj
[74/214] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_complete.c.obj
[75/214] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/pm.c.obj
[76/214] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/backends/log_backend_rtt.c.obj
[77/214] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_core.c.obj
[78/214] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/net/lib/utils/addr_utils.c.obj
[79/214] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_msg.c.obj
[80/214] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_cache.c.obj
[81/214] Building C object zephyr/subsys/bluetooth/common/CMakeFiles/subsys__bluetooth__common.dir/bt_str.c.obj
[82/214] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/pm/policy.c.obj
[83/214] Building C object zephyr/CMakeFiles/zephyr.dir/subsys/logging/log_output.c.obj
[84/214] Building C object zephyr/subsys/bluetooth/common/CMakeFiles/subsys__bluetooth__common.dir/addr.c.obj
[85/214] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/vector_table.S.obj
[86/214] Building C object zephyr/subsys/bluetooth/common/CMakeFiles/subsys__bluetooth__common.dir/dummy.c.obj
[87/214] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_core_mpu.c.obj
[88/214] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/thread_abort.c.obj
[89/214] Building C object zephyr/soc/arm/common/cortex_m/CMakeFiles/soc__arm__common__cortex_m.dir/arm_mpu_regions.c.obj
[90/214] Linking C static library zephyr\libzephyr.a
[91/214] Building C object zephyr/lib/libc/newlib/CMakeFiles/lib__libc__newlib.dir/libc-hooks.c.obj
[92/214] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_mpu.c.obj
[93/214] Building C object zephyr/soc/arm/nordic_nrf/nrf52/CMakeFiles/soc__arm__nordic_nrf__nrf52.dir/power.c.obj
[94/214] Linking C static library zephyr\lib\libc\newlib\liblib__libc__newlib.a
[95/214] Linking C static library zephyr\soc\arm\common\cortex_m\libsoc__arm__common__cortex_m.a
[96/214] Linking C static library zephyr\arch\arch\arm\core\aarch32\cortex_m\libarch__arm__core__aarch32__cortex_m.a
[97/214] Linking C static library zephyr\arch\arch\arm\core\aarch32\mpu\libarch__arm__core__aarch32__mpu.a
[98/214] Building C object zephyr/soc/arm/nordic_nrf/nrf52/CMakeFiles/soc__arm__nordic_nrf__nrf52.dir/soc.c.obj
[99/214] Building C object zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/addr.c.obj
[100/214] Building C object zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/uuid.c.obj
[101/214] Building C object zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/long_wq.c.obj
[102/214] Linking C static library zephyr\soc\arm\nordic_nrf\nrf52\libsoc__arm__nordic_nrf__nrf52.a
[103/214] Building C object zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/buf.c.obj
[104/214] Linking C static library zephyr\subsys\bluetooth\common\libsubsys__bluetooth__common.a
[105/214] Building C object zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/hci_common.c.obj
[106/214] Building C object zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/adv.c.obj
[107/214] Building C object zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/id.c.obj
[108/214] Building C object zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/smp_null.c.obj
[109/214] Building C object zephyr/subsys/net/CMakeFiles/subsys__net.dir/buf.c.obj
[110/214] Building C object zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/l2cap.c.obj
[111/214] Linking C static library zephyr\subsys\net\libsubsys__net.a
[112/214] Building C object zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/conn.c.obj
[113/214] Building C object zephyr/subsys/random/CMakeFiles/subsys__random.dir/rand32_entropy_device.c.obj
[114/214] Building C object zephyr/subsys/random/CMakeFiles/subsys__random.dir/rand32_xoshiro128.c.obj
[115/214] Building C object zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/hci_core.c.obj
[116/214] Building C object zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/gatt.c.obj
[117/214] Building C object zephyr/drivers/adc/CMakeFiles/drivers__adc.dir/adc_nrfx_saadc.c.obj
[118/214] Building C object zephyr/subsys/bluetooth/host/CMakeFiles/subsys__bluetooth__host.dir/att.c.obj
[119/214] Linking C static library zephyr\subsys\random\libsubsys__random.a
[120/214] Building C object zephyr/drivers/adc/CMakeFiles/drivers__adc.dir/adc_common.c.obj
[121/214] Building C object zephyr/drivers/gpio/CMakeFiles/drivers__gpio.dir/gpio_nrfx.c.obj
[122/214] Building C object zephyr/drivers/clock_control/CMakeFiles/drivers__clock_control.dir/clock_control_nrf.c.obj
[123/214] Building C object zephyr/drivers/i2c/CMakeFiles/drivers__i2c.dir/i2c_common.c.obj
[124/214] Linking C static library zephyr\drivers\gpio\libdrivers__gpio.a
[125/214] Linking C static library zephyr\subsys\bluetooth\host\libsubsys__bluetooth__host.a
[126/214] Linking C static library zephyr\drivers\adc\libdrivers__adc.a
[127/214] Building C object zephyr/drivers/i2c/CMakeFiles/drivers__i2c.dir/i2c_nrfx_twi.c.obj
[128/214] Building C object zephyr/drivers/entropy/CMakeFiles/drivers__entropy.dir/entropy_bt_hci.c.obj
[129/214] Linking C static library zephyr\drivers\clock_control\libdrivers__clock_control.a
[130/214] Linking C static library zephyr\drivers\i2c\libdrivers__i2c.a
[131/214] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/nrf_rtc_timer.c.obj
[132/214] Building C object zephyr/drivers/entropy/CMakeFiles/drivers__entropy.dir/entropy_nrf5.c.obj
[133/214] Building C object modules/nrf/subsys/mpsl/fem/CMakeFiles/..__nrf__subsys__mpsl__fem.dir/api_init/mpsl_fem_api_init.c.obj
[134/214] Building C object zephyr/drivers/pinctrl/CMakeFiles/drivers__pinctrl.dir/pinctrl_nrf.c.obj
[135/214] Building C object zephyr/drivers/pinctrl/CMakeFiles/drivers__pinctrl.dir/common.c.obj
[136/214] Building C object zephyr/drivers/pwm/CMakeFiles/drivers__pwm.dir/pwm_nrfx.c.obj
[137/214] Building C object zephyr/drivers/entropy/CMakeFiles/drivers__entropy.dir/C_/ncs/v2.3.0/nrf/drivers/entropy/entropy_cc3xx.c.obj
[138/214] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/sys_clock_init.c.obj
[139/214] Linking C static library modules\nrf\subsys\mpsl\fem\lib..__nrf__subsys__mpsl__fem.a
[140/214] Linking C static library zephyr\drivers\pinctrl\libdrivers__pinctrl.a
[141/214] Linking C static library zephyr\drivers\pwm\libdrivers__pwm.a
[142/214] Building C object modules/nrf/lib/multithreading_lock/CMakeFiles/..__nrf__lib__multithreading_lock.dir/multithreading_lock.c.obj
[143/214] Building C object modules/nrf/lib/fatal_error/CMakeFiles/..__nrf__lib__fatal_error.dir/fatal_error.c.obj
[144/214] Linking C static library zephyr\drivers\timer\libdrivers__timer.a
[145/214] Building C object modules/nrf/subsys/bluetooth/controller/CMakeFiles/..__nrf__subsys__bluetooth__controller.dir/hci_internal.c.obj
[146/214] Linking C static library zephyr\drivers\entropy\libdrivers__entropy.a
[147/214] Linking C static library modules\nrf\lib\multithreading_lock\lib..__nrf__lib__multithreading_lock.a
[148/214] Linking C static library modules\nrf\lib\fatal_error\lib..__nrf__lib__fatal_error.a
[149/214] Building C object modules/nrf/subsys/bluetooth/controller/CMakeFiles/..__nrf__subsys__bluetooth__controller.dir/crypto.c.obj
[150/214] Building C object modules/nrf/drivers/mpsl/clock_control/CMakeFiles/..__nrf__drivers__mpsl__clock_control.dir/nrfx_clock_mpsl.c.obj
[151/214] Building C object modules/nrf/subsys/mpsl/init/CMakeFiles/..__nrf__subsys__mpsl__init.dir/mpsl_init.c.obj
[152/214] Building C object modules/nrf/drivers/hw_cc310/CMakeFiles/..__nrf__drivers__hw_cc310.dir/hw_cc310.c.obj
[153/214] Building C object modules/nrf/subsys/bluetooth/controller/CMakeFiles/..__nrf__subsys__bluetooth__controller.dir/hci_driver.c.obj
[154/214] Building C object modules/nrf/subsys/bluetooth/controller/CMakeFiles/..__nrf__subsys__bluetooth__controller.dir/ecdh.c.obj
[155/214] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/nrfx_glue.c.obj
[156/214] Linking C static library modules\nrf\drivers\hw_cc310\lib..__nrf__drivers__hw_cc310.a
[157/214] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v2.3.0/modules/hal/nordic/nrfx/mdk/system_nrf52840.c.obj
[158/214] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v2.3.0/modules/hal/nordic/nrfx/drivers/src/nrfx_twi_twim.c.obj
[159/214] Linking C static library modules\nrf\subsys\mpsl\init\lib..__nrf__subsys__mpsl__init.a
[160/214] Linking C static library modules\nrf\drivers\mpsl\clock_control\lib..__nrf__drivers__mpsl__clock_control.a
[161/214] Linking C static library modules\nrf\subsys\bluetooth\controller\lib..__nrf__subsys__bluetooth__controller.a
[162/214] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v2.3.0/modules/hal/nordic/nrfx/drivers/src/nrfx_gpiote.c.obj
[163/214] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v2.3.0/modules/hal/nordic/nrfx/helpers/nrfx_flag32_allocator.c.obj
[164/214] Building C object modules/segger/CMakeFiles/modules__segger.dir/C_/ncs/v2.3.0/modules/debug/segger/SEGGER/SEGGER_RTT.c.obj
[165/214] Building C object modules/segger/CMakeFiles/modules__segger.dir/SEGGER_RTT_zephyr.c.obj
[166/214] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v2.3.0/modules/hal/nordic/nrfx/drivers/src/nrfx_pwm.c.obj
[167/214] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v2.3.0/modules/hal/nordic/nrfx/drivers/src/nrfx_twi.c.obj
[168/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/main_weak.c.obj
[169/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/banner.c.obj
[170/214] Linking C static library modules\segger\libmodules__segger.a
[171/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/device.c.obj
[172/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/init.c.obj
[173/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/idle.c.obj
[174/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/errno.c.obj
[175/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/kheap.c.obj
[176/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/fatal.c.obj
[177/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/version.c.obj
[178/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/thread.c.obj
[179/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mailbox.c.obj
[180/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mem_slab.c.obj
[181/214] Linking C static library modules\hal_nordic\nrfx\libmodules__hal_nordic__nrfx.a
[182/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/msg_q.c.obj
[183/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/condvar.c.obj
[184/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/queue.c.obj
[185/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/stack.c.obj
[186/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/sem.c.obj
[187/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/xip.c.obj
[188/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/system_work_q.c.obj
[189/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mutex.c.obj
[190/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/poll.c.obj
[191/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/work.c.obj
[192/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/timer.c.obj
[193/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mempool.c.obj
[194/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/sched.c.obj
[195/214] Building C object prstlib/CMakeFiles/prstlib.dir/src/shtc3.c.obj
[196/214] Building C object zephyr/kernel/CMakeFiles/kernel.dir/timeout.c.obj
[197/214] Building C object prstlib/CMakeFiles/prstlib.dir/src/button.c.obj
[198/214] Building C object prstlib/CMakeFiles/prstlib.dir/src/sensors.c.obj
[199/214] Building C object prstlib/CMakeFiles/prstlib.dir/src/led.c.obj
[200/214] Linking C static library zephyr\kernel\libkernel.a
[201/214] Building C object prstlib/CMakeFiles/prstlib.dir/src/adc.c.obj
FAILED: prstlib/CMakeFiles/prstlib.dir/src/adc.c.obj 
C:\ncs\toolchains\v2.3.0\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe -DKERNEL -DNRF52840_XXAA -DUSE_PARTITION_MANAGER=0 -D_ANSI_SOURCE -D_FORTIFY_SOURCE=1 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -ID:/b-parasite-main/code/nrf-connect/samples/ble/src -ID:/b-parasite-main/code/nrf-connect/prstlib/include -IC:/ncs/v2.3.0/nrf/drivers/mpsl/clock_control -IC:/ncs/v2.3.0/zephyr/include -Izephyr/include/generated -IC:/ncs/v2.3.0/zephyr/soc/arm/nordic_nrf/nrf52 -IC:/ncs/v2.3.0/zephyr/lib/libc/newlib/include -IC:/ncs/v2.3.0/zephyr/soc/arm/nordic_nrf/common/. -IC:/ncs/v2.3.0/zephyr/subsys/bluetooth -IC:/ncs/v2.3.0/nrf/include -IC:/ncs/v2.3.0/nrf/lib/multithreading_lock/. -IC:/ncs/v2.3.0/nrf/subsys/bluetooth/controller/. -IC:/ncs/v2.3.0/nrf/tests/include -IC:/ncs/v2.3.0/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v2.3.0/modules/hal/nordic/nrfx -IC:/ncs/v2.3.0/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v2.3.0/modules/hal/nordic/nrfx/mdk -IC:/ncs/v2.3.0/zephyr/modules/hal_nordic/nrfx/. -IC:/ncs/v2.3.0/modules/debug/segger/SEGGER -IC:/ncs/v2.3.0/modules/debug/segger/Config -IC:/ncs/v2.3.0/zephyr/modules/segger/. -IC:/ncs/v2.3.0/modules/crypto/tinycrypt/lib/include -IC:/ncs/v2.3.0/nrfxlib/mpsl/include -IC:/ncs/v2.3.0/nrfxlib/mpsl/include/protocol -IC:/ncs/v2.3.0/nrfxlib/softdevice_controller/include -isystem C:/ncs/v2.3.0/nrfxlib/crypto/nrf_cc310_platform/include -fno-strict-aliasing -Os -imacros D:/b-parasite-main/code/nrf-connect/samples/ble/build/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfp16-format=ieee --sysroot=C:/ncs/toolchains/v2.3.0/opt/zephyr-sdk/arm-zephyr-eabi/arm-zephyr-eabi -imacros C:/ncs/v2.3.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=D:/b-parasite-main/code/nrf-connect/samples/ble=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v2.3.0/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v2.3.0=WEST_TOPDIR -ffunction-sections -fdata-sections -specs=nano.specs -std=c99 -MD -MT prstlib/CMakeFiles/prstlib.dir/src/adc.c.obj -MF prstlib\CMakeFiles\prstlib.dir\src\adc.c.obj.d -o prstlib/CMakeFiles/prstlib.dir/src/adc.c.obj -c D:/b-parasite-main/code/nrf-connect/prstlib/src/adc.c
In file included from D:\b-parasite-main\code\nrf-connect\prstlib\src\adc.c:4:
C:\ncs\v2.3.0\zephyr\include\zephyr\devicetree.h:190:36: error: 'DT_N_NODELABEL_soil_calibration_coeffs_P_dry' undeclared here (not in a function)
  190 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
      |                                    ^~~~~~~~~~~~~~~
C:\ncs\v2.3.0\zephyr\include\zephyr\devicetree.h:3903:29: note: in definition of macro 'DT_CAT3'
 3903 | #define DT_CAT3(a1, a2, a3) a1 ## a2 ## a3
      |                             ^~
D:\b-parasite-main\code\nrf-connect\prstlib\src\adc.c:21:34: note: in expansion of macro 'DT_PROP'
   21 | static const int dry_coeffs[3] = DT_PROP(DT_NODELABEL(soil_calibration_coeffs), dry);
      |                                  ^~~~~~~
C:\ncs\v2.3.0\zephyr\include\zephyr\devicetree.h:190:29: note: in expansion of macro 'DT_CAT'
  190 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
      |                             ^~~~~~
D:\b-parasite-main\code\nrf-connect\prstlib\src\adc.c:21:42: note: in expansion of macro 'DT_NODELABEL'
   21 | static const int dry_coeffs[3] = DT_PROP(DT_NODELABEL(soil_calibration_coeffs), dry);
      |                                          ^~~~~~~~~~~~
C:\ncs\v2.3.0\zephyr\include\zephyr\devicetree.h:190:36: error: 'DT_N_NODELABEL_soil_calibration_coeffs_P_wet' undeclared here (not in a function)
  190 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
      |                                    ^~~~~~~~~~~~~~~
C:\ncs\v2.3.0\zephyr\include\zephyr\devicetree.h:3903:29: note: in definition of macro 'DT_CAT3'
 3903 | #define DT_CAT3(a1, a2, a3) a1 ## a2 ## a3
      |                             ^~
D:\b-parasite-main\code\nrf-connect\prstlib\src\adc.c:22:34: note: in expansion of macro 'DT_PROP'
   22 | static const int wet_coeffs[3] = DT_PROP(DT_NODELABEL(soil_calibration_coeffs), wet);
      |                                  ^~~~~~~
C:\ncs\v2.3.0\zephyr\include\zephyr\devicetree.h:190:29: note: in expansion of macro 'DT_CAT'
  190 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
      |                             ^~~~~~
D:\b-parasite-main\code\nrf-connect\prstlib\src\adc.c:22:42: note: in expansion of macro 'DT_NODELABEL'
   22 | static const int wet_coeffs[3] = DT_PROP(DT_NODELABEL(soil_calibration_coeffs), wet);
      |                                          ^~~~~~~~~~~~
In file included from C:\ncs\v2.3.0\zephyr\include\zephyr\toolchain\gcc.h:89,
                 from C:\ncs\v2.3.0\zephyr\include\zephyr\toolchain.h:50,
                 from C:\ncs\v2.3.0\zephyr\include\zephyr\init.h:13,
                 from C:\ncs\v2.3.0\zephyr\include\zephyr\device.h:13,
                 from C:\ncs\v2.3.0\zephyr\include\zephyr\drivers\adc.h:16,
                 from D:\b-parasite-main\code\nrf-connect\prstlib\src\adc.c:5:
C:\ncs\v2.3.0\zephyr\include\zephyr\device.h:83:41: error: '__device_dts_ord_DT_N_NODELABEL_fast_disch_P_gpios_IDX_0_PH_ORD' undeclared here (not in a function)
   83 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
      |                                         ^~~~~~~~~
C:\ncs\v2.3.0\zephyr\include\zephyr\toolchain\common.h:132:26: note: in definition of macro '_DO_CONCAT'
  132 | #define _DO_CONCAT(x, y) x ## y
      |                          ^
C:\ncs\v2.3.0\zephyr\include\zephyr\device.h:83:33: note: in expansion of macro '_CONCAT'
   83 | #define DEVICE_NAME_GET(dev_id) _CONCAT(__device_, dev_id)
      |                                 ^~~~~~~
C:\ncs\v2.3.0\zephyr\include\zephyr\device.h:209:37: note: in expansion of macro 'DEVICE_NAME_GET'
  209 | #define DEVICE_DT_NAME_GET(node_id) DEVICE_NAME_GET(Z_DEVICE_DT_DEV_ID(node_id))
      |                                     ^~~~~~~~~~~~~~~
C:\ncs\v2.3.0\zephyr\include\zephyr\device.h:226:34: note: in expansion of macro 'DEVICE_DT_NAME_GET'
  226 | #define DEVICE_DT_GET(node_id) (&DEVICE_DT_NAME_GET(node_id))
      |                                  ^~~~~~~~~~~~~~~~~~
C:\ncs\v2.3.0\zephyr\include\zephyr\drivers\gpio.h:316:25: note: in expansion of macro 'DEVICE_DT_GET'
  316 |                 .port = DEVICE_DT_GET(DT_GPIO_CTLR_BY_IDX(node_id, prop, idx)),\
      |                         ^~~~~~~~~~~~~
C:\ncs\v2.3.0\zephyr\include\zephyr\drivers\gpio.h:352:9: note: in expansion of macro 'GPIO_DT_SPEC_GET_BY_IDX'
  352 |         GPIO_DT_SPEC_GET_BY_IDX(node_id, prop, 0)
      |         ^~~~~~~~~~~~~~~~~~~~~~~
D:\b-parasite-main\code\nrf-connect\prstlib\src\adc.c:25:5: note: in expansion of macro 'GPIO_DT_SPEC_GET'
   25 |     GPIO_DT_SPEC_GET(DT_NODELABEL(fast_disch), gpios);
      |     ^~~~~~~~~~~~~~~~
C:\ncs\v2.3.0\zephyr\include\zephyr\devicetree.h:190:36: error: 'DT_N_NODELABEL_fast_disch_P_gpios_IDX_0_VAL_pin' undeclared here (not in a function)
  190 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
      |                                    ^~~~~~~~~~~~~~~
C:\ncs\v2.3.0\zephyr\include\zephyr\devicetree.h:3912:9: note: in definition of macro 'DT_CAT7'
 3912 |         a1 ## a2 ## a3 ## a4 ## a5 ## a6 ## a7
      |         ^~
C:\ncs\v2.3.0\zephyr\include\zephyr\devicetree\gpio.h:164:9: note: in expansion of macro 'DT_PHA_BY_IDX'
  164 |         DT_PHA_BY_IDX(node_id, gpio_pha, idx, pin)
      |         ^~~~~~~~~~~~~
C:\ncs\v2.3.0\zephyr\include\zephyr\drivers\gpio.h:317:24: note: in expansion of macro 'DT_GPIO_PIN_BY_IDX'
  317 |                 .pin = DT_GPIO_PIN_BY_IDX(node_id, prop, idx),                 \
      |                        ^~~~~~~~~~~~~~~~~~
C:\ncs\v2.3.0\zephyr\include\zephyr\drivers\gpio.h:352:9: note: in expansion of macro 'GPIO_DT_SPEC_GET_BY_IDX'
  352 |         GPIO_DT_SPEC_GET_BY_IDX(node_id, prop, 0)
      |         ^~~~~~~~~~~~~~~~~~~~~~~
D:\b-parasite-main\code\nrf-connect\prstlib\src\adc.c:25:5: note: in expansion of macro 'GPIO_DT_SPEC_GET'
   25 |     GPIO_DT_SPEC_GET(DT_NODELABEL(fast_disch), gpios);
      |     ^~~~~~~~~~~~~~~~
C:\ncs\v2.3.0\zephyr\include\zephyr\devicetree.h:190:29: note: in expansion of macro 'DT_CAT'
  190 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
      |                             ^~~~~~
D:\b-parasite-main\code\nrf-connect\prstlib\src\adc.c:25:22: note: in expansion of macro 'DT_NODELABEL'
   25 |     GPIO_DT_SPEC_GET(DT_NODELABEL(fast_disch), gpios);
      |                      ^~~~~~~~~~~~
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: 'c:\ncs\toolchains\v2.3.0\opt\bin\cmake.EXE' --build 'd:\b-parasite-main\code\nrf-connect\samples\ble\build'

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

Thanks a lot.

from b-parasite.

rbaron avatar rbaron commented on June 12, 2024

@schejbity please take a look at the docs I linked before. You're probably not selecting a b-parasite board in your build configuration, as you can see on the first line on your output: --board nrf52840dk_nrf52840. The b-parasite boards should be available now that you included the prstlib to your VSCode workspace.

Make sure you select the correct version for the nRF52 module you're using - example:

206266899-b39159a9-d21e-42a7-aa75-d42995cd3c8a

from b-parasite.

schejbity avatar schejbity commented on June 12, 2024

Oh, that's it.

Thanks a lot.

from b-parasite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.