MTP Responder Contribution

If the SD examples work to see the drive and give expected output then the T_3.5 should be in good shape, and that could point to something in the MTP software build.
 
I tried SDInfo and the files examples, and it works so the 3.5 sd is working

Good, that also shows that part of the IDE+TD install isn't corrupted ...

Seems either something T_3.5 build specific, or something missing/wrong with the install for MTP. Always tough to be sure collecting pieces and manual edits of WIP code :(
 
Good, that also shows that part of the IDE+TD install isn't corrupted ...

Seems either something T_3.5 build specific, or something missing/wrong with the install for MTP. Always tough to be sure collecting pieces and manual edits of WIP code :(

Very true. WIP and it is not ready for T-3.5 :(
 
Very true. WIP and it is not ready for T-3.5 :(

For me, it is working with T3.5.
tried just now mtp-test with both versions: MTP_DISK and MTP_DISK_SERIAL (A1.8.15 - TD1.54b10 - Win10)
Note: for MTP_DISK (Seremu) one need to press any key to continue setup().
 
Thanks for the reply.
I am using a new T3.5 with arduino 1.8.15 and Teensyduino-beta9 with the built-in SD. Both with a fresh install. I'm not sure what you mean "if you declare multiple sd devices (as with mtp-test.ino) : sdx[0] MUST exits." I'm only using the one onboard SD with the out of the box install, do I need to change something in the test program?
What versions did you test with and what example program are you using? I have followed the install directions to the letter and tested using the included MPT-test.ino.

Is there a specific USB driver to use? I set up on another computer (without any Arduino or Teensyduino software) and at first the teensy was there as Teensy under an unknown device until the device drivers finished loading/installing then it moved to portable devices as MTP USB DEVICE with a yellow ! next to it and the error message "Device driver software was not successfully installed" came up. BTW the serial port only displays in Device Manager when the port is set to serial. Goes away when set to MTP disk and programed.

Maybe a driver issue?
Or teensyduino? I just don't know.
 
I just updated to beta 10. Does the teenduino software need to be loaded on the target computer?

No,
if you program your sketch properly so that it does not need teensymonitor to start program.
Note: mtp-test is a test program not a production program. You can use it a starting sketch, but you should modify it for your needs.

I uploaded a mtp-basic example that does not need teensymonitor to be activated
 
Last edited:
No,
if you program your sketch properly so that it does not need teensymonitor to start program.
Note: mtp-test is a test program not a production program. You can use it a starting sketch, but you should modify it for your needs.

I will modify it but first I need to figure out why it isn't working for me. Strange I can't just install the lib and run the test program.
 
Success! I used your new new mtp-basic.ino and i now see the teensy device under portable devices! I didn't realize it needed to start monitor to run. Now I still don't see a serial port even after making changes to usb_desc and boards.txt
 
I am seeing a compile warning:

Using board 'teensy35' 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
Warning: Board teensy:avr:teensy32 doesn't define a 'build.board' preference. Auto-set to: AVR_TEENSY32

Is this going to be a problem?
 
Success! I used your new new mtp-basic.ino and i now see the teensy device under portable devices! I didn't realize it needed to start monitor to run. Now I still don't see a serial port even after making changes to usb_desc and boards.txt

You will see a serial com port only if you choose MTP Disk SERIAL (Experimental). If you choose MTP Disk (Experimental), there is no com port but Teensy uses SEREMU (serial emulation) which works with Teensy monitor.

What should #define USE_SD be set to for the 3.5? 0 or 1 or ?
Let it as 1

I am seeing a compile warning:

Using board 'teensy35' 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
Warning: Board teensy:avr:teensy32 doesn't define a 'build.board' preference. Auto-set to: AVR_TEENSY32

Is this going to be a problem?
I have this warning too, this goes to TD154-b10
 
@WMXZ
Just a few questions:
1) Is the a way to access the emulated serial port other than with the arduino monitor? Like with an external terminal program (puttty or another)? Or with my own PC program?
2) In both the basic and test programs is, it there an issue in the following -
#else
#ifndef BUILTIN_SCCARD
#define BUILTIN_SDCARD 254
#endif
void usb_mtp_configure(void) {}
#endif

Should BUILTIN_SCCARD be BUILTIN_SDCARD?
 
@WMXZ
Just a few questions:
1) Is the a way to access the emulated serial port other than with the arduino monitor? Like with an external terminal program (puttty or another)? Or with my own PC program?
2) In both the basic and test programs is, it there an issue in the following -
...

re #1: Search Forum for TyCommander. A great SerMon that should work well and can do uploads as well.

re #2: not clear the question but " BUILTIN_SDCARD " is the general magic value to say use SDIO SD card on T_3.6 and T_4.1
 
@defragster, basically i was asking about the spelling of BUILTIN_SDCARD being correct, it is spelled BUILTIN_SCCARD in the program and wonder if the statement is not going to work?

Do you know how to access the emulated serial port say from my own program?
 
I downloaded the MTP_t4 lib yesterday, but had a problem running the script. Now i coppied all needed libraries in the teensy library folder. When opening the MTP-test, or MTP-basic example, i get folowwing error:
Code:
D:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\MTP_t4\src/Storage.h:33:16: fatal error: FS.h: No such file or directory

i tried looking online for FS.h but can't find it.

anyone kwons how to fix this?

Thnx,
RR
 
I downloaded the MTP_t4 lib yesterday, but had a problem running the script. Now i coppied all needed libraries in the teensy library folder. When opening the MTP-test, or MTP-basic example, i get folowwing error:
Code:
D:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\MTP_t4\src/Storage.h:33:16: fatal error: FS.h: No such file or directory

i tried looking online for FS.h but can't find it.

anyone kwons how to fix this?

Thnx,
RR

upgrade to Arduino 1.8.15 and TD 1.54b10 (latest as I do not know when FS.h was introduced into cores)

better to get MTP_t4 into local libraries and not Teensyduino (teensy/avr/libraries) as you have done.
 
upgrade to Arduino 1.8.15 and TD 1.54b10 (latest as I do not know when FS.h was introduced into cores)

better to get MTP_t4 into local libraries and not Teensyduino (teensy/avr/libraries) as you have done.

Thnx it worked no problem
 
Problem Integrating MTP

@WMXZ I have the MTP_t4 working with the 3.5 and the 3.2 using the basic example program. Works quite well, thanks. Now integrating into my program seems to be a problem, my part will no longer write new files or update files. I have attached my program files (I am an amature prob not the best coding). Is there a problem using SD and SDFAT together?

Thanks for any help...
 

Attachments

  • BB_Data_Taker_1-070121_MTP.zip
    6.8 KB · Views: 65
Last edited:
Back
Top