Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP32-S3: Adafruit_TinyUSB sending garbage / loopback-like traffic on reading only sketch. #432

Open
DatanoiseTV opened this issue Jun 29, 2024 · 2 comments
Labels
Bug Something isn't working

Comments

@DatanoiseTV
Copy link

DatanoiseTV commented Jun 29, 2024

Operating System

Linux

Arduino IDE version

2.3.2

Board

ESP32-S3 Dev Kit

ArduinoCore version

3.0.2

TinyUSB Library version

3.3.1

Sketch as ATTACHED TXT

/*********************************************************************
 Adafruit invests time and resources providing this open source code,
 please support Adafruit and open-source hardware by purchasing
 products from Adafruit!

 MIT license, check LICENSE for more information
 Copyright (c) 2019 Ha Thach for Adafruit Industries
 All text above, and the splash screen below must be included in
 any redistribution
*********************************************************************/

/* This sketch is enumerated as USB MIDI device. 
 * Following library is required
 * - MIDI Library by Forty Seven Effects
 *   https://github.com/FortySevenEffects/arduino_midi_library
 */

#include <Arduino.h>
#include <Adafruit_TinyUSB.h>
#include <MIDI.h>

// USB MIDI object
Adafruit_USBD_MIDI usb_midi;

// Create a new instance of the Arduino MIDI Library,
// and attach usb_midi as the transport.
MIDI_CREATE_INSTANCE(Adafruit_USBD_MIDI, usb_midi, MIDI);

// Variable that holds the current position in the sequence.
uint32_t position = 0;

// Store example melody as an array of note values
byte note_sequence[] = {
    74, 78, 81, 86, 90, 93, 98, 102, 57, 61, 66, 69, 73, 78, 81, 85, 88, 92, 97, 100, 97, 92, 88, 85, 81, 78,
    74, 69, 66, 62, 57, 62, 66, 69, 74, 78, 81, 86, 90, 93, 97, 102, 97, 93, 90, 85, 81, 78, 73, 68, 64, 61,
    56, 61, 64, 68, 74, 78, 81, 86, 90, 93, 98, 102
};

void setup() {

  TinyUSBDevice.setID(0x2E8A, 0x104B);

  // Manual begin() is required on core without built-in support e.g. mbed rp2040
  if (!TinyUSBDevice.isInitialized()) {
    TinyUSBDevice.begin(0);
  }

  pinMode(LED_BUILTIN, OUTPUT);

  usb_midi.setStringDescriptor("TinyUSB MIDI");

  // Initialize MIDI, and listen to all MIDI channels
  // This will also call usb_midi's begin()
  MIDI.begin(MIDI_CHANNEL_OMNI);

  // Attach the handleNoteOn function to the MIDI Library. It will
  // be called whenever the Bluefruit receives MIDI Note On messages.
  MIDI.setHandleNoteOn(handleNoteOn);

  // Do the same for MIDI Note Off messages.
  MIDI.setHandleNoteOff(handleNoteOff);

  Serial.begin(115200);
}

void loop() {
  #ifdef TINYUSB_NEED_POLLING_TASK
  // Manual call tud_task since it isn't called by Core's background
  TinyUSBDevice.task();
  #endif

  // not enumerated()/mounted() yet: nothing to do
  if (!TinyUSBDevice.mounted()) {
    return;
  }

  #if 0
  static uint32_t start_ms = 0;
  if (millis() - start_ms > 266) {
    start_ms += 266;

    // Setup variables for the current and previous
    // positions in the note sequence.
    int previous = position - 1;

    // If we currently are at position 0, set the
    // previous position to the last note in the sequence.
    if (previous < 0) {
      previous = sizeof(note_sequence) - 1;
    }

    // Send Note On for current position at full velocity (127) on channel 1.
    MIDI.sendNoteOn(note_sequence[position], 127, 1);

    // Send Note Off for previous note.
    MIDI.sendNoteOff(note_sequence[previous], 0, 1);

    // Increment position
    position++;

    // If we are at the end of the sequence, start over.
    if (position >= sizeof(note_sequence)) {
      position = 0;
    }
  }
  #endif

  // read any new MIDI messages
  MIDI.read();
}

void handleNoteOn(byte channel, byte pitch, byte velocity) {
  // Log when a note is pressed.
  Serial.print("Note on: channel = ");
  Serial.print(channel);

  Serial.print(" pitch = ");
  Serial.print(pitch);

  Serial.print(" velocity = ");
  Serial.println(velocity);
}

void handleNoteOff(byte channel, byte pitch, byte velocity) {
  // Log when a note is released.
  Serial.print("Note off: channel = ");
  Serial.print(channel);

  Serial.print(" pitch = ");
  Serial.print(pitch);

  Serial.print(" velocity = ");
  Serial.println(velocity);
}

