Hi all,
I'm trying to interface a PDM microphone with T4, using the Audio System Design Tool.
I linked the PDM input with the 'queue' class. The resulting code compiles for T3.6, but for T4 it produces an error.
Here's the code:
And here's the error:
C:\...\Temp\arduino_build_881909\sketch\MicTest.ino.cpp.o: In function `AudioInputPDM::AudioInputPDM()':
C:\...\arduino-1.8.10\hardware\teensy\avr\libraries\Audio/input_pdm.h:37: undefined reference to `AudioInputPDM::begin()'
C:\...\AppData\Local\Temp\arduino_build_881909\sketch\MicTest.ino.cpp.o: In function `AudioStream::AudioStream(unsigned char, audio_block_struct**)':
C:\...\arduino-1.8.10\hardware\teensy\avr\cores\teensy4/AudioStream.h:130: undefined reference to `vtable for AudioInputPDM'
collect2.exe: error: ld returned 1 exit status
I'm using Arduino 1.8.10 and Teensyduino 1.48.
Is PDM support not yet available on T4? Or do I have something misconfigured?
Thanks!
I'm trying to interface a PDM microphone with T4, using the Audio System Design Tool.
I linked the PDM input with the 'queue' class. The resulting code compiles for T3.6, but for T4 it produces an error.
Here's the code:
Code:
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>
// GUItool: begin automatically generated code
AudioInputPDM pdm1; //xy=109,145
AudioRecordQueue queue1; //xy=273,143
AudioConnection patchCord1(pdm1, queue1);
// GUItool: end automatically generated code
void setup() {
}
void loop() {
}
And here's the error:
C:\...\Temp\arduino_build_881909\sketch\MicTest.ino.cpp.o: In function `AudioInputPDM::AudioInputPDM()':
C:\...\arduino-1.8.10\hardware\teensy\avr\libraries\Audio/input_pdm.h:37: undefined reference to `AudioInputPDM::begin()'
C:\...\AppData\Local\Temp\arduino_build_881909\sketch\MicTest.ino.cpp.o: In function `AudioStream::AudioStream(unsigned char, audio_block_struct**)':
C:\...\arduino-1.8.10\hardware\teensy\avr\cores\teensy4/AudioStream.h:130: undefined reference to `vtable for AudioInputPDM'
collect2.exe: error: ld returned 1 exit status
I'm using Arduino 1.8.10 and Teensyduino 1.48.
Is PDM support not yet available on T4? Or do I have something misconfigured?
Thanks!