Forum Rule: Always post complete source code & details to reproduce any issue!
Page 1 of 2 1 2 LastLast
Results 1 to 25 of 29

Thread: HOw can I read/write files on Teensy 3.6's SD card from my PC?

  1. #1
    Member
    Join Date
    Jul 2019
    Location
    United Kingdom
    Posts
    21

    HOw can I read/write files on Teensy 3.6's SD card from my PC?

    Hi, I've bought over 20 Teensy 3.6s and am planning my next project.

    I need to be able to read and write files that are on my Teensy's SD card using the Teensy's on-board microUSB socket connected to my Windows 10 PC. The sketch running on my Teensy can happily create and read files itself but I want to be able to see them remotely. Is this possible, or do I have to copy them into Teensy RAM and access this remotely instead?

    I thought that selecting USB type: RAW HID might do something but my PC sees nothing. I was hoping to have a USB drive visible from Windows...

    I found an old thread about this but it involved changing hardware config files and looked a bit scary. Isn't there a simple way?

    Many thanks

  2. #2
    You need to change USB type to MTP (EXPERIMENTAL)
    in Teensyduino, and add a few lines of code at the beginning of your sketch.
    If you search PJRC for MTP RESPONDER you will find details.
    There seem to be some caveats, but I find it works quite well in my project.

  3. #3
    Member
    Join Date
    Jul 2019
    Location
    United Kingdom
    Posts
    21
    Yeah that's the scary way I referred to...
    So I just tried it.
    1. compiling the blinky example gives:
    Arduino: 1.8.9 (Windows 10), TD: 1.46, Board: "Teensy 3.6, MTP Disk (Experimental), 180 MHz, Faster, US English"

    Build options changed, rebuilding all
    In file included from F:\Documents\Arduino\libraries\MTP-master\examples\MTP_blinky\MTP_blinky.ino:7:0:

    F:\Documents\Arduino\libraries\MTP-master/MTP.h: In member function 'virtual uint32_t MTPStorage_SD::Create(uint32_t, bool, const char*)':

    F:\Documents\Arduino\libraries\MTP-master/MTP.h:375:38: warning: large integer implicitly truncated to unsigned type [-Woverflow]

    OpenFileByIndex(ret, FILE_WRITE);

    ^

    exec: "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/{build.command.linker}": file does not exist
    Error compiling for board Teensy 3.6.

    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.


    and compiling the sketch I actually want to use - and that normally works perfectly - gives
    Arduino: 1.8.9 (Windows 10), TD: 1.46, Board: "Teensy 3.6, Serial, 180 MHz, Faster, US English"

    exec: "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/{build.command.linker}": file does not exist
    Error compiling for board Teensy 3.6.

    I followed the instrucions on Github and both boards.txt and platform.txt are where the instructions say they should be. If I revert to my original boards.txt then my program compiles again.

  4. #4
    Member
    Join Date
    Jul 2019
    Location
    United Kingdom
    Posts
    21
    With the original boards.txt, the blinky compiles and runs on the Teensy but Windows 10 sees nothing

    Windows device manager finds a new USB Composite DEvice but shows it cannot start. STATUS_DEVICE_DATA_ERROR

  5. #5
    Member
    Join Date
    Jul 2019
    Location
    United Kingdom
    Posts
    21
    in mtp.h if I replace

    void OpenFileByIndex(uint32_t i, uint8_t mode = O_RDONLY) {

    with


    void OpenFileByIndex(uint32_t i, oflag_t mode = O_RDONLY) {

    it works and Windows can see my files! Woooooo!

    Now all I've got to do is out the clever MTP stuff in my sketch without breaking it.....not going well so far

  6. #6
    Member
    Join Date
    Jul 2019
    Location
    United Kingdom
    Posts
    21
    OK now I've got my sketch to compile but I seem to be stuck in USB: MTP mode which means I can't use the serial port for diagnostics or use Teensy loader to download code without pushing the button on the Teensy. My customers can't get at the button and I can't debug without serial. And customers can't do a firmware update without serial mode. Is there a way round this?

  7. #7
    Yes and no.
    As far as I am aware (I'm just a novice though) You cannot have MTP and Serial. Get MTP in your code and working, then comment out / compile with serial for your continued development with debugging.
    Your customers should not need serial? so obviously you ship with firmware configured for MTP.
    You do not need to press the button to upload firmware even if it is in MTP mode.
    This is how my product/project is set up. I had issues with my data-logging code while running MTP, but solved this by disabling MTP interupts when logging is started and re-eneabling them when logging ends. I do not need to give my customer USB access to the files on the SD card while logging.

  8. #8
    Member
    Join Date
    Jul 2019
    Location
    United Kingdom
    Posts
    21
    Thanks Darcy, yes that's the conclusion I'm coming to as well.
    I don't know if something has screwed my Teensy but it won't load any sketches at all now without pressing its button. I've now tried the TyUpdater tool instead and this works fine without the button, and going back to Teensy Uploader works again so I guess it corrected something?

    Is there a way to have the extra code (which is spread between headers, setup and main) easily switchable by having it in a separate file for example, so that adding/removing it is easier?

    Thanks

  9. #9
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    23,014
    Quote Originally Posted by sw_hunt View Post
    Is there a way to have the extra code (which is spread between headers, setup and main) easily switchable by having it in a separate file for example, so that adding/removing it is easier?
    Yes, there are ways...

    Would they be easier? No, probably not.

  10. #10
    Quote Originally Posted by sw_hunt View Post
    Thanks Darcy, yes that's the conclusion I'm coming to as well.
    I don't know if something has screwed my Teensy but it won't load any sketches at all now without pressing its button. I've now tried the TyUpdater tool instead and this works fine without the button, and going back to Teensy Uploader works again so I guess it corrected something?

    Is there a way to have the extra code (which is spread between headers, setup and main) easily switchable by having it in a separate file for example, so that adding/removing it is easier?

    Thanks
    #define DEBUG


    #ifdef DEBUG
    . Some code here
    #endif

    Comment out the #define DEBUG when compiling for end users.

  11. #11
    Maybe not best idea, but a another approach would be to write a PC program that can transfer files trough the usb serial interface to your teensy and vice versa.
    Then you can debug with serial.print, transfer files and upload without using button.

    Best regards
    King of bad solutions

  12. #12
    Member
    Join Date
    Jul 2019
    Location
    United Kingdom
    Posts
    21
    Now I'm able to access filed on my Teensy's SD card from my PC, is there a way I can access them from a Mac? Thanks

  13. #13
    Senior Member
    Join Date
    Jul 2014
    Posts
    2,898
    Quote Originally Posted by Darcy View Post
    Yes and no.
    As far as I am aware (I'm just a novice though) You cannot have MTP and Serial. Get MTP in your code and working, then comment out / compile with serial for your continued development with debugging.
    Only partially correct. when using MTP you get Seremu which simulates Serial over HID. Using Arduino, you have same functionality as with Serial. On Linux, you simply can cat end echo to the HID port. Not sure about HatingDevelopers MAC.

    When replacing the core usb-files with the one provided with MTP, you should even get real Serial (However, not tried myself)

  14. #14
    Will the MTP disk experimental port work with a teensy 3.2? Are there any simplified instructions on implementing this?

    "in Teensyduino, and add a few lines of code at the beginning of your sketch."

    What lines are needed?

  15. #15
    Senior Member
    Join Date
    Jul 2014
    Posts
    2,898
    Quote Originally Posted by Fluxanode View Post
    Will the MTP disk experimental port work with a teensy 3.2? Are there any simplified instructions on implementing this?
    See other thread on MTP responder!

  16. #16
    WMXZ:
    Thanks! I did read that thread and now I'm still confused on the setup to implement. Is there a simple how to on the setup or can you provide one? I know you are probability busy but I do appreciate any help.

    Thanks again.
    Last edited by Fluxanode; 10-22-2020 at 06:51 PM.

  17. #17
    Senior Member
    Join Date
    Jul 2014
    Posts
    2,898
    Quote Originally Posted by Fluxanode View Post
    WMXZ:
    Thanks! I did read that thread and now I'm still confused on the setup to implement. Is there a simple how to on the setup or can you provide one? I know you are probability busy but I do appreciate any help.

    Thanks again.
    Did you try to use one of the examples and what exactly is your problem.
    Did you read and follow the readme and what did not work?
    Finally, what Library do you wanted to use? (give us a link).
    Your generic question does not help use to understand your problems.
    If you only mean if there are some separate HOW TO pages, NO, AFAIK.

  18. #18
    I was able to run the hubbe mpt.ino example with no problems. So i have tried to move forward with the yoonghm library and run the blinky example with the lib installed following the readme. It won't compile. I am getting these messages from the compiler:


    Arduino: 1.8.13 (Windows 10), TD: 1.53, Board: "Teensy 3.2 / 3.1, MTP Disk (Experimental), 96 MHz (overclock), Faster, Czech"


    In file included from D:\ChuckW\Documents\Microcontrollers\Arduino\Teens y\MTP\MTP-master\MTP-master\examples\MTP_blinky\MTP_blinky.ino:15:0:

    D:\ChuckW\Arduino\libraries\MTP-master/MTP.h:37:1: error: 'SdFatSdioEX' does not name a type

    SdFatSdioEX SD;

    ^

    D:\ChuckW\Arduino\libraries\MTP-master/MTP.h: In member function 'virtual uint64_t MTPStorage_SD::size()':

    D:\ChuckW\Arduino\libraries\MTP-master/MTP.h:110:39: error: 'SD' was not declared in this scope

    return (uint64_t)512 * (uint64_t)SD.clusterCount() * (uint64_t)SD.vol()->blocksPerCluster();

    ^

    D:\ChuckW\Arduino\libraries\MTP-master/MTP.h: In member function 'virtual uint64_t MTPStorage_SD::free()':

    D:\ChuckW\Arduino\libraries\MTP-master/MTP.h:114:25: error: 'SD' was not declared in this scope

    uint64_t volFree = SD.vol()->freeClusterCount();

    ^

    D:\ChuckW\Arduino\libraries\MTP-master/MTP.h: In member function 'void MTPStorage_SD::OpenIndex()':

    D:\ChuckW\Arduino\libraries\MTP-master/MTP.h:122:14: error: 'SD' was not declared in this scope

    index_ = SD.open("mtpindex.dat", FILE_WRITE);

    ^

    D:\ChuckW\Arduino\libraries\MTP-master/MTP.h: In member function 'void MTPStorage_SD::OpenFileByIndex(uint32_t, uint8_t)':

    D:\ChuckW\Arduino\libraries\MTP-master/MTP.h:174:10: error: 'SD' was not declared in this scope

    f_ = SD.open(filename, mode);

    ^

    D:\ChuckW\Arduino\libraries\MTP-master/MTP.h: In member function 'void MTPStorage_SD::GenerateIndex()':

    D:\ChuckW\Arduino\libraries\MTP-master/MTP.h:189:5: error: 'SD' was not declared in this scope

    SD.remove("mtpindex.dat");

    ^

    D:\ChuckW\Arduino\libraries\MTP-master/MTP.h: In member function 'virtual bool MTPStorage_SD:eleteObject(uint32_t)':

    D:\ChuckW\Arduino\libraries\MTP-master/MTP.h:322:17: error: 'SD' was not declared in this scope

    success = SD.rmdir(filename);

    ^

    D:\ChuckW\Arduino\libraries\MTP-master/MTP.h:324:17: error: 'SD' was not declared in this scope

    success = SD.remove(filename);

    ^

    D:\ChuckW\Arduino\libraries\MTP-master/MTP.h: In member function 'virtual uint32_t MTPStorage_SD::Create(uint32_t, bool, const char*)':

    D:\ChuckW\Arduino\libraries\MTP-master/MTP.h:372:7: error: 'SD' was not declared in this scope

    SD.mkdir(filename);

    ^

    D:\ChuckW\Arduino\libraries\MTP-master/MTP.h:375:38: warning: large integer implicitly truncated to unsigned type [-Woverflow]

    OpenFileByIndex(ret, FILE_WRITE);

    ^

    MTP_blinky: In function 'void loop()':

    MTP_blinky:46: error: 'SD' was not declared in this scope

    if (SD.begin()) {

    ^

    In file included from D:\ChuckW\Documents\Microcontrollers\Arduino\Teens y\MTP\MTP-master\MTP-master\examples\MTP_blinky\MTP_blinky.ino:2:0:

    D:\ChuckW\Arduino\libraries\SdFat\src/FreeStack.h: At global scope:

    D:\ChuckW\Arduino\libraries\SdFat\src/FreeStack.h:51:12: warning: 'int FreeStack()' defined but not used [-Wunused-function]

    static int FreeStack() {

    ^

    Multiple libraries were found for "BlockDriver.h"

    Used: D:\ChuckW\Arduino\libraries\SdFat

    Not used: D:\ChuckW\Arduino\libraries\SdFat_-_Adafruit_Fork

    'SD' was not declared in this scope

    ************************************************** *

    Blinky.ino code

    Code:
    #include <BlockDriver.h>
    #include <FreeStack.h>
    #include <MinimumSerial.h>
    #include <SdFat.h>
    #include <SdFatConfig.h>
    #include <sdios.h>
    #include <SysCall.h>
    
    /*
      This example demonstrates MTP with blinky using systick interrupt.
    
      This example tests MTP and SdFat
    */
    
    #include <MTP.h>
    
    MTPStorage_SD storage;
    MTPD          mtpd(&storage);
    
    
    volatile int  status = 0;
    volatile bool sdfound = 0;
    volatile int  count = 1;
    
    void rtc_seconds_isr() {
      if (count-- == 0) {
        digitalWrite(LED_BUILTIN, status);
        Serial.println("I should be commented out");
        status = !status;
        if (sdfound)
          count = 2;
        else
          count = 1;
      }
    }
    
    void setup() {
      Serial.begin(19200);
      pinMode(LED_BUILTIN, OUTPUT);
    
      RTC_IER |= 0x10;  // Enable seconds IRQ from RTC peripheral
      NVIC_ENABLE_IRQ(IRQ_RTC_SECOND); // Enable seconds IRS function in NVIC
    }
    
    void loop() {
      if (SD.begin()) {
        sdfound = true;
        mtpd.loop();
      }
      else {
        sdfound = false;
      }
    }

  19. #19
    Senior Member
    Join Date
    Jul 2014
    Posts
    2,898
    So, you are using https://github.com/yoonghm/MTP, right?
    I cannot comment on this, but typically with SdFAT there is a potential conflict with SD (in Teensyduino) both have the same include file (SdFat.h)
    So I would try to remove SD library from Teensyduino.
    If you have problems with https://github.com/WMXZ-EU/MTP_t4, I may help. OK it come from same source but I'm using my own derivative.

  20. #20
    WMXT:

    I removed the SD library from Teensyduino. I removed the yoomhm MYP and installed your MTP_t4. when i tried to compile the example mpt_test.ino i get the following -

    Arduino: 1.8.13 (Windows 10), TD: 1.53, Board: "Teensy 3.2 / 3.1, MTP Disk (Experimental), 96 MHz (overclock), Faster, Czech"


    C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\ChuckW\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\ChuckW\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries D:\ChuckW\Arduino\libraries -fqbn=teensy:avr:teensy31:usb=mtp,speed=96,opt=o2st d,keys=cz-cz -ide-version=10813 -build-path C:\Users\ChuckW\AppData\Local\Temp\arduino_build_4 19946 -warnings=default -build-cache C:\Users\ChuckW\AppData\Local\Temp\arduino_cache_6 78292 -verbose D:\ChuckW\Documents\Microcontrollers\Arduino\Teens y\MTP-t4\MTP_t4-master\examples\mtp-test\mtp-test.ino

    C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\ChuckW\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\ChuckW\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries D:\ChuckW\Arduino\libraries -fqbn=teensy:avr:teensy31:usb=mtp,speed=96,opt=o2st d,keys=cz-cz -ide-version=10813 -build-path C:\Users\ChuckW\AppData\Local\Temp\arduino_build_4 19946 -warnings=default -build-cache C:\Users\ChuckW\AppData\Local\Temp\arduino_cache_6 78292 -verbose D:\ChuckW\Documents\Microcontrollers\Arduino\Teens y\MTP-t4\MTP_t4-master\examples\mtp-test\mtp-test.ino

    Using board 'teensy31' from platform in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr

    Using core 'teensy3' from platform in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr

    Detecting libraries used...

    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -fpermissive -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=153 -DARDUINO=10813 -DARDUINO_TEENSY32 -DF_CPU=96000000 -DUSB_MTPDISK -DLAYOUT_CZECH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teen sy3" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_419946\\sketch\\mtp-test.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE

    Alternatives for MTP.h: [MTP_t4-master@1.0.0-beta.1]

    ResolveLibrary(MTP.h)

    -> candidates: [MTP_t4-master@1.0.0-beta.1]

    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -fpermissive -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=153 -DARDUINO=10813 -DARDUINO_TEENSY32 -DF_CPU=96000000 -DUSB_MTPDISK -DLAYOUT_CZECH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teen sy3" "-ID:\\ChuckW\\Arduino\\libraries\\MTP_t4-master\\src" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_419946\\sketch\\mtp-test.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE

    Alternatives for SdFat.h: [SD@1.2.4]

    ResolveLibrary(SdFat.h)

    -> candidates: [SD@1.2.4]

    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -fpermissive -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=153 -DARDUINO=10813 -DARDUINO_TEENSY32 -DF_CPU=96000000 -DUSB_MTPDISK -DLAYOUT_CZECH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teen sy3" "-ID:\\ChuckW\\Arduino\\libraries\\MTP_t4-master\\src" "-IC:\\Program Files (x86)\\Arduino\\libraries\\SD\\src" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_419946\\sketch\\mtp-test.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE

    Alternatives for Sd2Card.h: []In file included from D:\ChuckW\Arduino\libraries\MTP_t4-master\src/Storage.h:55:0,

    ResolveLibrary(Sd2Card.h)

    -> candidates: []om D:\ChuckW\Arduino\libraries\MTP_t4-master\src/MTP.h:36,

    from D:\ChuckW\Documents\Microcontrollers\Arduino\Teens y\MTP-t4\MTP_t4-master\examples\mtp-test\mtp-test.ino:6:

    C:\Program Files (x86)\Arduino\libraries\SD\src/SdFat.h:29:21: fatal error: Sd2Card.h: No such file or directory

    compilation terminated.


    Using library MTP_t4-master at version 1.0.0-beta.1 in folder: D:\ChuckW\Arduino\libraries\MTP_t4-master

    Using library SD at version 1.2.4 in folder: C:\Program Files (x86)\Arduino\libraries\SD

    Error compiling for board Teensy 3.2 / 3.1.

    Now I seem to be missing sd2card.h?

  21. #21
    Next I noticed that the teensyduino version had sc2card.h and sc2card.cpp so i replaced SD lib with the teensyduino version and now i get

    ResolveLibrary(SdFat.h):\ChuckW\Arduino\libraries\ MTP_t4-master\src/MTP.h:36:0,

    -> candidates: [] from D:\ChuckW\Documents\Microcontrollers\Arduino\Teens y\MTP-t4\MTP_t4-master\examples\mtp-test\mtp-test.ino:6:

    D:\ChuckW\Arduino\libraries\MTP_t4-master\src/Storage.h:55:21: fatal error: SdFat.h: No such file or directory
    compilation terminated.

    Using library MTP_t4-master at version 1.0.0-beta.1 in folder: D:\ChuckW\Arduino\libraries\MTP_t4-master
    Error compiling for board Teensy 3.2 / 3.1.

    So now i am completely lost in the weeds...
    ready to give up on finding a library

  22. #22
    Senior Member
    Join Date
    Dec 2013
    Location
    East Stroudsburg PA.
    Posts
    290
    So now i am completely lost in the weeds...
    ready to give up on finding a library
    What you need is Bill Greiman`s library SdFat-beta Version 2.

    It's been awhile since I use MTP but I had to compile the code at 450 MHz CPU speed in order for this to work on Windows 10 and TENSY 4.1.
    Last edited by Chris O.; 10-27-2020 at 03:33 AM. Reason: typo

  23. #23
    Quote Originally Posted by Chris O. View Post
    What you need is Bill Greiman`s library SdFat-beta Version 2.

    It's been awhile since I use MTP but I had to compile the code at 450 MHz CPU speed in order for this to work on Windows 10 and TENSY 4.1.
    Chris, thanks! I am replacing all SD lib's with the SdFat-beta Version 2 to day hope this works

    Thank you again.

  24. #24
    Still not working. I installed SdFat-beta and have it working (verified by running examples)
    I have the MTP_t4-master installed.

    Error message is -

    Alternatives for usb1_mtp.h: []D:\ChuckW\Arduino\libraries\MTP_t4-master\examples\mtp-test\mtp-test.ino:7:24: fatal error: usb1_mtp.h: No such file or directory

    ResolveLibrary(usb1_mtp.h)
    compilation terminated.
    -> candidates: []
    Using library MTP_t4-master at version 1.0.0-beta.1 in folder: D:\ChuckW\Arduino\libraries\MTP_t4-master
    Using library SdFat at version 2.0.0-beta.8 in folder: D:\ChuckW\Arduino\libraries\SdFat
    Using library SPI at version 1.0 in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\SPI
    Error compiling for board Teensy 3.2 / 3.1.

    I cannot find the file it is looking for usb1_mtp.h on my computer

  25. #25
    OK I had to install lib USB2. Didn't realize it was a dependant and that's where the missing usb1_mtp files were.
    Using Example mtp-test.ino from the MTP_4 examples.
    I'm still lost in the weeds but I'll keep digging. Any help appreciated.

    New errors:

    Arduino: 1.8.13 (Windows 10), TD: 1.53, Board: "Teensy 3.2 / 3.1, MTP Disk (Experimental), 96 MHz (overclock), Faster, Czech"


    C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\ChuckW\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\ChuckW\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries D:\ChuckW\Arduino\libraries -fqbn=teensy:avr:teensy31:usb=mtp,speed=96,opt=o2st d,keys=cz-cz -ide-version=10813 -build-path C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993 -warnings=default -build-cache C:\Users\ChuckW\AppData\Local\Temp\arduino_cache_1 35400 -verbose D:\ChuckW\Arduino\libraries\MTP_t4-master\examples\mtp-test\mtp-test.ino

    C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\ChuckW\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\ChuckW\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries D:\ChuckW\Arduino\libraries -fqbn=teensy:avr:teensy31:usb=mtp,speed=96,opt=o2st d,keys=cz-cz -ide-version=10813 -build-path C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993 -warnings=default -build-cache C:\Users\ChuckW\AppData\Local\Temp\arduino_cache_1 35400 -verbose D:\ChuckW\Arduino\libraries\MTP_t4-master\examples\mtp-test\mtp-test.ino

    Using board 'teensy31' from platform in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr

    Using core 'teensy3' from platform in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr

    Detecting libraries used...

    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -fpermissive -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=153 -DARDUINO=10813 -DARDUINO_TEENSY32 -DF_CPU=96000000 -DUSB_MTPDISK -DLAYOUT_CZECH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teen sy3" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\sketch\\mtp-test.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE

    Alternatives for MTP.h: [MTP_t4-master@1.0.0-beta.1]

    ResolveLibrary(MTP.h)

    -> candidates: [MTP_t4-master@1.0.0-beta.1]

    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -fpermissive -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=153 -DARDUINO=10813 -DARDUINO_TEENSY32 -DF_CPU=96000000 -DUSB_MTPDISK -DLAYOUT_CZECH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teen sy3" "-ID:\\ChuckW\\Arduino\\libraries\\MTP_t4-master\\src" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\sketch\\mtp-test.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE

    Alternatives for SdFat.h: [SdFat@2.0.0-beta.8]

    ResolveLibrary(SdFat.h)

    -> candidates: [SdFat@2.0.0-beta.8]

    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -fpermissive -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=153 -DARDUINO=10813 -DARDUINO_TEENSY32 -DF_CPU=96000000 -DUSB_MTPDISK -DLAYOUT_CZECH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teen sy3" "-ID:\\ChuckW\\Arduino\\libraries\\MTP_t4-master\\src" "-ID:\\ChuckW\\Arduino\\libraries\\SdFat\\src" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\sketch\\mtp-test.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE

    Alternatives for SPI.h: [SPI@1.0]

    ResolveLibrary(SPI.h)

    -> candidates: [SPI@1.0]

    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -fpermissive -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=153 -DARDUINO=10813 -DARDUINO_TEENSY32 -DF_CPU=96000000 -DUSB_MTPDISK -DLAYOUT_CZECH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teen sy3" "-ID:\\ChuckW\\Arduino\\libraries\\MTP_t4-master\\src" "-ID:\\ChuckW\\Arduino\\libraries\\SdFat\\src" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\ SPI" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\sketch\\mtp-test.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE

    Alternatives for usb1_mtp.h: [USB2-master@0.9.0-beta.1]

    ResolveLibrary(usb1_mtp.h)

    -> candidates: [USB2-master@0.9.0-beta.1]

    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -fpermissive -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=153 -DARDUINO=10813 -DARDUINO_TEENSY32 -DF_CPU=96000000 -DUSB_MTPDISK -DLAYOUT_CZECH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teen sy3" "-ID:\\ChuckW\\Arduino\\libraries\\MTP_t4-master\\src" "-ID:\\ChuckW\\Arduino\\libraries\\SdFat\\src" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\ SPI" "-ID:\\ChuckW\\Arduino\\libraries\\USB2-master\\src" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\sketch\\mtp-test.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE

    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\MTP_t4-master\src\MTP.cpp

    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\MTP_t4-master\src\Storage.cpp

    Alternatives for TimeLib.h: [Time@1.6]

    ResolveLibrary(TimeLib.h)

    -> candidates: [Time@1.6]

    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\SdFat\src\ExFatLib\ExF atDbg.cpp
    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\SdFat\src\ExFatLib\ExF atFile.cpp
    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\SdFat\src\ExFatLib\ExF atFilePrint.cpp
    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\SdFat\src\ExFatLib\ExF atFileWrite.cpp
    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\SdFat\src\ExFatLib\ExF atFormatter.cpp
    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\SdFat\src\ExFatLib\ExF atPartition.cpp
    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\SdFat\src\ExFatLib\ExF atVolume.cpp
    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\SdFat\src\ExFatLib\upc ase.cpp
    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\SdFat\src\FatLib\FatDb g.cpp
    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\SdFat\src\FatLib\FatFi le.cpp
    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\SdFat\src\FatLib\FatFi leLFN.cpp
    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\SdFat\src\FatLib\FatFi lePrint.cpp
    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\SdFat\src\FatLib\FatFi leSFN.cpp
    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\SdFat\src\FatLib\FatFo rmatter.cpp
    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\SdFat\src\FatLib\FatPa rtition.cpp
    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\SdFat\src\FatLib\FatVo lume.cpp
    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\SdFat\src\FreeStack.cp p
    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\SdFat\src\FsLib\FsFile .cpp
    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\SdFat\src\FsLib\FsNew. cpp
    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\SdFat\src\FsLib\FsVolu me.cpp
    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\SdFat\src\MinimumSeria l.cpp
    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\SdFat\src\SdCard\SdCar dInfo.cpp
    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\SdFat\src\SdCard\SdSpi Card.cpp
    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\SdFat\src\SdCard\SdioT eensy.cpp
    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\SdFat\src\SpiDriver\Sd SpiArtemis.cpp
    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\SdFat\src\SpiDriver\Sd SpiChipSelect.cpp
    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\SdFat\src\SpiDriver\Sd SpiDue.cpp
    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\SdFat\src\SpiDriver\Sd SpiESP.cpp
    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\SdFat\src\SpiDriver\Sd SpiParticle.cpp
    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\SdFat\src\SpiDriver\Sd SpiSTM32.cpp
    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\SdFat\src\SpiDriver\Sd SpiTeensy3.cpp
    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\SdFat\src\common\FmtNu mber.cpp
    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\SdFat\src\common\FsDat eTime.cpp
    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\SdFat\src\common\FsStr ucts.cpp
    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\SdFat\src\common\Print Basic.cpp
    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\SdFat\src\common\SysCa llBareUno.cpp
    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\SdFat\src\iostream\Std ioStream.cpp
    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\SdFat\src\iostream\Str eamBaseClass.cpp
    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\SdFat\src\iostream\ist ream.cpp
    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\SdFat\src\iostream\ost ream.cpp
    Using cached library dependencies for file: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\SPI\SP I.cpp
    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\USB2-master\src\usb1_mtp.c
    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\USB2-master\src\usb2.c
    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\USB2-master\src\usb2_desc.c
    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\USB2-master\src\usb2_mtp.c
    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\USB2-master\src\usb2_seremu.c
    Using cached library dependencies for file: D:\ChuckW\Arduino\libraries\USB2-master\src\usb2_serial.c
    Using cached library dependencies for file: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Time\D ateStrings.cpp
    Using cached library dependencies for file: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Time\T ime.cpp
    Generating function prototypes...

    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -E -CC -x c++ -w -g -Wall -ffunction-sections -fdata-sections -nostdlib -fno-exceptions -fpermissive -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=153 -DARDUINO=10813 -DARDUINO_TEENSY32 -DF_CPU=96000000 -DUSB_MTPDISK -DLAYOUT_CZECH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teen sy3" "-ID:\\ChuckW\\Arduino\\libraries\\MTP_t4-master\\src" "-ID:\\ChuckW\\Arduino\\libraries\\SdFat\\src" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\ SPI" "-ID:\\ChuckW\\Arduino\\libraries\\USB2-master\\src" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\ Time" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\sketch\\mtp-test.ino.cpp" -o "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\preproc\\ctags_target_for_gcc_minus_ e.cpp" -DARDUINO_LIB_DISCOVERY_PHASE

    "C:\\Program Files (x86)\\Arduino\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\preproc\\ctags_target_for_gcc_minus_ e.cpp"

    Compiling sketch...

    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/precompile_helper" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr/cores/teensy3" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993" "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -x c++-header -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -fno-exceptions -fpermissive -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=153 -DARDUINO=10813 -DARDUINO_TEENSY32 -DF_CPU=96000000 -DUSB_MTPDISK -DLAYOUT_CZECH "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr/cores/teensy3" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993/pch/Arduino.h" -o "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993/pch/Arduino.h.gch"

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\pch\Arduino.h.gch

    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-g++" -c -O2 -g -Wall -ffunction-sections -fdata-sections -nostdlib -MMD -fno-exceptions -fpermissive -felide-constructors -std=gnu++14 -Wno-error=narrowing -fno-rtti -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -D__MK20DX256__ -DTEENSYDUINO=153 -DARDUINO=10813 -DARDUINO_TEENSY32 -DF_CPU=96000000 -DUSB_MTPDISK -DLAYOUT_CZECH "-IC:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993/pch" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teen sy3" "-ID:\\ChuckW\\Arduino\\libraries\\MTP_t4-master\\src" "-ID:\\ChuckW\\Arduino\\libraries\\SdFat\\src" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\ SPI" "-ID:\\ChuckW\\Arduino\\libraries\\USB2-master\\src" "-IC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\libraries\\ Time" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\sketch\\mtp-test.ino.cpp" -o "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\sketch\\mtp-test.ino.cpp.o"

    In file included from c:\program files (x86)\arduino\hardware\tools\arm\arm-none-eabi\include\sys\stat.h:9:0,
    from c:\program files (x86)\arduino\hardware\tools\arm\arm-none-eabi\include\sys\_default_fcntl.h:188,
    from c:\program files (x86)\arduino\hardware\tools\arm\arm-none-eabi\include\sys\fcntl.h:4,
    from c:\program files (x86)\arduino\hardware\tools\arm\arm-none-eabi\include\fcntl.h:1,
    from d:\chuckw\arduino\libraries\sdfat\src\common\fsapi constants.h:30,
    from D:\ChuckW\Arduino\libraries\SdFat\src/ExFatLib/ExFatFile.h:36,
    from D:\ChuckW\Arduino\libraries\SdFat\src/ExFatLib/ExFatVolume.h:28,
    from D:\ChuckW\Arduino\libraries\SdFat\src/ExFatLib/ExFatLib.h:27,
    from D:\ChuckW\Arduino\libraries\SdFat\src/SdFat.h:33,
    from D:\ChuckW\Arduino\libraries\MTP_t4-master\src/Storage.h:55,
    from D:\ChuckW\Arduino\libraries\MTP_t4-master\src/MTP.h:36,
    from D:\ChuckW\Arduino\libraries\MTP_t4-master\examples\mtp-test\mtp-test.ino:6:


    C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Time/time.h:1:2: warning: #warning "Please include TimeLib.h, not Time.h. Future versions will remove Time.h" [-Wcpp]

    #warning "Please include TimeLib.h, not Time.h. Future versions will remove Time.h"

    ^

    Compiling libraries...

    Compiling library "MTP_t4-master"

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\MTP_t4-master\MTP.cpp.o

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\MTP_t4-master\Storage.cpp.o

    Compiling library "SdFat"

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\SdFat\FreeStack.cpp.o

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\SdFat\MinimumSerial.cpp.o

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\SdFat\ExFatLib\ExFatDbg.cpp.o

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\SdFat\ExFatLib\ExFatVolume.cpp.o

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\SdFat\ExFatLib\ExFatFormatter.cpp. o

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\SdFat\ExFatLib\ExFatFileWrite.cpp. o

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\SdFat\ExFatLib\ExFatPartition.cpp. o

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\SdFat\ExFatLib\ExFatFile.cpp.o

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\SdFat\ExFatLib\upcase.cpp.o

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\SdFat\ExFatLib\ExFatFilePrint.cpp. o

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\SdFat\FatLib\FatPartition.cpp.o

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\SdFat\FatLib\FatFile.cpp.o

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\SdFat\FatLib\FatFilePrint.cpp.o

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\SdFat\FatLib\FatFormatter.cpp.o

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\SdFat\FatLib\FatFileLFN.cpp.o

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\SdFat\FatLib\FatVolume.cpp.o

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\SdFat\FatLib\FatDbg.cpp.o

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\SdFat\FatLib\FatFileSFN.cpp.o

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\SdFat\FsLib\FsNew.cpp.o

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\SdFat\FsLib\FsVolume.cpp.o

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\SdFat\FsLib\FsFile.cpp.o

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\SdFat\SdCard\SdioTeensy.cpp.o

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\SdFat\SdCard\SdCardInfo.cpp.o

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\SdFat\SdCard\SdSpiCard.cpp.o

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\SdFat\SpiDriver\SdSpiArtemis.cpp.o

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\SdFat\SpiDriver\SdSpiDue.cpp.o

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\SdFat\SpiDriver\SdSpiChipSelect.cp p.o

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\SdFat\SpiDriver\SdSpiTeensy3.cpp.o

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\SdFat\SpiDriver\SdSpiParticle.cpp. o

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\SdFat\SpiDriver\SdSpiESP.cpp.o

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\SdFat\SpiDriver\SdSpiSTM32.cpp.o

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\SdFat\common\FmtNumber.cpp.o

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\SdFat\common\PrintBasic.cpp.o

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\SdFat\common\FsStructs.cpp.o

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\SdFat\common\SysCallBareUno.cpp.o

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\SdFat\common\FsDateTime.cpp.o

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\SdFat\iostream\StdioStream.cpp.o

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\SdFat\iostream\istream.cpp.o

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\SdFat\iostream\ostream.cpp.o

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\SdFat\iostream\StreamBaseClass.cpp .o

    Compiling library "SPI"

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\SPI\SPI.cpp.o

    Compiling library "USB2-master"

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\USB2-master\usb2.c.o

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\USB2-master\usb2_desc.c.o

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\USB2-master\usb2_mtp.c.o

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\USB2-master\usb2_serial.c.o

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\USB2-master\usb1_mtp.c.o

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\USB2-master\usb2_seremu.c.o

    Compiling library "Time"

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\Time\DateStrings.cpp.o

    Using previously compiled file: C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\libraries\Time\Time.cpp.o

    Compiling core...

    Using precompiled core: C:\Users\ChuckW\AppData\Local\Temp\arduino_cache_1 35400\core\core_teensy_avr_teensy31_usb_mtp,speed_ 96,opt_o2std,keys_cz-cz_4939f5412a75a8560acb0f9e98268f02.a

    Linking everything together...

    "C:\\Program Files (x86)\\Arduino\\hardware\\teensy/../tools/arm/bin/arm-none-eabi-gcc" -O2 -Wl,--gc-sections,--relax,--defsym=__rtc_localtime=1603819707 "-TC:\\Program Files (x86)\\Arduino\\hardware\\teensy\\avr\\cores\\teen sy3/mk20dx256.ld" -mthumb -mcpu=cortex-m4 -fsingle-precision-constant -o "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993/mtp-test.ino.elf" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\sketch\\mtp-test.ino.cpp.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\MTP_t4-master\\MTP.cpp.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\MTP_t4-master\\Storage.cpp.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\SdFat\\FreeStack.cpp.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\SdFat\\MinimumSerial.cpp. o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\SdFat\\ExFatLib\\ExFatDbg .cpp.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\SdFat\\ExFatLib\\ExFatFil e.cpp.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\SdFat\\ExFatLib\\ExFatFil ePrint.cpp.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\SdFat\\ExFatLib\\ExFatFil eWrite.cpp.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\SdFat\\ExFatLib\\ExFatFor matter.cpp.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\SdFat\\ExFatLib\\ExFatPar tition.cpp.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\SdFat\\ExFatLib\\ExFatVol ume.cpp.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\SdFat\\ExFatLib\\upcase.c pp.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\SdFat\\FatLib\\FatDbg.cpp .o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\SdFat\\FatLib\\FatFile.cp p.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\SdFat\\FatLib\\FatFileLFN .cpp.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\SdFat\\FatLib\\FatFilePri nt.cpp.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\SdFat\\FatLib\\FatFileSFN .cpp.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\SdFat\\FatLib\\FatFormatt er.cpp.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\SdFat\\FatLib\\FatPartiti on.cpp.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\SdFat\\FatLib\\FatVolume. cpp.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\SdFat\\FsLib\\FsFile.cpp. o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\SdFat\\FsLib\\FsNew.cpp.o " "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\SdFat\\FsLib\\FsVolume.cp p.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\SdFat\\SdCard\\SdCardInfo .cpp.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\SdFat\\SdCard\\SdSpiCard. cpp.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\SdFat\\SdCard\\SdioTeensy .cpp.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\SdFat\\SpiDriver\\SdSpiAr temis.cpp.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\SdFat\\SpiDriver\\SdSpiCh ipSelect.cpp.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\SdFat\\SpiDriver\\SdSpiDu e.cpp.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\SdFat\\SpiDriver\\SdSpiES P.cpp.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\SdFat\\SpiDriver\\SdSpiPa rticle.cpp.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\SdFat\\SpiDriver\\SdSpiST M32.cpp.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\SdFat\\SpiDriver\\SdSpiTe ensy3.cpp.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\SdFat\\common\\FmtNumber. cpp.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\SdFat\\common\\FsDateTime .cpp.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\SdFat\\common\\FsStructs. cpp.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\SdFat\\common\\PrintBasic .cpp.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\SdFat\\common\\SysCallBar eUno.cpp.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\SdFat\\iostream\\StdioStr eam.cpp.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\SdFat\\iostream\\StreamBa seClass.cpp.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\SdFat\\iostream\\istream. cpp.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\SdFat\\iostream\\ostream. cpp.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\SPI\\SPI.cpp.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\USB2-master\\usb1_mtp.c.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\USB2-master\\usb2.c.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\USB2-master\\usb2_desc.c.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\USB2-master\\usb2_mtp.c.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\USB2-master\\usb2_seremu.c.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\USB2-master\\usb2_serial.c.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\Time\\DateStrings.cpp.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993\\libraries\\Time\\Time.cpp.o" "C:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993/..\\arduino_cache_135400\\core\\core_teensy_avr_te ensy31_usb_mtp,speed_96,opt_o2std,keys_cz-cz_4939f5412a75a8560acb0f9e98268f02.a" "-LC:\\Users\\ChuckW\\AppData\\Local\\Temp\\arduino_ build_990993" -larm_cortexM4l_math -lm -lstdc++

    C:\Users\ChuckW\AppData\Local\Temp\arduino_build_9 90993\sketch\mtp-test.ino.cpp.o: In function `loop':

    D:\ChuckW\Arduino\libraries\MTP_t4-master\examples\mtp-test/mtp-test.ino:41: undefined reference to `MTPD::loop()'

    collect2.exe: error: ld returned 1 exit status

    Using library MTP_t4-master at version 1.0.0-beta.1 in folder: D:\ChuckW\Arduino\libraries\MTP_t4-master

    Using library SdFat at version 2.0.0-beta.8 in folder: D:\ChuckW\Arduino\libraries\SdFat

    Using library SPI at version 1.0 in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\SPI

    Using library USB2-master at version 0.9.0-beta.1 in folder: D:\ChuckW\Arduino\libraries\USB2-master

    Using library Time at version 1.6 in folder: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Time

    Error compiling for board Teensy 3.2 / 3.1.
    Last edited by Fluxanode; 10-27-2020 at 11:52 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •