Issue compiling deployment in Platformio project

Question/Issue:
Hello all,
While compiling the deployment zip folder I get this error:

.pio/libdeps/dev/sound_detector_inferencing/src/edge-impulse-sdk/CMSIS/DSP/Source/FilteringFunctions/arm_biquad_cascade_df1_fast_q15.c: In function 'arm_biquad_cascade_df1_fast_q15': .pio/libdeps/dev/sound_detector_inferencing/src/edge-impulse-sdk/CMSIS/DSP/Source/FilteringFunctions/arm_biquad_cascade_df1_fast_q15.c:222:18: error: implicit declaration of function '__PKHBT' [-Wimplicit-function-declaration] 222 | state_in = __PKHBT(in, state_in, 16); | ^~~~~~~ Compiling .pio/build/dev/lib1a3/sound_detector_inferencing/edge-impulse-sdk/CMSIS/DSP/Source/FilteringFunctions/arm_biquad_cascade_df1_init_f16.c.o *** [.pio/build/dev/lib1a3/sound_detector_inferencing/edge-impulse-sdk/CMSIS/DSP/Source/FilteringFunctions/arm_biquad_cascade_df1_fast_q15.c.o] Error 1 Compiling .pio/build/dev/lib1a3/sound_detector_inferencing/edge-impulse-sdk/CMSIS/DSP/Source/FilteringFunctions/arm_biquad_cascade_df1_init_f32.c.o

Project ID:
548289

Context/Use case:
Using deployment in my Platformio project, where I’m using the Arduino framework for a Raspberry Pi Pico W.

Steps Taken:

  1. I have put the zip folder inside my /lib directory
  2. The platformio.ini
  3. [Step 3]

Expected Outcome:
It compiles

Actual Outcome:
It doesn’t compile

Reproducibility:

  • [x] Always
  • [ ] Sometimes
  • [ ] Rarely

Environment:

  • Platform: Raspberry Pi Pico
  • Build Environment Details: [e.g., Arduino IDE 1.8.19 ESP32 Core for Arduino 2.0.4]
  • OS Version: Ubuntu 24.04.1 LTS

Thank you for any suggestions!

Found the solution:

I had to manually paste this into src/edge-impulse-sdk/dsp/config.hpp:

#define __PKHBT(ARG1, ARG2, ARG3) ( (((int32_t)(ARG1) << 0) & (int32_t)0x0000FFFF) |
(((int32_t)(ARG2) << ARG3) & (int32_t)0xFFFF0000) )
#define __PKHTB(ARG1, ARG2, ARG3) ( (((int32_t)(ARG1) << 0) & (int32_t)0xFFFF0000) |
(((int32_t)(ARG2) >> ARG3) & (int32_t)0x0000FFFF) )

and then ran pio pkg install -l [PATH TO LIBRARY] -e [MY ENVIRONMENT]