teensy 4.0 + audio board "Compilation error: exit status 1"

patijoo

New member
Hi all! I have an old project that used Teensy 3.2 + Audio Board that I try since a couple of days to update to the new 4.0 versions. I've read the great summary from Michael: https://forum.pjrc.com/index.php?threads/porting-from-teensy-3-2-to-4-0.71710/ and performed the pin changes according with the new references, however I keep on having the same error in my output console "Compilation error: exit status 1". I'm using Arduino 2.3.2 on macOS 14.5. I also tried the 1.8 Arduino version with Teensyduino support and the error is "Error compiling for board Teensy 4.0." Other codes seem to compile fine on the 4.0, except mine:( Maybe someone has an idea?

here the code, apologies in advance for the many notes :)

thanks!

Code:
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h> // new added 9.24
#include <CapacitiveSensor.h> // added for Teensy 4.0 because there is no more "Pin_touch" inbuild

// define all the stuff
const char *mainTrack = "011.WAV";

#define PIN_LEDS      A3
#define VAL_LED_MAX     4095

#define PIN_LED_ONBOARD   13
#define PIN_VIBMOTOR    5


#define PIN_BUTTON_IN   4
#define PIN_VOLTAGE_SEN   A3

#define PIN_EXTRA     A6

CapacitiveSensor   cs_3_2 = CapacitiveSensor(4,2);        // 10M resistor between pins 4 & 2, pin 2 is sensor pin, add a wire and or foil if desired
CapacitiveSensor   cs_3_1 = CapacitiveSensor(4,1);        // 10M resistor between pins 4 & 6, pin 6 is sensor pin, add a wire and or foil
CapacitiveSensor   cs_3_0 = CapacitiveSensor(3,0);        // 10M resistor between pins 4 & 8, pin 8 is sensor pin, add a wire and or foil

// GUItool: begin automatically generated code
AudioPlaySdWav playSdWav3; //
AudioPlaySdWav playSdWav2; //xy=122,176
AudioInputI2S i2s2; //xy=122,234
AudioPlaySdWav playSdWav1; //xy=123,132
AudioMixer4 mixer2; //xy=468,227
AudioMixer4 mixer1; //xy=469,146
AudioOutputI2S i2s1; //xy=642,186
AudioConnection patchCord9(playSdWav3, 0, mixer1, 2);
AudioConnection patchCord10(playSdWav3, 1, mixer2, 2);
AudioConnection patchCord1(playSdWav2, 0, mixer1, 1);
AudioConnection patchCord2(playSdWav2, 1, mixer2, 1);
AudioConnection patchCord3(i2s2, 0, mixer1, 2); //simultaniuos playback and crosfade works when
AudioConnection patchCord4(i2s2, 1, mixer2, 2); //this two lines are commented
AudioConnection patchCord5(playSdWav1, 0, mixer1, 0);
AudioConnection patchCord6(playSdWav1, 1, mixer2, 0);
AudioConnection patchCord7(mixer2, 0, i2s1, 1);
AudioConnection patchCord8(mixer1, 0, i2s1, 0);
AudioControlSGTL5000 sgtl5000_1; //xy=126,46
// GUItool: end automatically generated code
#define NUM_IDLESEQENSE         50

// The Data Structor to store Program/Case ID and the Time Value
typedef struct IdleSeqense_struct
{
  unsigned int CaseID;
  unsigned int TimeOut;
};
// Here we store the IdleModeSequense
IdleSeqense_struct IdleSeqense[NUM_IDLESEQENSE]   = {{6,  15000}, {3, 7500}, {7,  15000}, {3, 7500}, {5,  15000}, {3, 10000}, {4, 10000}, {7, 10000}, {3,  10000}, {5, 5000}, {3,  15000}, {2, 5000}, {7,  10000}, {2, 5000}, {3,  5000}, {2,  10000}, {3, 1000}, {7,  7000}, {3,  2000}, {2,  5000}, {3,  2000}, {2,  10000}, {0, 2000}, {2,  10000}, {7, 15000}, {2,  7000}, {0,  2000}, {2,  5000}, {1,  10000}, {7, 5000}, {0,  10000}, {3, 5000}, {1,  7500}, {3,  5000}, {7,  10000}, {5, 5000}, {1,  7000}, {6,  5000}, {4,  15000}, {7, 5000}, {6,  15000}, {4, 10000}, {7, 5000}, {5,  5000}, {7,  5000}, {4,  5000}, {6,  15000}, {4, 5000}, {7,  5000}, {6,  15000}};
// This is our index cursor to keep track where we are in the sequense
char IdleSeqenseCursor          = 0;
// Here we store if the idle its in the idle mode
bool IdleMode             = false;
// The time out value how much 'no input' is needed to start the Idle Sequense
unsigned long IdleTimeOut       = 10;