Compiled Log as ATTACHED TXT

FQBN: esp32:esp32:esp32s3:USBMode=default,CDCOnBoot=cdc
Using board 'esp32s3' from platform in folder: /Users/syso/Library/Arduino15/packages/esp32/hardware/esp32/3.0.2
Using core 'esp32' from platform in folder: /Users/syso/Library/Arduino15/packages/esp32/hardware/esp32/3.0.2

/usr/bin/env bash -c "[ ! -f "/Users/syso/Documents/Arduino/miditest2"/partitions.csv ] || cp -f "/Users/syso/Documents/Arduino/miditest2"/partitions.csv "/private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C"/partitions.csv"
/usr/bin/env bash -c "[ -f "/private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C"/partitions.csv ] || [ ! -f "/Users/syso/Library/Arduino15/packages/esp32/hardware/esp32/3.0.2/variants/esp32s3"/partitions.csv ] || cp "/Users/syso/Library/Arduino15/packages/esp32/hardware/esp32/3.0.2/variants/esp32s3"/partitions.csv "/private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C"/partitions.csv"
/usr/bin/env bash -c "[ -f "/private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C"/partitions.csv ] || cp "/Users/syso/Library/Arduino15/packages/esp32/hardware/esp32/3.0.2"/tools/partitions/default.csv "/private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C"/partitions.csv"
/usr/bin/env bash -c "[ -f "/Users/syso/Documents/Arduino/miditest2"/bootloader.bin ] && cp -f "/Users/syso/Documents/Arduino/miditest2"/bootloader.bin "/private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C"/miditest2.ino.bootloader.bin || ( [ -f "/Users/syso/Library/Arduino15/packages/esp32/hardware/esp32/3.0.2/variants/esp32s3"/bootloader.bin ] && cp "/Users/syso/Library/Arduino15/packages/esp32/hardware/esp32/3.0.2/variants/esp32s3"/bootloader.bin "/private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C"/miditest2.ino.bootloader.bin || "/Users/syso/Library/Arduino15/packages/esp32/tools/esptool_py/4.6"/esptool --chip esp32s3 elf2image --flash_mode dio --flash_freq 80m --flash_size 4MB -o "/private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C"/miditest2.ino.bootloader.bin "/Users/syso/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32s3"/bin/bootloader_qio_80m.elf )"
esptool.py v4.6
Creating esp32s3 image...
Merged 1 ELF section
Successfully created esp32s3 image.
/usr/bin/env bash -c "[ ! -f "/Users/syso/Documents/Arduino/miditest2"/build_opt.h ] || cp -f "/Users/syso/Documents/Arduino/miditest2"/build_opt.h "/private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C"/build_opt.h"
/usr/bin/env bash -c "[ -f "/private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C"/build_opt.h ] || : > "/private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C"/build_opt.h"
/usr/bin/env bash -c ": > '/private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/file_opts'"
Detecting libraries used...
/Users/syso/Library/Arduino15/packages/esp32/tools/esp-xs3/2302/bin/xtensa-esp32s3-elf-g++ -c @/Users/syso/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32s3/flags/cpp_flags -w -Os -w -x c++ -E -CC -DF_CPU=240000000L -DARDUINO=10607 -DARDUINO_ESP32S3_DEV -DARDUINO_ARCH_ESP32 -DARDUINO_BOARD="ESP32S3_DEV" -DARDUINO_VARIANT="esp32s3" -DARDUINO_PARTITION_default -DARDUINO_HOST_OS="macosx" -DARDUINO_FQBN="esp32:esp32:esp32s3:UploadSpeed=921600,USBMode=default,CDCOnBoot=cdc,MSCOnBoot=default,DFUOnBoot=default,UploadMode=default,CPUFreq=240,FlashMode=qio,FlashSize=4M,PartitionScheme=default,DebugLevel=none,PSRAM=disabled,LoopCore=1,EventsCore=1,EraseFlash=none,JTAGAdapter=default,ZigbeeMode=default" -DESP32 -DCORE_DEBUG_LEVEL=0 -DARDUINO_RUNNING_CORE=1 -DARDUINO_EVENT_RUNNING_CORE=1 -DARDUINO_USB_MODE=0 -DARDUINO_USB_CDC_ON_BOOT=1 -DARDUINO_USB_MSC_ON_BOOT=0 -DARDUINO_USB_DFU_ON_BOOT=0 @/Users/syso/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32s3/flags/defines -I/Users/syso/Documents/Arduino/miditest2 -iprefix /Users/syso/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32s3/include/ @/Users/syso/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32s3/flags/includes -I/Users/syso/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32s3/qio_qspi/include -I/Users/syso/Library/Arduino15/packages/esp32/hardware/esp32/3.0.2/cores/esp32 -I/Users/syso/Library/Arduino15/packages/esp32/hardware/esp32/3.0.2/variants/esp32s3 @/private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/build_opt.h @/private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/file_opts /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/sketch/miditest2.ino.cpp -o /dev/null
Alternatives for Adafruit_TinyUSB.h: [Adafruit TinyUSB [email protected]]
ResolveLibrary(Adafruit_TinyUSB.h)
-> candidates: [Adafruit TinyUSB [email protected]]
/Users/syso/Library/Arduino15/packages/esp32/tools/esp-xs3/2302/bin/xtensa-esp32s3-elf-g++ -c @/Users/syso/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32s3/flags/cpp_flags -w -Os -w -x c++ -E -CC -DF_CPU=240000000L -DARDUINO=10607 -DARDUINO_ESP32S3_DEV -DARDUINO_ARCH_ESP32 -DARDUINO_BOARD="ESP32S3_DEV" -DARDUINO_VARIANT="esp32s3" -DARDUINO_PARTITION_default -DARDUINO_HOST_OS="macosx" -DARDUINO_FQBN="esp32:esp32:esp32s3:UploadSpeed=921600,USBMode=default,CDCOnBoot=cdc,MSCOnBoot=default,DFUOnBoot=default,UploadMode=default,CPUFreq=240,FlashMode=qio,FlashSize=4M,PartitionScheme=default,DebugLevel=none,PSRAM=disabled,LoopCore=1,EventsCore=1,EraseFlash=none,JTAGAdapter=default,ZigbeeMode=default" -DESP32 -DCORE_DEBUG_LEVEL=0 -DARDUINO_RUNNING_CORE=1 -DARDUINO_EVENT_RUNNING_CORE=1 -DARDUINO_USB_MODE=0 -DARDUINO_USB_CDC_ON_BOOT=1 -DARDUINO_USB_MSC_ON_BOOT=0 -DARDUINO_USB_DFU_ON_BOOT=0 @/Users/syso/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32s3/flags/defines -I/Users/syso/Documents/Arduino/miditest2 -iprefix /Users/syso/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32s3/include/ @/Users/syso/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32s3/flags/includes -I/Users/syso/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32s3/qio_qspi/include -I/Users/syso/Library/Arduino15/packages/esp32/hardware/esp32/3.0.2/cores/esp32 -I/Users/syso/Library/Arduino15/packages/esp32/hardware/esp32/3.0.2/variants/esp32s3 -I/Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src @/private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/build_opt.h @/private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/file_opts /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/sketch/miditest2.ino.cpp -o /dev/null
Alternatives for SPI.h: [[email protected]]
ResolveLibrary(SPI.h)
-> candidates: [[email protected]]
/Users/syso/Library/Arduino15/packages/esp32/tools/esp-xs3/2302/bin/xtensa-esp32s3-elf-g++ -c @/Users/syso/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32s3/flags/cpp_flags -w -Os -w -x c++ -E -CC -DF_CPU=240000000L -DARDUINO=10607 -DARDUINO_ESP32S3_DEV -DARDUINO_ARCH_ESP32 -DARDUINO_BOARD="ESP32S3_DEV" -DARDUINO_VARIANT="esp32s3" -DARDUINO_PARTITION_default -DARDUINO_HOST_OS="macosx" -DARDUINO_FQBN="esp32:esp32:esp32s3:UploadSpeed=921600,USBMode=default,CDCOnBoot=cdc,MSCOnBoot=default,DFUOnBoot=default,UploadMode=default,CPUFreq=240,FlashMode=qio,FlashSize=4M,PartitionScheme=default,DebugLevel=none,PSRAM=disabled,LoopCore=1,EventsCore=1,EraseFlash=none,JTAGAdapter=default,ZigbeeMode=default" -DESP32 -DCORE_DEBUG_LEVEL=0 -DARDUINO_RUNNING_CORE=1 -DARDUINO_EVENT_RUNNING_CORE=1 -DARDUINO_USB_MODE=0 -DARDUINO_USB_CDC_ON_BOOT=1 -DARDUINO_USB_MSC_ON_BOOT=0 -DARDUINO_USB_DFU_ON_BOOT=0 @/Users/syso/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32s3/flags/defines -I/Users/syso/Documents/Arduino/miditest2 -iprefix /Users/syso/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32s3/include/ @/Users/syso/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32s3/flags/includes -I/Users/syso/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32s3/qio_qspi/include -I/Users/syso/Library/Arduino15/packages/esp32/hardware/esp32/3.0.2/cores/esp32 -I/Users/syso/Library/Arduino15/packages/esp32/hardware/esp32/3.0.2/variants/esp32s3 -I/Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src -I/Users/syso/Library/Arduino15/packages/esp32/hardware/esp32/3.0.2/libraries/SPI/src @/private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/build_opt.h @/private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/file_opts /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/sketch/miditest2.ino.cpp -o /dev/null
Alternatives for MIDI.h: [MIDI [email protected]]
ResolveLibrary(MIDI.h)
-> candidates: [MIDI [email protected]]
/Users/syso/Library/Arduino15/packages/esp32/tools/esp-xs3/2302/bin/xtensa-esp32s3-elf-g++ -c @/Users/syso/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32s3/flags/cpp_flags -w -Os -w -x c++ -E -CC -DF_CPU=240000000L -DARDUINO=10607 -DARDUINO_ESP32S3_DEV -DARDUINO_ARCH_ESP32 -DARDUINO_BOARD="ESP32S3_DEV" -DARDUINO_VARIANT="esp32s3" -DARDUINO_PARTITION_default -DARDUINO_HOST_OS="macosx" -DARDUINO_FQBN="esp32:esp32:esp32s3:UploadSpeed=921600,USBMode=default,CDCOnBoot=cdc,MSCOnBoot=default,DFUOnBoot=default,UploadMode=default,CPUFreq=240,FlashMode=qio,FlashSize=4M,PartitionScheme=default,DebugLevel=none,PSRAM=disabled,LoopCore=1,EventsCore=1,EraseFlash=none,JTAGAdapter=default,ZigbeeMode=default" -DESP32 -DCORE_DEBUG_LEVEL=0 -DARDUINO_RUNNING_CORE=1 -DARDUINO_EVENT_RUNNING_CORE=1 -DARDUINO_USB_MODE=0 -DARDUINO_USB_CDC_ON_BOOT=1 -DARDUINO_USB_MSC_ON_BOOT=0 -DARDUINO_USB_DFU_ON_BOOT=0 @/Users/syso/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32s3/flags/defines -I/Users/syso/Documents/Arduino/miditest2 -iprefix /Users/syso/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32s3/include/ @/Users/syso/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32s3/flags/includes -I/Users/syso/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32s3/qio_qspi/include -I/Users/syso/Library/Arduino15/packages/esp32/hardware/esp32/3.0.2/cores/esp32 -I/Users/syso/Library/Arduino15/packages/esp32/hardware/esp32/3.0.2/variants/esp32s3 -I/Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src -I/Users/syso/Library/Arduino15/packages/esp32/hardware/esp32/3.0.2/libraries/SPI/src -I/Users/syso/Documents/Arduino/libraries/MIDI_Library/src @/private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/build_opt.h @/private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/file_opts /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/sketch/miditest2.ino.cpp -o /dev/null
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/arduino/Adafruit_TinyUSB_API.cpp
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/arduino/Adafruit_USBD_CDC.cpp
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/arduino/Adafruit_USBD_Device.cpp
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/arduino/Adafruit_USBD_Interface.cpp
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/arduino/Adafruit_USBH_Host.cpp
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/arduino/cdc/Adafruit_USBH_CDC.cpp
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/arduino/hid/Adafruit_USBD_HID.cpp
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/arduino/midi/Adafruit_USBD_MIDI.cpp
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/arduino/msc/Adafruit_USBD_MSC.cpp
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/arduino/msc/Adafruit_USBH_MSC.cpp
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/arduino/ports/ch32/Adafruit_TinyUSB_ch32.cpp
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/arduino/ports/esp32/Adafruit_TinyUSB_esp32.cpp
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/arduino/ports/nrf/Adafruit_TinyUSB_nrf.cpp
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/arduino/ports/rp2040/Adafruit_TinyUSB_rp2040.cpp
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/arduino/ports/samd/Adafruit_TinyUSB_samd.cpp
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/arduino/video/Adafruit_USBD_Video.cpp
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/arduino/webusb/Adafruit_USBD_WebUSB.cpp
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/class/audio/audio_device.c
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/class/bth/bth_device.c
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/class/cdc/cdc_device.c
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/class/cdc/cdc_host.c
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/class/dfu/dfu_device.c
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/class/dfu/dfu_rt_device.c
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/class/hid/hid_device.c
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/class/hid/hid_host.c
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/class/midi/midi_device.c
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/class/msc/msc_device.c
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/class/msc/msc_host.c
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/class/net/ecm_rndis_device.c
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/class/net/ncm_device.c
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/class/usbtmc/usbtmc_device.c
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/class/vendor/vendor_device.c
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/class/video/video_device.c
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/common/tusb_fifo.c
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/device/usbd.c
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/device/usbd_control.c
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/host/hub.c
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/host/usbh.c
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/portable/analog/max3421/hcd_max3421.c
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/portable/microchip/samd/dcd_samd.c
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/portable/nordic/nrf5x/dcd_nrf5x.c
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/portable/raspberrypi/pio_usb/dcd_pio_usb.c
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/portable/raspberrypi/pio_usb/hcd_pio_usb.c
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/portable/raspberrypi/rp2040/dcd_rp2040.c
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/portable/raspberrypi/rp2040/hcd_rp2040.c
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/portable/raspberrypi/rp2040/rp2040_usb.c
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/portable/st/stm32_fsdev/dcd_stm32_fsdev.c
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/portable/synopsys/dwc2/dcd_dwc2.c
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/portable/wch/dcd_ch32_usbfs.c
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/portable/wch/dcd_ch32_usbhs.c
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src/tusb.c
Using cached library dependencies for file: /Users/syso/Library/Arduino15/packages/esp32/hardware/esp32/3.0.2/libraries/SPI/src/SPI.cpp
Using cached library dependencies for file: /Users/syso/Documents/Arduino/libraries/MIDI_Library/src/MIDI.cpp
Generating function prototypes...
/Users/syso/Library/Arduino15/packages/esp32/tools/esp-xs3/2302/bin/xtensa-esp32s3-elf-g++ -c @/Users/syso/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32s3/flags/cpp_flags -w -Os -w -x c++ -E -CC -DF_CPU=240000000L -DARDUINO=10607 -DARDUINO_ESP32S3_DEV -DARDUINO_ARCH_ESP32 -DARDUINO_BOARD="ESP32S3_DEV" -DARDUINO_VARIANT="esp32s3" -DARDUINO_PARTITION_default -DARDUINO_HOST_OS="macosx" -DARDUINO_FQBN="esp32:esp32:esp32s3:UploadSpeed=921600,USBMode=default,CDCOnBoot=cdc,MSCOnBoot=default,DFUOnBoot=default,UploadMode=default,CPUFreq=240,FlashMode=qio,FlashSize=4M,PartitionScheme=default,DebugLevel=none,PSRAM=disabled,LoopCore=1,EventsCore=1,EraseFlash=none,JTAGAdapter=default,ZigbeeMode=default" -DESP32 -DCORE_DEBUG_LEVEL=0 -DARDUINO_RUNNING_CORE=1 -DARDUINO_EVENT_RUNNING_CORE=1 -DARDUINO_USB_MODE=0 -DARDUINO_USB_CDC_ON_BOOT=1 -DARDUINO_USB_MSC_ON_BOOT=0 -DARDUINO_USB_DFU_ON_BOOT=0 @/Users/syso/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32s3/flags/defines -I/Users/syso/Documents/Arduino/miditest2 -iprefix /Users/syso/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32s3/include/ @/Users/syso/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32s3/flags/includes -I/Users/syso/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32s3/qio_qspi/include -I/Users/syso/Library/Arduino15/packages/esp32/hardware/esp32/3.0.2/cores/esp32 -I/Users/syso/Library/Arduino15/packages/esp32/hardware/esp32/3.0.2/variants/esp32s3 -I/Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src -I/Users/syso/Library/Arduino15/packages/esp32/hardware/esp32/3.0.2/libraries/SPI/src -I/Users/syso/Documents/Arduino/libraries/MIDI_Library/src @/private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/build_opt.h @/private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/file_opts /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/sketch/miditest2.ino.cpp -o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/2909993989/sketch_merged.cpp
/Users/syso/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/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/2909993989/sketch_merged.cpp
Compiling sketch...
/Users/syso/Library/Arduino15/packages/esp32/tools/esp-xs3/2302/bin/xtensa-esp32s3-elf-g++ -MMD -c @/Users/syso/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32s3/flags/cpp_flags -w -Os -DF_CPU=240000000L -DARDUINO=10607 -DARDUINO_ESP32S3_DEV -DARDUINO_ARCH_ESP32 "-DARDUINO_BOARD="ESP32S3_DEV"" "-DARDUINO_VARIANT="esp32s3"" -DARDUINO_PARTITION_default "-DARDUINO_HOST_OS="macosx"" "-DARDUINO_FQBN="esp32:esp32:esp32s3:UploadSpeed=921600,USBMode=default,CDCOnBoot=cdc,MSCOnBoot=default,DFUOnBoot=default,UploadMode=default,CPUFreq=240,FlashMode=qio,FlashSize=4M,PartitionScheme=default,DebugLevel=none,PSRAM=disabled,LoopCore=1,EventsCore=1,EraseFlash=none,JTAGAdapter=default,ZigbeeMode=default"" -DESP32 -DCORE_DEBUG_LEVEL=0 -DARDUINO_RUNNING_CORE=1 -DARDUINO_EVENT_RUNNING_CORE=1 -DARDUINO_USB_MODE=0 -DARDUINO_USB_CDC_ON_BOOT=1 -DARDUINO_USB_MSC_ON_BOOT=0 -DARDUINO_USB_DFU_ON_BOOT=0 @/Users/syso/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32s3/flags/defines -I/Users/syso/Documents/Arduino/miditest2 -iprefix /Users/syso/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32s3/include/ @/Users/syso/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32s3/flags/includes -I/Users/syso/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32s3/qio_qspi/include -I/Users/syso/Library/Arduino15/packages/esp32/hardware/esp32/3.0.2/cores/esp32 -I/Users/syso/Library/Arduino15/packages/esp32/hardware/esp32/3.0.2/variants/esp32s3 -I/Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library/src -I/Users/syso/Library/Arduino15/packages/esp32/hardware/esp32/3.0.2/libraries/SPI/src -I/Users/syso/Documents/Arduino/libraries/MIDI_Library/src @/private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/build_opt.h @/private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/file_opts /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/sketch/miditest2.ino.cpp -o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/sketch/miditest2.ino.cpp.o
Compiling libraries...
Compiling library "Adafruit TinyUSB Library"
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/portable/microchip/samd/dcd_samd.c.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/arduino/Adafruit_USBD_CDC.cpp.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/arduino/ports/ch32/Adafruit_TinyUSB_ch32.cpp.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/class/audio/audio_device.c.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/class/net/ncm_device.c.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/arduino/ports/rp2040/Adafruit_TinyUSB_rp2040.cpp.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/class/bth/bth_device.c.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/arduino/ports/esp32/Adafruit_TinyUSB_esp32.cpp.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/arduino/msc/Adafruit_USBH_MSC.cpp.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/class/vendor/vendor_device.c.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/arduino/ports/samd/Adafruit_TinyUSB_samd.cpp.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/portable/nordic/nrf5x/dcd_nrf5x.c.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/class/hid/hid_host.c.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/arduino/ports/nrf/Adafruit_TinyUSB_nrf.cpp.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/class/midi/midi_device.c.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/class/net/ecm_rndis_device.c.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/device/usbd_control.c.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/class/usbtmc/usbtmc_device.c.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/host/hub.c.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/class/msc/msc_host.c.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/class/dfu/dfu_rt_device.c.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/class/cdc/cdc_device.c.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/class/cdc/cdc_host.c.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/class/hid/hid_device.c.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/arduino/cdc/Adafruit_USBH_CDC.cpp.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/common/tusb_fifo.c.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/arduino/Adafruit_USBD_Interface.cpp.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/arduino/midi/Adafruit_USBD_MIDI.cpp.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/class/dfu/dfu_device.c.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/portable/st/stm32_fsdev/dcd_stm32_fsdev.c.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/class/video/video_device.c.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/arduino/msc/Adafruit_USBD_MSC.cpp.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/portable/raspberrypi/rp2040/hcd_rp2040.c.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/portable/raspberrypi/pio_usb/hcd_pio_usb.c.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/arduino/hid/Adafruit_USBD_HID.cpp.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/arduino/video/Adafruit_USBD_Video.cpp.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/portable/raspberrypi/pio_usb/dcd_pio_usb.c.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/portable/wch/dcd_ch32_usbhs.c.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/portable/raspberrypi/rp2040/dcd_rp2040.c.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/arduino/Adafruit_TinyUSB_API.cpp.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/portable/wch/dcd_ch32_usbfs.c.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/portable/raspberrypi/rp2040/rp2040_usb.c.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/portable/analog/max3421/hcd_max3421.c.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/arduino/Adafruit_USBH_Host.cpp.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/arduino/Adafruit_USBD_Device.cpp.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/arduino/webusb/Adafruit_USBD_WebUSB.cpp.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/class/msc/msc_device.c.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/host/usbh.c.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/portable/synopsys/dwc2/dcd_dwc2.c.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/device/usbd.c.o
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/tusb.c.o
Compiling library "SPI"
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/SPI/SPI.cpp.o
Compiling library "MIDI Library"
Using previously compiled file: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/MIDI_Library/MIDI.cpp.o
Compiling core...
/usr/bin/env bash -c "echo -DARDUINO_CORE_BUILD > '/private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/file_opts'"
Using precompiled core: /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/cores/b4e4949b4e3545f535ba628423a8f954/core.a
/usr/bin/env bash -c ": > '/private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/file_opts'"
Linking everything together...
/Users/syso/Library/Arduino15/packages/esp32/tools/esp-xs3/2302/bin/xtensa-esp32s3-elf-g++ @/Users/syso/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32s3/flags/ld_flags @/Users/syso/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32s3/flags/ld_scripts -Wl,--Map=/private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/miditest2.ino.map -L/Users/syso/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32s3/lib -L/Users/syso/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32s3/ld -L/Users/syso/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32s3/qio_qspi -Wl,--wrap=esp_panic_handler -Wl,--start-group /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/sketch/miditest2.ino.cpp.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/arduino/Adafruit_TinyUSB_API.cpp.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/arduino/Adafruit_USBD_CDC.cpp.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/arduino/Adafruit_USBD_Device.cpp.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/arduino/Adafruit_USBD_Interface.cpp.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/arduino/Adafruit_USBH_Host.cpp.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/arduino/cdc/Adafruit_USBH_CDC.cpp.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/arduino/hid/Adafruit_USBD_HID.cpp.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/arduino/midi/Adafruit_USBD_MIDI.cpp.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/arduino/msc/Adafruit_USBD_MSC.cpp.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/arduino/msc/Adafruit_USBH_MSC.cpp.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/arduino/ports/ch32/Adafruit_TinyUSB_ch32.cpp.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/arduino/ports/esp32/Adafruit_TinyUSB_esp32.cpp.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/arduino/ports/nrf/Adafruit_TinyUSB_nrf.cpp.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/arduino/ports/rp2040/Adafruit_TinyUSB_rp2040.cpp.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/arduino/ports/samd/Adafruit_TinyUSB_samd.cpp.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/arduino/video/Adafruit_USBD_Video.cpp.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/arduino/webusb/Adafruit_USBD_WebUSB.cpp.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/class/audio/audio_device.c.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/class/bth/bth_device.c.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/class/cdc/cdc_device.c.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/class/cdc/cdc_host.c.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/class/dfu/dfu_device.c.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/class/dfu/dfu_rt_device.c.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/class/hid/hid_device.c.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/class/hid/hid_host.c.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/class/midi/midi_device.c.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/class/msc/msc_device.c.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/class/msc/msc_host.c.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/class/net/ecm_rndis_device.c.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/class/net/ncm_device.c.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/class/usbtmc/usbtmc_device.c.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/class/vendor/vendor_device.c.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/class/video/video_device.c.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/common/tusb_fifo.c.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/device/usbd.c.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/device/usbd_control.c.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/host/hub.c.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/host/usbh.c.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/portable/analog/max3421/hcd_max3421.c.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/portable/microchip/samd/dcd_samd.c.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/portable/nordic/nrf5x/dcd_nrf5x.c.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/portable/raspberrypi/pio_usb/dcd_pio_usb.c.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/portable/raspberrypi/pio_usb/hcd_pio_usb.c.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/portable/raspberrypi/rp2040/dcd_rp2040.c.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/portable/raspberrypi/rp2040/hcd_rp2040.c.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/portable/raspberrypi/rp2040/rp2040_usb.c.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/portable/st/stm32_fsdev/dcd_stm32_fsdev.c.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/portable/synopsys/dwc2/dcd_dwc2.c.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/portable/wch/dcd_ch32_usbfs.c.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/portable/wch/dcd_ch32_usbhs.c.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/Adafruit_TinyUSB_Library/tusb.c.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/SPI/SPI.cpp.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/libraries/MIDI_Library/MIDI.cpp.o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/cores/b4e4949b4e3545f535ba628423a8f954/core.a @/Users/syso/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32s3/flags/ld_libs -Wl,--end-group -Wl,-EL -o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/miditest2.ino.elf
/Users/syso/Library/Arduino15/packages/esp32/tools/esptool_py/4.6/esptool --chip esp32s3 elf2image --flash_mode dio --flash_freq 80m --flash_size 4MB --elf-sha256-offset 0xb0 -o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/miditest2.ino.bin /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/miditest2.ino.elf
esptool.py v4.6
Creating esp32s3 image...
Merged 2 ELF sections
Successfully created esp32s3 image.
python3 /Users/syso/Library/Arduino15/packages/esp32/hardware/esp32/3.0.2/tools/gen_esp32part.py -q /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/partitions.csv /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/miditest2.ino.partitions.bin
/usr/bin/env bash -c "[ ! -d "/private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C"/libraries/Insights ] || python3 "/Users/syso/Library/Arduino15/packages/esp32/hardware/esp32/3.0.2"/tools/gen_insights_package.py /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C miditest2.ino "/Users/syso/Documents/Arduino/miditest2""
/usr/bin/env bash -c "[ ! -d "/private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C"/libraries/ESP_SR ] || [ ! -f "/Users/syso/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32s3"/esp_sr/srmodels.bin ] || cp -f "/Users/syso/Library/Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-bd2b9390ef/esp32s3"/esp_sr/srmodels.bin "/private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C"/srmodels.bin"
/Users/syso/Library/Arduino15/packages/esp32/tools/esptool_py/4.6/esptool --chip esp32s3 merge_bin -o /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/miditest2.ino.merged.bin --fill-flash-size 4MB --flash_mode keep --flash_freq keep --flash_size keep 0x0 /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/miditest2.ino.bootloader.bin 0x8000 /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/miditest2.ino.partitions.bin 0xe000 /Users/syso/Library/Arduino15/packages/esp32/hardware/esp32/3.0.2/tools/partitions/boot_app0.bin 0x10000 /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/miditest2.ino.bin
esptool.py v4.6
Wrote 0x400000 bytes to file /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/miditest2.ino.merged.bin, ready to flash to offset 0x0

