Hello,
I’'m running into a problem with compiling my Edge Impulse model for the Teensy 4.1. It is running file on the Arduino Nano 33 BLE Sense.
This is the error I get:
In file included from src/edge-impulse-sdk/CMSIS/Core/Include/cmsis_compiler.h:54:0,
from src/edge-impulse-sdk/CMSIS/DSP/Include/arm_math.h:382,
from src/edge-impulse-sdk/dsp/spectral/../numpy.hpp:37,
from src/edge-impulse-sdk/dsp/spectral/processing.hpp:28,
from src/edge-impulse-sdk/dsp/spectral/spectral.hpp:27,
from src\edge-impulse-sdk/classifier/ei_run_dsp.h:27,
from src\edge-impulse-sdk/classifier/ei_run_classifier.h:30,
from src\main.cpp:6:
src/edge-impulse-sdk/CMSIS/Core/Include/cmsis_gcc.h:196:44: error: macro "__enable_irq" passed 1 arguments, but takes just 0
__STATIC_FORCEINLINE void __enable_irq(void)
^
src/edge-impulse-sdk/CMSIS/Core/Include/cmsis_gcc.h:207:45: error: macro "__disable_irq" passed 1 arguments, but takes just 0
__STATIC_FORCEINLINE void __disable_irq(void)
^
Compiling .pio\build\teensy41\FrameworkArduino\usb_serial3.c.o
Compiling .pio\build\teensy41\FrameworkArduino\usb_touch.c.o
Compiling .pio\build\teensy41\FrameworkArduino\yield.cpp.o
src/edge-impulse-sdk/CMSIS/Core/Include/cmsis_gcc.h:196:27: error: variable or field '__enable_irq' declared void
__STATIC_FORCEINLINE void __enable_irq(void)
^
src/edge-impulse-sdk/CMSIS/Core/Include/cmsis_gcc.h:41:50: error: expected primary-expression before '__asm'
#define __ASM __asm
^
src/edge-impulse-sdk/CMSIS/Core/Include/cmsis_gcc.h:198:3: note: in expansion of macro '__ASM'
__ASM volatile ("cpsie i" : : : "memory");
^
src/edge-impulse-sdk/CMSIS/Core/Include/cmsis_gcc.h:41:50: error: expected '}' before '__asm'
#define __ASM __asm
^
src/edge-impulse-sdk/CMSIS/Core/Include/cmsis_gcc.h:198:3: note: in expansion of macro '__ASM'
__ASM volatile ("cpsie i" : : : "memory");
^
src/edge-impulse-sdk/CMSIS/Core/Include/cmsis_gcc.h:207:27: error: variable or field '__disable_irq' declared void
__STATIC_FORCEINLINE void __disable_irq(void)
^
src/edge-impulse-sdk/CMSIS/Core/Include/cmsis_gcc.h:41:50: error: expected primary-expression before '__asm'
#define __ASM __asm
^
src/edge-impulse-sdk/CMSIS/Core/Include/cmsis_gcc.h:209:3: note: in expansion of macro '__ASM'
__ASM volatile ("cpsid i" : : : "memory");
^
src/edge-impulse-sdk/CMSIS/Core/Include/cmsis_gcc.h:41:50: error: expected '}' before '__asm'
#define __ASM __asm
^
src/edge-impulse-sdk/CMSIS/Core/Include/cmsis_gcc.h:209:3: note: in expansion of macro '__ASM'
__ASM volatile ("cpsid i" : : : "memory");
^
src/edge-impulse-sdk/CMSIS/Core/Include/cmsis_gcc.h:210:1: error: expected declaration before '}' token
}
^
Can someone help me out with this?