void setGain(int source, float gain)
{
  mixer1.gain(source, gain);
  mixer2.gain(source, gain);
}

const unsigned long motorDuration = 3000; // Duration in milliseconds (3 seconds)
unsigned long motorStartTime = 0;
int currentMode = 0; // Initialize mode to 0 initially



void setup()
{

  /* add setup code here */
  analogWriteResolution(12);


  //pinMode(PIN_LEDS,OUTPUT);
  pinMode(PIN_LED_ONBOARD, OUTPUT);
  pinMode(PIN_VIBMOTOR, OUTPUT);
  digitalWrite(PIN_VIBMOTOR, LOW);

  cs_3_2.set_CS_AutocaL_Millis(0xFFFFFFFF);     // turn off autocalibrate on channel 1 - just as an example

  //SetSensorOffset();

  Serial.begin(115200);

  ///AUtio Setup
  // Audio connections require memory to work.  For more
  // detailed information, see the MemoryAndCpuUsage example
  AudioMemory(18);// if its not working use less 15 or 10

  sgtl5000_1.enable();
  sgtl5000_1.volume(0.5);

  SPI.setMOSI(11); // (7) in 3.3 version
  SPI.setSCK(13); // (14) in 3.3 version
  if (!(SD.begin(10))) {
    // stop here, but print a message repetitively
    while (1) {
      Serial.println("Unable to access the SD card");
      delay(500);
    }
  }
 setGain(0, 0.5f);
  setGain(1, 0.0f);
  setGain(2, 0.5f);
setupAudioPool();

 

 
}
unsigned int delayOn[] = {500 /* 1 Hz*/, 500 / 2 /* 2 Hz*/, 500 / 5 /* 5 Hz*/, 500 / 10 /* 10 Hz*/, 500 / 15 /* 15 Hz*/, 500 / 20 /* 20 Hz*/, 500 / 25 /* 25 Hz*/, (500 / 30) + 1 /* 30 Hz*/, 500/*1Hz+sound1*/, 500/*1Hz+sound2*/};
unsigned long blinkCounter = 0;

/*
  case 0= 1Hz
  case 1= 2Hz
  case 2= 5Hz
  case 3= 10Hz
  case 4= 15Hz
  case 5= 20Hz
  case 6= 25Hz
  case 7= 30Hz
  case 8= 1Hz + sound 1
  case 9= 1Hz + sound 2
*/


bool isBlinkingOn = true;