Using library Adafruit TinyUSB Library at version 3.3.1 in folder: /Users/syso/Documents/Arduino/libraries/Adafruit_TinyUSB_Library
Using library SPI at version 2.0.0 in folder: /Users/syso/Library/Arduino15/packages/esp32/hardware/esp32/3.0.2/libraries/SPI
Using library MIDI Library at version 5.0.2 in folder: /Users/syso/Documents/Arduino/libraries/MIDI_Library
/Users/syso/Library/Arduino15/packages/esp32/tools/esp-xs3/2302/bin/xtensa-esp32s3-elf-size -A /private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/miditest2.ino.elf
Sketch uses 339397 bytes (25%) of program storage space. Maximum is 1310720 bytes.
Global variables use 31160 bytes (9%) of dynamic memory, leaving 296520 bytes for local variables. Maximum is 327680 bytes.
"/Users/syso/Library/Arduino15/packages/esp32/tools/esptool_py/4.6/esptool" --chip esp32s3 --port "/dev/cu.usbmodem1431101" --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode keep --flash_freq keep --flash_size keep 0x0 "/private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/miditest2.ino.bootloader.bin" 0x8000 "/private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/miditest2.ino.partitions.bin" 0xe000 "/Users/syso/Library/Arduino15/packages/esp32/hardware/esp32/3.0.2/tools/partitions/boot_app0.bin" 0x10000 "/private/var/folders/d1/_swvrzs96nz_2q6qlwz9mqmr0000gn/T/arduino/sketches/FB9221E59997D8595D2C277B1201CC2C/miditest2.ino.bin"
esptool.py v4.6
Serial port /dev/cu.usbmodem1431101
Connecting...
Chip is ESP32-S3 (revision v0.2)
Features: WiFi, BLE
Crystal is 40MHz
MAC: 64:e8:33:60:7a:cc
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Flash will be erased from 0x00000000 to 0x00003fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00010000 to 0x00062fff...
Compressed 14880 bytes to 10569...
Writing at 0x00000000... (100 %)
Wrote 14880 bytes (10569 compressed) at 0x00000000 in 0.2 seconds (effective 549.5 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 146...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (146 compressed) at 0x00008000 in 0.0 seconds (effective 624.0 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.1 seconds (effective 877.4 kbit/s)...
Hash of data verified.
Compressed 339760 bytes to 196150...
Writing at 0x00010000... (8 %)
Writing at 0x0001be49... (16 %)
Writing at 0x00026fb6... (25 %)
Writing at 0x0002c817... (33 %)
Writing at 0x000323df... (41 %)
Writing at 0x00037563... (50 %)
Writing at 0x0003cda2... (58 %)
Writing at 0x0004256e... (66 %)
Writing at 0x00047a38... (75 %)
Writing at 0x0004cfd6... (83 %)
Writing at 0x000528c1... (91 %)
Writing at 0x0005bdf9... (100 %)
Wrote 339760 bytes (196150 compressed) at 0x00010000 in 2.2 seconds (effective 1249.3 kbit/s)...
Hash of data verified.

What happened ?

If I am sending data to the USB Device, i sometimes see a flood of random traffic coming back from the TinyUSB device, even though I have no function defined to send data back and only reading.

How to reproduce ?

  1. Compile the attached the sketch
  2. Upload it to an ESP32-S3 board
  3. Send a lot of MIDI messages to the device - first you will see only events to the device and then it will start flooding the USB MIDI.

Debug Log

No response

Screenshots

Screenshot 2024-06-29 at 20 00 46

Sending one Note On, Note Off sequence from the computer results in the same issue:
Screenshot 2024-06-29 at 20 04 40

@DatanoiseTV DatanoiseTV added the Bug Something isn't working label Jun 29, 2024
@DatanoiseTV
Copy link
Author

It seems to be a bug in the MIDI library. When working with raw tud_midi_ API from TinyUSB, it works as expected.

@hathach
Copy link
Member

hathach commented Aug 8, 2024

please follow the template to attached compile log as txt for readibility

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants