lack of nrfx_flag32_allocator.c.obj.d and system_nrf5340_network.c.obj.d

Hi ,

IDE: SES

NCS version: 1.9.1

I install the development enviroment following this article. 开发你的第一个nRF Connect SDK(NCS)/Zephyr应用程序 - iini - 博客园 (cnblogs.com)

I use the baidunetdisk to download the NCS v1,9,1. I can compile and run the example except the direction_finding_peripheral. 

Here is the error.

What should I do to solve this error ?

Parents Reply Children
  • Hi Marte, 

    I am having the same error that Jackie describes. I have also tried building in VS Code with the same outcome. 

    Here is the terminal output from VS Code:

    Building threads
    west build --build-dir c:\StrAPs_fw\ecg-python-model-main-FW-ADC_uSD-StrAPs_prototype-threads\FW\ADC_uSD-StrAPs_prototype\threads\build_strapsprot c:\StrAPs_fw\ecg-python-model-main-FW-ADC_uSD-StrAPs_prototype-threads\FW\ADC_uSD-StrAPs_prototype\threads --pristine --board strapsprot -- -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=On -DNCS_TOOLCHAIN_VERSION:STRING="NONE" -DEXTRA_KCONFIG_TARGETS:STRING="menuconfig_ses" -DEXTRA_KCONFIG_TARGET_COMMAND_FOR_menuconfig_ses:STRING="C:/ncs/v1.9.1/toolchain/segger_embedded_studio/html/configure_nordic_project_menuconfig.py" -DCONF_FILE:STRING="c:/StrAPs_fw/ecg-python-model-main-FW-ADC_uSD-StrAPs_prototype-threads/FW/ADC_uSD-StrAPs_prototype/threads/prj.conf"

    -- west build: generating a build system
    Including boilerplate (Zephyr base): C:/ncs/v1.9.1/zephyr/cmake/app/boilerplate.cmake
    -- Application: C:/StrAPs_fw/ecg-python-model-main-FW-ADC_uSD-StrAPs_prototype-threads/FW/ADC_uSD-StrAPs_prototype/threads
    -- Zephyr version: 2.7.99 (C:/ncs/v1.9.1/zephyr), build: v2.7.99-ncs1-1
    -- Found Python3: C:/ncs/v1.9.1/toolchain/opt/bin/python.exe (found suitable exact version "3.8.2") found components: Interpreter
    -- Found west (found suitable version "0.12.0", minimum required is "0.7.1")
    -- Board: strapsprot
    -- Cache files will be written to: C:/ncs/v1.9.1/zephyr/.cache
    -- Found dtc: C:/ncs/v1.9.1/toolchain/opt/bin/dtc.exe (found suitable version "1.4.7", minimum required is "1.4.6")
    -- Found toolchain: gnuarmemb (c:/ncs/v1.9.1/toolchain/opt)
    -- Found BOARD.dts: C:/ncs/v1.9.1/zephyr/boards/arm/strapprot/strapsprot.dts
    -- Generated zephyr.dts: C:/StrAPs_fw/ecg-python-model-main-FW-ADC_uSD-StrAPs_prototype-threads/FW/ADC_uSD-StrAPs_prototype/threads/build_strapsprot/zephyr/zephyr.dts
    -- Generated devicetree_unfixed.h: C:/StrAPs_fw/ecg-python-model-main-FW-ADC_uSD-StrAPs_prototype-threads/FW/ADC_uSD-StrAPs_prototype/threads/build_strapsprot/zephyr/include/generated/devicetree_unfixed.h
    -- Generated device_extern.h: C:/StrAPs_fw/ecg-python-model-main-FW-ADC_uSD-StrAPs_prototype-threads/FW/ADC_uSD-StrAPs_prototype/threads/build_strapsprot/zephyr/include/generated/device_extern.h
    -- Including generated dts.cmake file: C:/StrAPs_fw/ecg-python-model-main-FW-ADC_uSD-StrAPs_prototype-threads/FW/ADC_uSD-StrAPs_prototype/threads/build_strapsprot/zephyr/dts.cmake

    warning: BOARD_ENABLE_DCDC (defined at C:\ncs\v1.9.1\zephyr\boards\arm\strapprot\Kconfig:6) was
    assigned the value 'y' but got the value 'n'. Check these unsatisfied dependencies:
    BOARD_NRF52DK_NRF52832 (=n). See
    docs.zephyrproject.org/.../CONFIG_BOARD_ENABLE_DCDC.html and/or look up
    BOARD_ENABLE_DCDC 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.

    Parsing C:/ncs/v1.9.1/zephyr/Kconfig
    Loaded configuration 'C:/ncs/v1.9.1/zephyr/boards/arm/strapprot/strapsprot_defconfig'
    Merged configuration 'c:/StrAPs_fw/ecg-python-model-main-FW-ADC_uSD-StrAPs_prototype-threads/FW/ADC_uSD-StrAPs_prototype/threads/prj.conf'
    Configuration saved to 'C:/StrAPs_fw/ecg-python-model-main-FW-ADC_uSD-StrAPs_prototype-threads/FW/ADC_uSD-StrAPs_prototype/threads/build_strapsprot/zephyr/.config'
    Kconfig header saved to 'C:/StrAPs_fw/ecg-python-model-main-FW-ADC_uSD-StrAPs_prototype-threads/FW/ADC_uSD-StrAPs_prototype/threads/build_strapsprot/zephyr/include/generated/autoconf.h'
    -- The C compiler identification is GNU 9.2.1
    -- The CXX compiler identification is GNU 9.2.1
    -- The ASM compiler identification is GNU
    -- Found assembler: C:/ncs/v1.9.1/toolchain/opt/bin/arm-none-eabi-gcc.exe
    CMake Warning at C:\ncs\v1.9.1\zephyr\CMakeLists.txt:764 (message):
    No SOURCES given to Zephyr library: drivers__serial

    Excluding target from build.


    CMake Warning at C:\ncs\v1.9.1\zephyr\CMakeLists.txt:1687 (message):
    __ASSERT() statements are globally ENABLED


    -- Configuring done
    CMake Warning in C:/ncs/v1.9.1/zephyr/modules/hal_nordic/nrfx/CMakeLists.txt:
    The object file directory

    C:/StrAPs_fw/ecg-python-model-main-FW-ADC_uSD-StrAPs_prototype-threads/FW/ADC_uSD-StrAPs_prototype/threads/build_strapsprot/modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/./

    has 191 characters. The maximum full path to an object file is 250
    characters (see CMAKE_OBJECT_PATH_MAX). Object file

    C_/ncs/v1.9.1/modules/hal/nordic/nrfx/helpers/nrfx_flag32_allocator.c.obj

    cannot be safely placed under this directory. The build may not work
    correctly.


    -- Generating done
    -- Build files have been written to: C:/StrAPs_fw/ecg-python-model-main-FW-ADC_uSD-StrAPs_prototype-threads/FW/ADC_uSD-StrAPs_prototype/threads/build_strapsprot
    -- west build: building application
    [1/167] Generating misc/generated/syscalls.json, misc/generated/struct_tags.json
    [2/167] Generating include/generated/driver-validation.h
    [3/167] Generating include/generated/kobj-types-enum.h, include/generated/otype-to-str.h, include/generated/otype-to-size.h
    [4/167] Generating include/generated/syscall_dispatch.c, include/generated/syscall_list.h
    [5/167] Building C object zephyr/CMakeFiles/offsets.dir/arch/arm/core/offsets/offsets.c.obj
    [6/167] Generating include/generated/offsets.h
    [7/167] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/cpu_idle.S.obj
    [8/167] Building C object zephyr/arch/common/CMakeFiles/arch__common.dir/sw_isr_common.c.obj
    [9/167] Building C object zephyr/arch/common/CMakeFiles/isr_tables.dir/isr_tables.c.obj
    [10/167] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/nmi_on_reset.S.obj
    [11/167] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/nmi.c.obj
    [12/167] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/irq_manage.c.obj
    [13/167] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/fatal.c.obj
    [14/167] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_core_mpu.c.obj
    [15/167] Generating linker_zephyr_pre0.cmd
    [16/167] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap_helper.S.obj
    [17/167] Generating linker_zephyr_pre1.cmd
    [18/167] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/isr_wrapper.S.obj
    [19/167] Linking C static library zephyr\arch\common\libisr_tables.a
    [20/167] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap.c.obj
    [21/167] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fault_s.S.obj
    [22/167] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/exc_exit.S.obj
    [23/167] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/prep_c.c.obj
    [24/167] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/thread.c.obj
    [25/167] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_mpu.c.obj
    [26/167] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/scb.c.obj
    [27/167] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/vector_table.S.obj
    [28/167] Building ASM object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/reset.S.obj
    [29/167] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fpu.c.obj
    [30/167] Linking C static library zephyr\arch\common\libarch__common.a
    [31/167] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/irq_init.c.obj
    [32/167] Linking C static library zephyr\arch\arch\arm\core\aarch32\libarch__arm__core__aarch32.a
    [33/167] Linking C static library zephyr\arch\arch\arm\core\aarch32\mpu\libarch__arm__core__aarch32__mpu.a
    [34/167] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/thread_abort.c.obj
    [35/167] Building C object zephyr/soc/arm/common/cortex_m/CMakeFiles/soc__arm__common__cortex_m.dir/arm_mpu_regions.c.obj
    [36/167] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fault.c.obj
    [37/167] Building C object zephyr/soc/arm/nordic_nrf/nrf52/CMakeFiles/soc__arm__nordic_nrf__nrf52.dir/soc.c.obj
    [38/167] Building C object zephyr/lib/posix/CMakeFiles/lib__posix.dir/nanosleep.c.obj
    [39/167] Building C object zephyr/lib/posix/CMakeFiles/lib__posix.dir/pthread_common.c.obj
    [40/167] Building C object zephyr/drivers/disk/CMakeFiles/drivers__disk.dir/sdmmc_spi.c.obj
    C:\ncs\v1.9.1\zephyr\drivers\disk\sdmmc_spi.c:30:2: warning: #warning NO SDHC slot specified on board [-Wcpp]
    30 | #warning NO SDHC slot specified on board
    | ^~~~~~~
    [41/167] Building C object zephyr/lib/libc/newlib/CMakeFiles/lib__libc__newlib.dir/libc-hooks.c.obj
    [42/167] Building C object zephyr/subsys/fs/CMakeFiles/subsys__fs.dir/fs_impl.c.obj
    [43/167] Building C object zephyr/soc/arm/nordic_nrf/nrf52/CMakeFiles/soc__arm__nordic_nrf__nrf52.dir/power.c.obj
    [44/167] Linking C static library zephyr\soc\arm\common\cortex_m\libsoc__arm__common__cortex_m.a
    [45/167] Linking C static library zephyr\arch\arch\arm\core\aarch32\cortex_m\libarch__arm__core__aarch32__cortex_m.a
    [46/167] Linking C static library zephyr\lib\posix\liblib__posix.a
    [47/167] Linking C static library zephyr\drivers\disk\libdrivers__disk.a
    [48/167] Linking C static library zephyr\lib\libc\newlib\liblib__libc__newlib.a
    [49/167] Building C object zephyr/subsys/fs/CMakeFiles/subsys__fs.dir/fat_fs.c.obj
    [50/167] Building C object zephyr/drivers/clock_control/CMakeFiles/drivers__clock_control.dir/nrf_clock_calibration.c.obj
    [51/167] Linking C static library zephyr\soc\arm\nordic_nrf\nrf52\libsoc__arm__nordic_nrf__nrf52.a
    [52/167] Building C object zephyr/drivers/console/CMakeFiles/drivers__console.dir/rtt_console.c.obj
    [53/167] Building C object zephyr/drivers/console/CMakeFiles/drivers__console.dir/uart_console.c.obj
    [54/167] Building C object zephyr/subsys/fs/CMakeFiles/subsys__fs.dir/fs.c.obj
    [55/167] Building C object zephyr/drivers/clock_control/CMakeFiles/drivers__clock_control.dir/clock_control_nrf.c.obj
    [56/167] Building C object zephyr/drivers/gpio/CMakeFiles/drivers__gpio.dir/gpio_nrfx.c.obj
    [57/167] Building C object zephyr/drivers/sensor/nrf5/CMakeFiles/drivers__sensor__nrf5.dir/temp_nrf5.c.obj
    [58/167] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/sys_clock_init.c.obj
    [59/167] Building C object zephyr/drivers/spi/CMakeFiles/drivers__spi.dir/spi_nrfx_spim.c.obj
    C:\ncs\v1.9.1\zephyr\drivers\spi\spi_nrfx_spim.c:432:36: warning: 'spi_nrfx_driver_api' defined but not used [-Wunused-const-variable=]
    432 | static const struct spi_driver_api spi_nrfx_driver_api = {
    | ^~~~~~~~~~~~~~~~~~~
    [60/167] Building C object zephyr/drivers/spi/CMakeFiles/drivers__spi.dir/spi_nrfx_spi.c.obj
    C:\ncs\v1.9.1\zephyr\drivers\spi\spi_nrfx_spi.c:272:36: warning: 'spi_nrfx_driver_api' defined but not used [-Wunused-const-variable=]
    272 | static const struct spi_driver_api spi_nrfx_driver_api = {
    | ^~~~~~~~~~~~~~~~~~~
    [61/167] Linking C static library zephyr\drivers\clock_control\libdrivers__clock_control.a
    [62/167] Linking C static library zephyr\drivers\console\libdrivers__console.a
    [63/167] Building C object zephyr/drivers/timer/CMakeFiles/drivers__timer.dir/nrf_rtc_timer.c.obj
    [64/167] Linking C static library zephyr\subsys\fs\libsubsys__fs.a
    [65/167] Linking C static library zephyr\drivers\gpio\libdrivers__gpio.a
    [66/167] Linking C static library zephyr\drivers\sensor\nrf5\libdrivers__sensor__nrf5.a
    [67/167] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/nrfx_glue.c.obj
    [68/167] Linking C static library zephyr\drivers\spi\libdrivers__spi.a
    [69/167] Building C object modules/fatfs/CMakeFiles/..__modules__fs__fatfs.dir/zfs_diskio.c.obj
    [70/167] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v1.9.1/modules/hal/nordic/nrfx/helpers/nrfx_flag32_allocator.c.obj
    FAILED: modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v1.9.1/modules/hal/nordic/nrfx/helpers/nrfx_flag32_allocator.c.obj
    C:\ncs\v1.9.1\toolchain\opt\bin\arm-none-eabi-gcc.exe -DBUILD_VERSION=v2.7.99-ncs1-1 -DKERNEL -DNRF52832_XXAA -DUSE_PARTITION_MANAGER=0 -D_FORTIFY_SOURCE=2 -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR__=1 -IC:/ncs/v1.9.1/zephyr/include -Izephyr/include/generated -IC:/ncs/v1.9.1/zephyr/soc/arm/nordic_nrf/nrf52 -IC:/ncs/v1.9.1/zephyr/lib/libc/newlib/include -IC:/ncs/v1.9.1/zephyr/soc/arm/nordic_nrf/common/. -IC:/ncs/v1.9.1/nrf/include -IC:/ncs/v1.9.1/modules/hal/cmsis/CMSIS/Core/Include -IC:/ncs/v1.9.1/modules/hal/nordic/nrfx -IC:/ncs/v1.9.1/modules/hal/nordic/nrfx/drivers/include -IC:/ncs/v1.9.1/modules/hal/nordic/nrfx/mdk -IC:/ncs/v1.9.1/zephyr/modules/hal_nordic/nrfx/. -IC:/ncs/v1.9.1/modules/debug/segger/SEGGER -IC:/ncs/v1.9.1/modules/debug/segger/Config -IC:/ncs/v1.9.1/zephyr/modules/segger/. -Os -imacros C:/StrAPs_fw/ecg-python-model-main-FW-ADC_uSD-StrAPs_prototype-threads/FW/ADC_uSD-StrAPs_prototype/threads/build_strapsprot/zephyr/include/generated/autoconf.h -ffreestanding -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfp16-format=ieee -imacros C:/ncs/v1.9.1/zephyr/include/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-asynchronous-unwind-tables -fno-pie -fno-pic -fno-strict-overflow -DNRFX_RTC_ENABLED=1 -DNRFX_RTC0_ENABLED=1 -fno-reorder-functions -fno-defer-pop -fmacro-prefix-map=C:/StrAPs_fw/ecg-python-model-main-FW-ADC_uSD-StrAPs_prototype-threads/FW/ADC_uSD-StrAPs_prototype/threads=CMAKE_SOURCE_DIR -fmacro-prefix-map=C:/ncs/v1.9.1/zephyr=ZEPHYR_BASE -fmacro-prefix-map=C:/ncs/v1.9.1=WEST_TOPDIR -ffunction-sections -fdata-sections -specs=nano.specs -std=c99 -MD -MT modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v1.9.1/modules/hal/nordic/nrfx/helpers/nrfx_flag32_allocator.c.obj -MF modules\hal_nordic\nrfx\CMakeFiles\modules__hal_nordic__nrfx.dir\C_\ncs\v1.9.1\modules\hal\nordic\nrfx\helpers\nrfx_flag32_allocator.c.obj.d -o modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/C_/ncs/v1.9.1/modules/hal/nordic/nrfx/helpers/nrfx_flag32_allocator.c.obj -c C:/ncs/v1.9.1/modules/hal/nordic/nrfx/helpers/nrfx_flag32_allocator.c
    C:\ncs\v1.9.1\modules\hal\nordic\nrfx\helpers\nrfx_flag32_allocator.c:93:1: fatal error: opening dependency file modules\hal_nordic\nrfx\CMakeFiles\modules__hal_nordic__nrfx.dir\C_\ncs\v1.9.1\modules\hal\nordic\nrfx\helpers\nrfx_flag32_allocator.c.obj.d: No such file or directory
    93 | }
    | ^
    compilation terminated.
    [71/167] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/54a3eef58d1853d491bb7cfc08b1508d/mdk/system_nrf52.c.obj
    [72/167] Linking C static library zephyr\drivers\timer\libdrivers__timer.a
    [73/167] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/54a3eef58d1853d491bb7cfc08b1508d/drivers/src/nrfx_ppi.c.obj
    [74/167] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/7d812785dd9e501790071f3b45074c43/src/nrfx_clock.c.obj
    [75/167] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf.c.obj
    [76/167] Building C object zephyr/CMakeFiles/zephyr.dir/lib/os/cbprintf_packaged.c.obj
    [77/167] Building C object modules/fatfs/CMakeFiles/..__modules__fs__fatfs.dir/ff.c.obj
    [78/167] Building C object CMakeFiles/app.dir/src/main.c.obj
    ../src/main.c: In function 'timer0_init':
    c:\StrAPs_fw\ecg-python-model-main-FW-ADC_uSD-StrAPs_prototype-threads\FW\ADC_uSD-StrAPs_prototype\threads\src\main.c:389:60: warning: passing argument 3 of 'nrfx_timer_init' from incompatible pointer type [-Wincompatible-pointer-types]
    389 | err_code = nrfx_timer_init(&m_timer0, &tmr_config, Timer_0_Interrupt_Handler);
    | ^~~~~~~~~~~~~~~~~~~~~~~~~
    | |
    | void (* (*)(void))(nrf_timer_event_t, void *) {aka void (* (*)(void))(enum <anonymous>, void *)}
    In file included from c:\StrAPs_fw\ecg-python-model-main-FW-ADC_uSD-StrAPs_prototype-threads\FW\ADC_uSD-StrAPs_prototype\threads\src\main.c:12:
    C:\ncs\v1.9.1\modules\hal\nordic\nrfx\drivers\include\nrfx_timer.h:142:56: note: expected 'nrfx_timer_event_handler_t' {aka 'void (*)(enum <anonymous>, void *)'} but argument is of type 'void (* (*)(void))(nrf_timer_event_t, void *)' {aka 'void (* (*)(void))(enum <anonymous>, void *)'}
    142 | nrfx_timer_event_handler_t timer_event_handler);
    | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
    ../src/main.c: In function 'init':
    c:\StrAPs_fw\ecg-python-model-main-FW-ADC_uSD-StrAPs_prototype-threads\FW\ADC_uSD-StrAPs_prototype\threads\src\main.c:615:63: warning: passing argument 4 of 'k_thread_create' from incompatible pointer type [-Wincompatible-pointer-types]
    615 | k_thread_create(&th_ledg_blink_id, stack_area, STACKSIZE, ledg_blink, NULL, NULL, NULL, TH_PRIORITY_7, 0, K_NO_WAIT);
    | ^~~~~~~~~~
    | |
    | void (*)(void)
    In file included from C:\ncs\v1.9.1\zephyr\include\kernel.h:5911,
    from C:\ncs\v1.9.1\zephyr\include\zephyr.h:18,
    from c:\StrAPs_fw\ecg-python-model-main-FW-ADC_uSD-StrAPs_prototype-threads\FW\ADC_uSD-StrAPs_prototype\threads\src\main.c:7:
    c:\StrAPs_fw\ecg-python-model-main-FW-ADC_uSD-StrAPs_prototype-threads\FW\ADC_uSD-StrAPs_prototype\threads\build_strapsprot\zephyr\include\generated\syscalls\kernel.h:35:131: note: expected 'k_thread_entry_t' {aka 'void (*)(void *, void *, void *)'} but argument is of type 'void (*)(void)'
    35 | static inline k_tid_t k_thread_create(struct k_thread * new_thread, k_thread_stack_t * stack, size_t stack_size, k_thread_entry_t entry, void * p1, void * p2, void * p3, int prio, uint32_t options, k_timeout_t delay)
    | ~~~~~~~~~~~~~~~~~^~~~~
    ../src/main.c: In function 'Timer_0_Interrupt_Handler':
    c:\StrAPs_fw\ecg-python-model-main-FW-ADC_uSD-StrAPs_prototype-threads\FW\ADC_uSD-StrAPs_prototype\threads\src\main.c:377:1: warning: control reaches end of non-void function [-Wreturn-type]
    377 | }
    | ^
    [79/167] Building C object modules/hal_nordic/nrfx/CMakeFiles/modules__hal_nordic__nrfx.dir/7d812785dd9e501790071f3b45074c43/src/nrfx_gpiote.c.obj
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: 'c:\ncs\v1.9.1\toolchain\opt\bin\cmake.EXE' --build 'c:\StrAPs_fw\ecg-python-model-main-FW-ADC_uSD-StrAPs_prototype-threads\FW\ADC_uSD-StrAPs_prototype\threads\build_strapsprot'
    The terminal process terminated with exit code: 1.

    Terminal will be reused by tasks, press any key to close it.

  • Hi Marte,

    I am having the same error as Jackie reports, I have also tried building in VS Code with the same outcome. 

    The error I have is: opening dependency file modules\hal_nordic\nrfx\CMakeFiles\modules__hal_nordic__nrfx.dir\C_\ncs\v1.9.1\modules\hal\nordic\nrfx\helpers\nrfx_flag32_allocator.c.obj.d: No such file or directory

  • Additionally, the nrfx\helpers directory only contains the c and header files for the helpers, there are no built obj.d files.

      

Related