void loop()
{
 
  long start = millis();
  long total1 =  cs_3_2.capacitiveSensor(30);
  long total2 =  cs_3_1.capacitiveSensor(30);
  long total3 =  cs_3_0.capacitiveSensor(30);

  static int dir = 1;
  static int Mode = 0;
  static bool VibMotorOn = false;
  /* add main program code here */
  static bool          IdleTimeOutStarted = false;
  static unsigned long IdleTimeOutTimer = 0;
  // This Just Switches Thur the  >>>>>
  loopTheBaseAudio();
  static unsigned long  tmpTime = millis() + 200;
  // Read Inputs an check serial every 200 milli seconds (we dont want to spend a lot time there)
  if (tmpTime < millis())
  {
    int Val1 = total1;
    int Val2 = total2;
    int Val3 = total3;

    Serial.print(Val1, DEC);
    Serial.print("\t");
    Serial.print(Val2, DEC);
    Serial.print("\t");
    Serial.print(Val3, DEC);
    Serial.print("\t");
    Serial.println();

    tmpTime += 200;

    // AutoOffset();


    // In TmpMode we store the previose Mode NOTE: its declared as static!
    static int TmpMode  = Mode;
    // if we have no sensor input we switch into the idle mode after the time out (NOTE: Now Val is a negative value thats why its used as (-Val)
    // else the direkt feedback switching should happen with the sensor data Val
    if ((Val1 <= 5000) && (Val2 <= 5000) && (Val3 <= 5000))

    {
      VibMotorOn = false; // Added 9.12.2015
      // if not in idle mode the start the timeout timer to get into idle mode


      if (IdleMode == false)
      {
        // Start the timeou once
        if (IdleTimeOutStarted == false)
        {
          // Yes
          IdleTimeOutStarted = true;
          // Calculate the timeOut time
          IdleTimeOutTimer = millis() + IdleTimeOut;
          // Reset cursor to start index
          IdleSeqenseCursor = 0;
          // Switch off the lights for now
          isBlinkingOn = false;
          // write a 0 to the constant current sources
          digitalWrite(PIN_LEDS, 0);

          Serial.println("Start Timout");
        }
        // Check if already enough timeout time has past the switch into the idle mode
        if (IdleTimeOutTimer <= millis())
        {
          Serial.println("First time out");
          isBlinkingOn = true;
          IdleMode = true;
          // set timing for first time out and switch into the correnct mode
          IdleTimeOutTimer = IdleSeqense[0].TimeOut + millis();
          Mode = IdleSeqense[0].CaseID;
          IdleSeqenseCursor = 0;
          // active IdleTimeOutStarted already for next time
          IdleTimeOutStarted = false;
        }
      } else
      {

        isBlinkingOn = true;
        // Idle Mode Sequense is here
        if (IdleTimeOutTimer <= millis())
        {
          Serial.println("Switch time out1");
          // Increase your cursor
          IdleSeqenseCursor++;
          // if the cursor is biiger then we have sequensens then we start from the biggining (round robin with modulo %)
          IdleSeqenseCursor = IdleSeqenseCursor % NUM_IDLESEQENSE;
          // Yes
          IdleMode = true;
          // set timing for first time out and switch into the correnct mode
          IdleTimeOutTimer = IdleSeqense[IdleSeqenseCursor].TimeOut + millis();;
          Mode = IdleSeqense[IdleSeqenseCursor].CaseID;
        }

      }

    } else // Val input is bigger then 10
    {
      // we wanna blink
      IdleMode = false;
      IdleTimeOutStarted = false;
      /// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
      int SensorMode = 0;
      //>>>>> From the sensor input Val1 we deside now what to do
      if ((Val1) > 5000)
      {
        SensorMode = 1;
      }
      //>>>>> From the sensor input Val2 we deside now what to do
      if ((Val2) > 5000)
      {
        SensorMode = 2;
      }
      //>>>>> From the sensor input Val3 we deside now what to do
      if ((Val3) > 5000)
      {
        SensorMode = 3;
      }

      switch (SensorMode)
      {
        case 0: // Idle Mode
          IdleMode = true; Mode = 0; isBlinkingOn = false; VibMotorOn = false;
          break;
        case 1: // S1
          Mode = 1; isBlinkingOn = true; VibMotorOn = false;
          break;
        case 2: // S2
          Mode = 4; isBlinkingOn = true; VibMotorOn = false;
          break;
        case 3: // S3
          Mode = 7; isBlinkingOn = true; VibMotorOn = true;
          break;
      }
      /// >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
      // Here We just make sure our mode stayes in range (0-9)
      if (Mode < 0) Mode = 0;
      if (Mode >= 9) Mode = 9;

    }

    // if the Mode is different from the prior mode then we start the new audio feedback
    if (TmpMode != Mode)
    {
      // Update previose state
      TmpMode = Mode;

      //sgtl5000_1.volume(0.0);

      switch (Mode)
      {
        case 0:
          playFilePool("001.WAV");
          break;
        case 1:
          playFilePool("002.WAV");
          break;
        case 2:
          playFilePool("003.WAV");
          break;
        case 3:
          playFilePool("004.WAV");
          break;
        case 4:
          playFilePool("005.WAV");
          break;
        case 5:
          playFilePool("006.WAV");
          break;
        case 6:
          playFilePool("007.WAV");
          break;
        case 7:
          playFilePool("008.WAV");
         Mode = 7; isBlinkingOn = true; VibMotorOn = true;
          break;
        case 8:
          playFilePool("009.WAV");
          break;
        case 9:
          playFilePool("010.WAV");
          break;
        default:
         stopAudioPool();
          break;
      }

      //sgtl5000_1.volume(0.5);
    }

if (Mode == 7) {
    VibMotorOn = true;
}

    if (VibMotorOn)
    {
      //Serial.write("vib ius on");
      // Here we could play with PWM our oulsing the motors too
      digitalWrite(PIN_VIBMOTOR, HIGH);
    } else
    {
      // switching the vibration motor off
      digitalWrite(PIN_VIBMOTOR, LOW);
      ///stopAudio();
    }
  }
 

  // <<<<

  if (isBlinkingOn) DoBlinking(Mode, VAL_LED_MAX);
  else stopAudio();

  static long milNext = 0;
  if (milNext < millis())
  {
    milNext = millis() + 5;
    updateAudiMixer();
  }
 
}


/// This Funktion hanles the time based freqeunse stwitching for the LEDs
/// Parameters are Mode .. do know which frequens    Value ... is the brigthness of the LED (0 - 4068)
void DoBlinking(int Mode, int Value)
{
  static int LEDState = 0;

  if (blinkCounter < millis()) // Switch
  {
    switch (LEDState)
    {
      case 0:
        LEDState = 1;
        // Swtich ON
        digitalWrite(PIN_LEDS, HIGH);
        break;
      default:
        LEDState = 0;
        digitalWrite(PIN_LEDS, LOW);
        break;
    }

    blinkCounter += delayOn[Mode];
  }
}




void stopAudio()
{
  if (playSdWav1.isPlaying())playSdWav1.stop();
  if (playSdWav2.isPlaying())playSdWav2.stop();
  //if (playSdWav3.isPlaying())playSdWav3.stop();
}

struct Audio_pool_obj
{
  char* audio_ch1_file = nullptr;
  float gain = 0, fade_dir = 0;
  AudioPlaySdWav* playSdWav = nullptr;
};
const int pool_size = 2;
Audio_pool_obj audio_pool[3];
float fade_step = 0.01;

void stopAudioPool()
{
  for (int i = 0; i < pool_size; i++)
  {
    audio_pool[i].fade_dir = -fade_step;
  }
}

void updateAudiMixer()
{
  for (int i = 0; i < pool_size; i++)
  {
    if (audio_pool[i].audio_ch1_file == nullptr) continue;

    audio_pool[i].gain += audio_pool[i].fade_dir;
    if (audio_pool[i].gain >= 1)audio_pool[i].gain = 1;
    if (audio_pool[i].gain <= 0)
    {
      audio_pool[i].gain = 0;
      if (audio_pool[i].playSdWav->isPlaying())audio_pool[i].playSdWav->stop();
      audio_pool[i].audio_ch1_file = nullptr;
    }
    setGain(i, audio_pool[i].gain);
  }
}
void setupAudioPool()
{
  audio_pool[0].playSdWav = &playSdWav1;
  audio_pool[1].playSdWav = &playSdWav2;
  audio_pool[2].playSdWav = &playSdWav3;

 startBaseTracke();
}
void loopTheBaseAudio()
{
  if( audio_pool[2].playSdWav->isPlaying())return;
  startBaseTracke();
}
void startBaseTracke()
{
    setGain(2, 1);
    audio_pool[2].playSdWav->play(mainTrack);
    delay(10);
}
bool started = false;
void playFilePool(const char *filename)
{
  Serial.print("Playing file: ");

  // find free pool and fade out others
  bool found = false;
  for (int i = 0; i < pool_size ; i++)
  {
    Serial.print("seARCH");
    if (audio_pool[i].audio_ch1_file == nullptr && !found)
    {
      Serial.print("FOUND");
      found = true;
      audio_pool[i].playSdWav->play(filename);
      Serial.print("Playing file: "); Serial.print(filename); Serial.print(" on "); Serial.println(i);
      audio_pool[i].fade_dir = fade_step;
      audio_pool[i].audio_ch1_file = filename;
    } else
    {
      audio_pool[i].fade_dir = -fade_step;
    }
  }

}
 
A "Compilation error: exit status 1" could be caused by a lot of different issues.
You may want to switch on full verbose output in the Preferences window:
1724778828329.png

And then share what you see in the Output window.
Interestingly, your code compiled fine on my machine...
1724779027556.png


Paul
 
Thank you Paul. Indeed, I'm wondering if it is Library problem or my (mac) machine.
here the output:

FQBN: teensy:avr:teensy40
Using board 'teensy40' from platform in folder: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0
Using core 'teensy4' from platform in folder: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0

