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

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

  1. #26
    Senior Member
    Join Date
    Dec 2013
    Location
    East Stroudsburg PA.
    Posts
    290
    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
    This looks like it's missing define for teensy 3.1/3.2

  2. #27
    How or what would that define be?

  3. #28
    Senior Member
    Join Date
    Dec 2013
    Location
    East Stroudsburg PA.
    Posts
    290
    How or what would that define be?
    // T3.0 __MK20DX128__
    // T3.1 - T3.2 __MK20DX256__
    // T3.5 __MK64FX512__
    // T3.6 __MK66FX1M0__
    Code:
    #if defined(__MK20DX128__) || defined(__MK20DX256__) || defined(__MK64FX512__) || defined(__MK66FX1M0__)
    I am getting the same compilation error with T3.5, T3.2 - T3.1.

  4. #29
    Senior Member
    Join Date
    Dec 2013
    Location
    East Stroudsburg PA.
    Posts
    290
    Well there's some issues in MTP.h and MTP.cpp files.

    In MTP.cpp: about LINE #519 #if defined(__MK66FX1M0__)
    Replace with: #if defined(__MK20DX128__) || defined(__MK20DX256__) || defined(__MK64FX512__) || defined(__MK66FX1M0__)

    in MTP.h: about LINE #61 #if defined(__MK66FX1M0__)
    Replace with: #if defined(__MK20DX128__) || defined(__MK20DX256__) || defined(__MK64FX512__) || defined(__MK66FX1M0__)
    This is of course not tested on teensy 3.2

    Edit:
    @ WMXZ
    https://github.com/WMXZ-EU/MTP_t4
    Missing define for teensy 3.0/3.1/3.2/3.5
    Last edited by Chris O.; 10-30-2020 at 02:55 AM.

Posting Permissions

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