A quick question. Was using the PJRC Teensy 4.0 beta version breakout board with a couple of audio adapter version D. Cannot access SD card on audio adapter with WavFilePlayer. Tried various SPI settings with no luck....
@schlank - I have never used Platform I/O :( The error makes it look like the USBHost_t36 library is not being recognized or installed properly.
Here is a tutorial from @shawn:...
@mjs513 can probably answer this better but I believe LittleFS is it's own file system and does not use SdFat but uses FS file abstracion. So most file and directory functions that are available for the SD library are...
@mjs513 - This is impressive:) I'm going to redo my USBMonitor library using RawHID instead of SerialTransfer over USBSerial. I have it working with the RA8876 display but cannot get return handshaking values fast...
Yes it is. With the Teensy 4.0 you will need a breakout board to access USB Host functionality. There are two pads underneath the USB device connector on the bottom side of the T4.0 that provide the D+ and D- signals...
I just finished syncing and testing as well. Tested with MTP and full debug then full debug then no debug. Transferred a WAV file back and forth. Still plays. Here is some download times:
CMD:3 Filename:t.wav...
I have it uploading and downloading files consistently. Basically had to turn off MTP and all debugging. Was able to eliminate the delays as well which helps with the transfer speeds. I think the remote side was being...
Not sure if I have everything setup correctly? Arduino 1.8.19 TD1.59B2 latest USBHost_t36-USBSerial and RawHID-main.zip. Compiled remote T4.1 with RawHID setting and host T4.1 with Serial+MTP.
It's trying to work but...
@KurtE - This is so strange:) I have been playing with the same library this weekend. I have two Teensy's connected together. One is loaded with "Basic.ino" and is connected to the USB host port on the second T4.1...
We did have the AirLift working with Teensy. If you go through this long thread you will see that we had to make a lot of changes. We were using the Serial Pass Through. I do have all of the libraries that we tested and...
It's always a good way to learn:) By the way, here is the speed results of a Kingston 120G SSD drive used with a StarTech USB to SATA adapter:
Press anykey to continue
test.txt exists, removing...
Writing...
My results with the Sandisk 32G Dual.
With FASTRUN:
Initializing SD card...initialization done.
Directory listing for SD card:
EnvironmentalData/
32MEGfile.dat 32768000...
I tested on my end and could not get a failure. I am not that familiar with SD cards but it seems to me you can adjust the SPI speeds. Can't remember if it 's possible with QSPI which the built in sdcard IF uses. Will...
Let's say I'm working on it:)
Just for an example, I run the driveInfo.ino sketch from the USBHost_t36 library and I forgot to plug in a USB drive I would see:
Initializing USB MSC drive...
Waiting for Drive to...
I see. Using a USB stick will need the host USB port on the T4x not the USB port used for program the Teensy from the IDE on a PC.
Info on the host USB port is here and here. With the second link scroll down to the...
Awesome:) I hope it all works out. The speeds really depend on the USB and SD devices you are using and the amount of buffer size you are willing to give. Effective buffer sizes vary depending on the design of the...
I see what you are getting at. I thought you were talking about:
while (!myDrive) {
myusb.Task();
}
The only time it will hang forever is if there is no drive plugged in. Which kinda defeats the whole...
@mjs513 - It happened much more consistently with the copyFile.ino sketch than it did with the driveInfo.ino sketch.
If anybody wants to test, here is the sketch that was failing intermittently:
/*
MSC Drive...
Ran into a situation where a USB drive would fail to initialize properly. This showed up in two files. driveInfo.ino in the USBHost_t36 library and in an example sketch of mine copyFileUSB.ino. The drive init portion...
Sorry about the late response...
It kind of sounds like you want to copy files to SD card from a USB stick with the T4.1, Correct? That is doable but not with FatFS. You will need to use the new SD library for SD card...