Detecting libraries used...
/Users/patriciareis/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/arm-none-eabi-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++17 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=159 -DARDUINO=10607 -DARDUINO_TEENSY40 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/cores/teensy4 /private/var/folders/z2/c9b92rzj1437tk06dwtnj8sw0000gn/T/arduino/sketches/89DE103A0BAF3CB94E3633A8A54D71FD/sketch/1_3_massage_chair_test_mod_multiAudio_loop.ino.cpp -o /dev/null
Alternatives for Audio.h: [Audio@1.0.6 Audio@1.3]
ResolveLibrary(Audio.h)
-> candidates: [Audio@1.0.6 Audio@1.3]
/Users/patriciareis/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/arm-none-eabi-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++17 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=159 -DARDUINO=10607 -DARDUINO_TEENSY40 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/cores/teensy4 -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio /private/var/folders/z2/c9b92rzj1437tk06dwtnj8sw0000gn/T/arduino/sketches/89DE103A0BAF3CB94E3633A8A54D71FD/sketch/1_3_massage_chair_test_mod_multiAudio_loop.ino.cpp -o /dev/null
Alternatives for SPI.h: [SPI@1.0]
ResolveLibrary(SPI.h)
-> candidates: [SPI@1.0]
/Users/patriciareis/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/arm-none-eabi-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++17 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=159 -DARDUINO=10607 -DARDUINO_TEENSY40 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/cores/teensy4 -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SPI /private/var/folders/z2/c9b92rzj1437tk06dwtnj8sw0000gn/T/arduino/sketches/89DE103A0BAF3CB94E3633A8A54D71FD/sketch/1_3_massage_chair_test_mod_multiAudio_loop.ino.cpp -o /dev/null
Alternatives for SD.h: [SD@1.2.4 SD@1.3.0 SD@2.0.0]
ResolveLibrary(SD.h)
-> candidates: [SD@1.2.4 SD@1.3.0 SD@2.0.0]
/Users/patriciareis/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/arm-none-eabi-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++17 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=159 -DARDUINO=10607 -DARDUINO_TEENSY40 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/cores/teensy4 -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SPI -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SD/src /private/var/folders/z2/c9b92rzj1437tk06dwtnj8sw0000gn/T/arduino/sketches/89DE103A0BAF3CB94E3633A8A54D71FD/sketch/1_3_massage_chair_test_mod_multiAudio_loop.ino.cpp -o /dev/null
Alternatives for SdFat.h: [SdFat@2.1.2]
ResolveLibrary(SdFat.h)
-> candidates: [SdFat@2.1.2]
/Users/patriciareis/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/arm-none-eabi-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++17 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=159 -DARDUINO=10607 -DARDUINO_TEENSY40 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/cores/teensy4 -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SPI -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SD/src -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src /private/var/folders/z2/c9b92rzj1437tk06dwtnj8sw0000gn/T/arduino/sketches/89DE103A0BAF3CB94E3633A8A54D71FD/sketch/1_3_massage_chair_test_mod_multiAudio_loop.ino.cpp -o /dev/null
Alternatives for SerialFlash.h: [SerialFlash@0.5]
ResolveLibrary(SerialFlash.h)
-> candidates: [SerialFlash@0.5]
/Users/patriciareis/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/arm-none-eabi-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++17 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=159 -DARDUINO=10607 -DARDUINO_TEENSY40 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/cores/teensy4 -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SPI -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SD/src -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SerialFlash /private/var/folders/z2/c9b92rzj1437tk06dwtnj8sw0000gn/T/arduino/sketches/89DE103A0BAF3CB94E3633A8A54D71FD/sketch/1_3_massage_chair_test_mod_multiAudio_loop.ino.cpp -o /dev/null
Alternatives for Wire.h: [Wire@1.0]
ResolveLibrary(Wire.h)
-> candidates: [Wire@1.0]
/Users/patriciareis/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/arm-none-eabi-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++17 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=159 -DARDUINO=10607 -DARDUINO_TEENSY40 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/cores/teensy4 -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SPI -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SD/src -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SerialFlash -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Wire /private/var/folders/z2/c9b92rzj1437tk06dwtnj8sw0000gn/T/arduino/sketches/89DE103A0BAF3CB94E3633A8A54D71FD/sketch/1_3_massage_chair_test_mod_multiAudio_loop.ino.cpp -o /dev/null
Alternatives for CapacitiveSensor.h: [CapacitiveSensor@0.5.1 CapacitiveSensor@0.5.1]
ResolveLibrary(CapacitiveSensor.h)
-> candidates: [CapacitiveSensor@0.5.1 CapacitiveSensor@0.5.1]
/Users/patriciareis/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/arm-none-eabi-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++17 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=159 -DARDUINO=10607 -DARDUINO_TEENSY40 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/cores/teensy4 -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SPI -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SD/src -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SerialFlash -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Wire -I/Users/patriciareis/Documents/Arduino/libraries/CapacitiveSensor /private/var/folders/z2/c9b92rzj1437tk06dwtnj8sw0000gn/T/arduino/sketches/89DE103A0BAF3CB94E3633A8A54D71FD/sketch/1_3_massage_chair_test_mod_multiAudio_loop.ino.cpp -o /dev/null
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/Quantizer.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/Resampler.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/analyze_fft1024.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/analyze_fft256.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/analyze_notefreq.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/analyze_peak.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/analyze_print.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/analyze_rms.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/analyze_tonedetect.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/async_input_spdif3.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/control_ak4558.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/control_cs42448.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/control_cs4272.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/control_sgtl5000.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/control_tlv320aic3206.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/control_wm8731.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/data_bandlimit_step.c
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/data_spdif.c
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/data_ulaw.c
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/data_waveforms.c
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/data_windows.c
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/effect_bitcrusher.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/effect_chorus.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/effect_combine.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/effect_delay.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/effect_delay_ext.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/effect_envelope.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/effect_fade.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/effect_flange.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/effect_freeverb.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/effect_granular.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/effect_midside.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/effect_multiply.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/effect_rectifier.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/effect_reverb.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/effect_wavefolder.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/effect_waveshaper.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/filter_biquad.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/filter_fir.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/filter_ladder.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/filter_variable.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/input_adc.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/input_adcs.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/input_i2s.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/input_i2s2.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/input_i2s_hex.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/input_i2s_oct.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/input_i2s_quad.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/input_pdm.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/input_pdm_i2s2.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/input_spdif3.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/input_tdm.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/input_tdm2.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/memcpy_audio.S
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/mixer.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/output_adat.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/output_dac.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/output_dacs.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/output_i2s.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/output_i2s2.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/output_i2s_hex.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/output_i2s_oct.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/output_i2s_quad.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/output_mqs.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/output_pt8211.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/output_pt8211_2.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/output_pwm.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/output_spdif.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/output_spdif2.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/output_spdif3.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/output_tdm.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/output_tdm2.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/play_memory.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/play_queue.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/play_sd_raw.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/play_sd_wav.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/play_serialflash_raw.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/record_queue.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/spi_interrupt.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/synth_dc.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/synth_karplusstrong.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/synth_pinknoise.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/synth_pwm.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/synth_simple_drum.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/synth_sine.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/synth_tonesweep.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/synth_waveform.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/synth_wavetable.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/synth_whitenoise.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/utility/imxrt_hw.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio/utility/sqrt_integer.c
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SPI/SPI.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SD/src/SD.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src/ExFatLib/ExFatDbg.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src/ExFatLib/ExFatFile.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src/ExFatLib/ExFatFilePrint.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src/ExFatLib/ExFatFileWrite.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src/ExFatLib/ExFatFormatter.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src/ExFatLib/ExFatName.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src/ExFatLib/ExFatPartition.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src/ExFatLib/ExFatVolume.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src/ExFatLib/upcase.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src/FatLib/FatDbg.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src/FatLib/FatFile.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src/FatLib/FatFileLFN.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src/FatLib/FatFilePrint.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src/FatLib/FatFileSFN.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src/FatLib/FatFormatter.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src/FatLib/FatName.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src/FatLib/FatPartition.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src/FatLib/FatVolume.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src/FreeStack.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src/FsLib/FsFile.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src/FsLib/FsNew.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src/FsLib/FsVolume.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src/MinimumSerial.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src/SdCard/SdCardInfo.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src/SdCard/SdSpiCard.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src/SdCard/SdioTeensy.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src/SpiDriver/SdSpiArtemis.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src/SpiDriver/SdSpiChipSelect.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src/SpiDriver/SdSpiDue.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src/SpiDriver/SdSpiESP.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src/SpiDriver/SdSpiParticle.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src/SpiDriver/SdSpiSTM32.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src/SpiDriver/SdSpiSTM32Core.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src/SpiDriver/SdSpiTeensy3.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src/common/FmtNumber.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src/common/FsCache.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src/common/FsDateTime.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src/common/FsName.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src/common/FsStructs.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src/common/FsUtf.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src/common/PrintBasic.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src/common/upcase.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src/iostream/StdioStream.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src/iostream/StreamBaseClass.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src/iostream/istream.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src/iostream/ostream.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SerialFlash/SerialFlashChip.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SerialFlash/SerialFlashDirectory.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Wire/Wire.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Wire/WireIMXRT.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Wire/WireKinetis.cpp
Using cached library dependencies for file: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Wire/utility/twi.c
/Users/patriciareis/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/arm-none-eabi-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++17 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=159 -DARDUINO=10607 -DARDUINO_TEENSY40 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/cores/teensy4 -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SPI -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SD/src -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SerialFlash -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Wire -I/Users/patriciareis/Documents/Arduino/libraries/CapacitiveSensor /Users/patriciareis/Documents/Arduino/libraries/CapacitiveSensor/CapacitiveSensor.cpp -o /dev/null
Generating function prototypes...
/Users/patriciareis/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/arm-none-eabi-g++ -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -std=gnu++17 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=159 -DARDUINO=10607 -DARDUINO_TEENSY40 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/cores/teensy4 -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SPI -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SD/src -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SerialFlash -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Wire -I/Users/patriciareis/Documents/Arduino/libraries/CapacitiveSensor /private/var/folders/z2/c9b92rzj1437tk06dwtnj8sw0000gn/T/arduino/sketches/89DE103A0BAF3CB94E3633A8A54D71FD/sketch/1_3_massage_chair_test_mod_multiAudio_loop.ino.cpp -o /private/var/folders/z2/c9b92rzj1437tk06dwtnj8sw0000gn/T/1699138054/sketch_merged.cpp
/Users/patriciareis/Library/Arduino15/packages/builtin/tools/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /private/var/folders/z2/c9b92rzj1437tk06dwtnj8sw0000gn/T/1699138054/sketch_merged.cpp
Compiling sketch...
/Users/patriciareis/Library/Arduino15/packages/teensy/tools/teensy-tools/1.59.0/precompile_helper /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/cores/teensy4 /private/var/folders/z2/c9b92rzj1437tk06dwtnj8sw0000gn/T/arduino/sketches/89DE103A0BAF3CB94E3633A8A54D71FD /Users/patriciareis/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/arm-none-eabi-g++ -x c++-header -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++17 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=159 -DARDUINO=10607 -DARDUINO_TEENSY40 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/cores/teensy4 /private/var/folders/z2/c9b92rzj1437tk06dwtnj8sw0000gn/T/arduino/sketches/89DE103A0BAF3CB94E3633A8A54D71FD/pch/Arduino.h -o /private/var/folders/z2/c9b92rzj1437tk06dwtnj8sw0000gn/T/arduino/sketches/89DE103A0BAF3CB94E3633A8A54D71FD/pch/Arduino.h.gch
Using previously compiled file: /private/var/folders/z2/c9b92rzj1437tk06dwtnj8sw0000gn/T/arduino/sketches/89DE103A0BAF3CB94E3633A8A54D71FD/pch/Arduino.h.gch
/Users/patriciareis/Library/Arduino15/packages/teensy/tools/teensy-compile/11.3.1/arm/bin/arm-none-eabi-g++ -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -std=gnu++17 -fno-exceptions -fpermissive -fno-rtti -fno-threadsafe-statics -felide-constructors -Wno-error=narrowing -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-d16 -D__IMXRT1062__ -DTEENSYDUINO=159 -DARDUINO=10607 -DARDUINO_TEENSY40 -DF_CPU=600000000 -DUSB_SERIAL -DLAYOUT_US_ENGLISH -I/private/var/folders/z2/c9b92rzj1437tk06dwtnj8sw0000gn/T/arduino/sketches/89DE103A0BAF3CB94E3633A8A54D71FD/pch -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/cores/teensy4 -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SPI -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SD/src -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat/src -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SerialFlash -I/Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Wire -I/Users/patriciareis/Documents/Arduino/libraries/CapacitiveSensor /private/var/folders/z2/c9b92rzj1437tk06dwtnj8sw0000gn/T/arduino/sketches/89DE103A0BAF3CB94E3633A8A54D71FD/sketch/1_3_massage_chair_test_mod_multiAudio_loop.ino.cpp -o /private/var/folders/z2/c9b92rzj1437tk06dwtnj8sw0000gn/T/arduino/sketches/89DE103A0BAF3CB94E3633A8A54D71FD/sketch/1_3_massage_chair_test_mod_multiAudio_loop.ino.cpp.o
In file included from /Users/patriciareis/pCloud Drive/_ARTIST_WORK/_2024/Massage_chair/Fotogalerie_code/1_3_massage_chair_test_mod_multiAudio_loop/1_3_massage_chair_test_mod_multiAudio_loop.ino:29:
/Users/patriciareis/Documents/Arduino/libraries/CapacitiveSensor/CapacitiveSensor.h:222:9: error: 'IO_REG_TYPE' does not name a type
222 | IO_REG_TYPE sBit; // send pin's ports and bitmask
| ^~~~~~~~~~~
/Users/patriciareis/Documents/Arduino/libraries/CapacitiveSensor/CapacitiveSensor.h:223:18: error: 'IO_REG_TYPE' does not name a type
223 | volatile IO_REG_TYPE *sReg;
| ^~~~~~~~~~~
/Users/patriciareis/Documents/Arduino/libraries/CapacitiveSensor/CapacitiveSensor.h:224:9: error: 'IO_REG_TYPE' does not name a type
224 | IO_REG_TYPE rBit; // receive pin's ports and bitmask
| ^~~~~~~~~~~
/Users/patriciareis/Documents/Arduino/libraries/CapacitiveSensor/CapacitiveSensor.h:225:18: error: 'IO_REG_TYPE' does not name a type
225 | volatile IO_REG_TYPE *rReg;
| ^~~~~~~~~~~
/Users/patriciareis/pCloud Drive/_ARTIST_WORK/_2024/Massage_chair/Fotogalerie_code/1_3_massage_chair_test_mod_multiAudio_loop/1_3_massage_chair_test_mod_multiAudio_loop.ino:73:1: warning: 'typedef' was ignored in this declaration
73 | typedef struct IdleSeqense_struct
| ^~~~~~~
/Users/patriciareis/pCloud Drive/_ARTIST_WORK/_2024/Massage_chair/Fotogalerie_code/1_3_massage_chair_test_mod_multiAudio_loop/1_3_massage_chair_test_mod_multiAudio_loop.ino: In function 'void loop()':
/Users/patriciareis/pCloud Drive/_ARTIST_WORK/_2024/Massage_chair/Fotogalerie_code/1_3_massage_chair_test_mod_multiAudio_loop/1_3_massage_chair_test_mod_multiAudio_loop.ino:256:42: warning: array subscript has type 'char' [-Wchar-subscripts]
256 | IdleTimeOutTimer = IdleSeqense[IdleSeqenseCursor].TimeOut + millis();;
| ^~~~~~~~~~~~~~~~~
/Users/patriciareis/pCloud Drive/_ARTIST_WORK/_2024/Massage_chair/Fotogalerie_code/1_3_massage_chair_test_mod_multiAudio_loop/1_3_massage_chair_test_mod_multiAudio_loop.ino:257:30: warning: array subscript has type 'char' [-Wchar-subscripts]
257 | Mode = IdleSeqense[IdleSeqenseCursor].CaseID;
| ^~~~~~~~~~~~~~~~~
/Users/patriciareis/pCloud Drive/_ARTIST_WORK/_2024/Massage_chair/Fotogalerie_code/1_3_massage_chair_test_mod_multiAudio_loop/1_3_massage_chair_test_mod_multiAudio_loop.ino:380:15: warning: comparison of integer expressions of different signedness: 'long int' and 'uint32_t' {aka 'long unsigned int'} [-Wsign-compare]
380 | if (milNext < millis())
| ~~~~~~~~^~~~~~~~~~
/Users/patriciareis/pCloud Drive/_ARTIST_WORK/_2024/Massage_chair/Fotogalerie_code/1_3_massage_chair_test_mod_multiAudio_loop/1_3_massage_chair_test_mod_multiAudio_loop.ino:165:8: warning: unused variable 'start' [-Wunused-variable]
165 | long start = millis();
| ^~~~~
/Users/patriciareis/pCloud Drive/_ARTIST_WORK/_2024/Massage_chair/Fotogalerie_code/1_3_massage_chair_test_mod_multiAudio_loop/1_3_massage_chair_test_mod_multiAudio_loop.ino:170:14: warning: unused variable 'dir' [-Wunused-variable]
170 | static int dir = 1;
| ^~~
/Users/patriciareis/pCloud Drive/_ARTIST_WORK/_2024/Massage_chair/Fotogalerie_code/1_3_massage_chair_test_mod_multiAudio_loop/1_3_massage_chair_test_mod_multiAudio_loop.ino: In function 'void playFilePool(const char*)':
/Users/patriciareis/pCloud Drive/_ARTIST_WORK/_2024/Massage_chair/Fotogalerie_code/1_3_massage_chair_test_mod_multiAudio_loop/1_3_massage_chair_test_mod_multiAudio_loop.ino:495:38: warning: invalid conversion from 'const char*' to 'char*' [-fpermissive]
495 | audio_pool.audio_ch1_file = filename;
| ^~~~~~~~
| |
| const char*
/Users/patriciareis/pCloud Drive/_ARTIST_WORK/_2024/Massage_chair/Fotogalerie_code/1_3_massage_chair_test_mod_multiAudio_loop/1_3_massage_chair_test_mod_multiAudio_loop.ino: At global scope:
/Users/patriciareis/pCloud Drive/_ARTIST_WORK/_2024/Massage_chair/Fotogalerie_code/1_3_massage_chair_test_mod_multiAudio_loop/1_3_massage_chair_test_mod_multiAudio_loop.ino:170:14: warning: 'dir' defined but not used [-Wunused-variable]
170 | static int dir = 1;
| ^~~
Multiple libraries were found for "CapacitiveSensor.h"
Used: /Users/patriciareis/Documents/Arduino/libraries/CapacitiveSensor
Not used: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/CapacitiveSensor
Multiple libraries were found for "Audio.h"
Used: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio
Not used: /Users/patriciareis/Documents/Arduino/libraries/Audio
Multiple libraries were found for "SD.h"
Used: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SD
Not used: /Users/patriciareis/Library/Arduino15/libraries/SD
Not used: /Users/patriciareis/Documents/Arduino/libraries/SD
Using library Audio at version 1.3 in folder: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Audio
Using library SPI at version 1.0 in folder: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SPI
Using library SD at version 2.0.0 in folder: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SD
Using library SdFat at version 2.1.2 in folder: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SdFat
Using library SerialFlash at version 0.5 in folder: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/SerialFlash
Using library Wire at version 1.0 in folder: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/Wire
Using library CapacitiveSensor at version 0.5.1 in folder: /Users/patriciareis/Documents/Arduino/libraries/CapacitiveSensor
exit status 1

thanks,

Pat
 
Multiple libraries were found for "CapacitiveSensor.h"
Used: /Users/patriciareis/Documents/Arduino/libraries/CapacitiveSensor
Not used: /Users/patriciareis/Library/Arduino15/packages/teensy/hardware/avr/1.59.0/libraries/CapacitiveSensor

Maybe using this other copy of CapacitiveSensor is causing trouble? You probably want Arduino IDE to use the one meany for Teensy.
 
Oh Paul, you're my hero! I removed CapacitiveSensor from the Arduino libraries folder and it finally compiled!! Happy to start this new journey with Teensy 4.0 after almost 10 years of Teensy 3. I'm a big fun! Such a pity though that the 4 version does not have the touch pins anymore. Thanks for all the help!
Pat
 
Back
Top