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

Status
Not open for further replies.
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 :confused:
 
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.
 
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:
Status
Not open for further replies.
Back
Top