Using Edge Impulse Wrapper

I've created an edge impulse model and downloaded it directly from edge impulse (as outlined in https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_edge_impulse.html#downloading-model-directly-from-edge-impulse-studio) and used edge_impulse_wrapper example to integrate it into my project When I build the project it repeats performing the configure step for 'edge_impulse_project' and does not stop unless manually canceled. 

[234/303] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/thread_abort.c.obj
[235/303] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/nmi_on_reset.S.obj
[236/303] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_core_mpu.c.obj
[237/303] Building C object zephyr/lib/libc/newlib/CMakeFiles/lib__libc__newlib.dir/libc-hooks.c.obj
[238/303] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/irq_manage.c.obj
[239/303] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/nmi.c.obj
[240/303] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap_helper.S.obj
[241/303] Linking C static library zephyr/lib/libc/newlib/liblib__libc__newlib.a
[242/303] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/__aeabi_atexit.c.obj
[243/303] Building ASM object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/isr_wrapper.S.obj
[244/303] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/swap.c.obj
[245/303] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/prep_c.c.obj
[246/303] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/thread.c.obj
[247/303] Building C object zephyr/arch/arch/arm/core/aarch32/mpu/CMakeFiles/arch__arm__core__aarch32__mpu.dir/arm_mpu.c.obj
[248/303] Building C object zephyr/kernel/CMakeFiles/kernel.dir/device.c.obj
[249/303] Building C object zephyr/arch/arch/arm/core/aarch32/CMakeFiles/arch__arm__core__aarch32.dir/fatal.c.obj
[250/303] Building C object zephyr/kernel/CMakeFiles/kernel.dir/main_weak.c.obj
[251/303] Building C object zephyr/kernel/CMakeFiles/kernel.dir/banner.c.obj
[252/303] Linking C static library zephyr/arch/arch/arm/core/aarch32/mpu/libarch__arm__core__aarch32__mpu.a
[253/303] Building C object zephyr/kernel/CMakeFiles/kernel.dir/errno.c.obj
[254/303] Linking C static library zephyr/arch/arch/arm/core/aarch32/libarch__arm__core__aarch32.a
[255/303] Building C object zephyr/kernel/CMakeFiles/kernel.dir/version.c.obj
[256/303] Building C object zephyr/kernel/CMakeFiles/kernel.dir/kheap.c.obj
[257/303] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mem_slab.c.obj
[258/303] Building C object zephyr/kernel/CMakeFiles/kernel.dir/fatal.c.obj
[259/303] Building C object zephyr/kernel/CMakeFiles/kernel.dir/idle.c.obj
[260/303] Building C object zephyr/kernel/CMakeFiles/kernel.dir/mailbox.c.obj
[261/303] Building C object zephyr/kernel/CMakeFiles/kernel.dir/msg_q.c.obj
[262/303] Building C object zephyr/arch/arch/arm/core/aarch32/cortex_m/CMakeFiles/arch__arm__core__aarch32__cortex_m.dir/fault.c.obj
[263/303] Building C object zephyr/kernel/CMakeFiles/kernel.dir/init.c.obj
[264/303] Building C object zephyr/kernel/CMakeFiles/kernel.dir/thread.c.obj
[265/303] Performing configure step for 'edge_impulse_project'
-- The C compiler identification is GNU 12.1.0
-- The CXX compiler identification is GNU 12.1.0
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - no
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - no
-- The ASM compiler identification is GNU
-- Found assembler: /opt/nordic/ncs/toolchains/v2.2.0/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/ian/projects/dsp_zephyr/build_debug/edge_impulse/src/edge_impulse_project-build
[265/303] Performing build step for 'edge_impulse_project'
[0/1] Re-running CMake...
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - no
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - no
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/ian/projects/dsp_zephyr/build_debug/edge_impulse/src/edge_impulse_project-build
[0/1] Re-running CMake...
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - no
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - no
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/ian/projects/dsp_zephyr/build_debug/edge_impulse/src/edge_impulse_project-build

I'm not sure how this happened since it was compiling normally with the first few version of the ml model.

The project uses nRF Connect SDK v2.2.0 and the included toolchain (/ncs/toolchains/v2.2.0) 

Here's the prj.conf i have for it currently, let me know if additional information is needed

# Enable Edge Impulse dependencies
CONFIG_CPLUSPLUS=y
CONFIG_STD_CPP11=y
CONFIG_LIB_CPLUSPLUS=y
CONFIG_NEWLIB_LIBC=y
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
CONFIG_FP16=n

# Enable Matrix operations
CONFIG_CMSIS_DSP=y
CONFIG_CMSIS_DSP_MATRIX=y

# Multithreading
CONFIG_MULTITHREADING=y

# Edge Impulse for ML
CONFIG_EDGE_IMPULSE=y
CONFIG_EDGE_IMPULSE_DOWNLOAD_ALWAYS=n
CONFIG_EDGE_IMPULSE_URI="ml_dispense_64-v27.zip"

CONFIG_EI_WRAPPER=y
CONFIG_EI_WRAPPER_DATA_BUF_SIZE=256
CONFIG_EI_WRAPPER_THREAD_STACK_SIZE=2048

Parents Reply Children
Related