So! I'm porting codec2 over to work on the teensy, and it's moving along, but I have finally encountered an error that no amount of googling can solve.
Here is where I am right now. Codec2 uses FFTs to compress audio, so it uses core_cm4.h. For some reason, core_cm4.h tries to include core_cmFunc.h, but it doesn't exist. No worries, downloaded it, put it in the teensy3 folder, and hit compile. But, it's giving me another error.
I've tried commenting it out, but it gives me another mish mosh of errors, I don't know if they're related or not.
And many more errors after that, all very similar to what I show here.
Here is where I am right now. Codec2 uses FFTs to compress audio, so it uses core_cm4.h. For some reason, core_cm4.h tries to include core_cmFunc.h, but it doesn't exist. No worries, downloaded it, put it in the teensy3 folder, and hit compile. But, it's giving me another error.
Code:
In file included from /home/velo/arduino-1.8.5/hardware/teensy/avr/cores/teensy3/core_cm4.h:155:0,
from /tmp/arduino_build_452940/sketch/codec2_fft.h:19,
from /tmp/arduino_build_452940/sketch/quantise.h:29,
from /tmp/arduino_build_452940/sketch/pack.c:19,
from /root/Arduino/SerialAudio/SerialAudio.ino:4:
/home/velo/arduino-1.8.5/hardware/teensy/avr/cores/teensy3/core_cmFunc.h:278:74: error: macro "__enable_irq" passed 1 arguments, but takes just 0
__attribute__( ( always_inline ) ) __STATIC_INLINE void __enable_irq(void)
^
/home/velo/arduino-1.8.5/hardware/teensy/avr/cores/teensy3/core_cmFunc.h:288:75: error: macro "__disable_irq" passed 1 arguments, but takes just 0
__attribute__( ( always_inline ) ) __STATIC_INLINE void __disable_irq(void)
I've tried commenting it out, but it gives me another mish mosh of errors, I don't know if they're related or not.
Code:
In file included from /tmp/arduino_build_452940/sketch/codec2_fft.h:19:0,
from /tmp/arduino_build_452940/sketch/quantise.h:29,
from /tmp/arduino_build_452940/sketch/pack.c:19,
from /root/Arduino/SerialAudio/SerialAudio.ino:4:
/home/velo/arduino-1.8.5/hardware/teensy/avr/cores/teensy3/core_cm4.h:1452:37: error: variable or field 'NVIC_EnableIRQ' declared void
__STATIC_INLINE void NVIC_EnableIRQ(IRQn_Type IRQn)
^
/home/velo/arduino-1.8.5/hardware/teensy/avr/cores/teensy3/core_cm4.h:1452:37: error: 'IRQn_Type' was not declared in this scope
/home/velo/arduino-1.8.5/hardware/teensy/avr/cores/teensy3/core_cm4.h:1465:38: error: variable or field 'NVIC_DisableIRQ' declared void
__STATIC_INLINE void NVIC_DisableIRQ(IRQn_Type IRQn)
^
/home/velo/arduino-1.8.5/hardware/teensy/avr/cores/teensy3/core_cm4.h:1465:38: error: 'IRQn_Type' was not declared in this scope
/home/velo/arduino-1.8.5/hardware/teensy/avr/cores/teensy3/core_cm4.h:1481:45: error: 'NVIC_GetPendingIRQ' declared as an 'inline' variable
__STATIC_INLINE uint32_t NVIC_GetPendingIRQ(IRQn_Type IRQn)
^
And many more errors after that, all very similar to what I show here.