Can you post the sketch you are using that causes this error? We can only guess at what is causing the error. Right off the bat it looks like it is trying to access POSIX style file functions which Teensyduino does not...
Glad you have it working. I am running under Linux and I also had to un-mount and re-mount the MTP drive to get an updated copy of the directory listings. I seem to remember that @KurtE had a way of refreshing it from...
@sbfreddie - Been working with the sketch in post #10. First off is this what you are trying to accomplish:
************************************************
destinationSDCardDir =...
I found this:
https://www.tigerdirect.com/applications/SearchTools/item-details.asp?EdpNo=4433961
But they are out of stock. I am really curious as to what the problem is. The only time I have seen the tag errors...
Did you ever try changing the timeouts in post # 638?
// These two defines are timeouts for detecting a connected drive
// and waiting for it to be operational.
#define MEDIA_READY_TIMEOUT 5000
#define...
@yeahtuna - Yes, I am leery of putting in PR requests for issues that I cannot duplicate. A lot of people and myself have put in countless hours testing and updating this library. Many devices have been tested and...
Let's see if we can figure out what is going on. First I assume you are using Arduino 1.8.19 along with Teensyduino 1.57. Next USB 3 drives have not been tested as the T4..x supports USB 2.0. Make sure the drives are...
With the advent of arduino-cli I was able to setup the Geany IDE to compile and upload sketches to a Teensy. It works with Linux and WIndows both. I have always liked using the Geany IDE mostly for it's tabbing of...
@MultipleMonomials - I see that USB Host was supported with Mbed 2.0 with LPC1768. But I cannot find any thing in Mbed-CE. Has this not been added in yet?
Thanks...
@Paul - Does the EHCI driver automatically clear endpoint stall conditions? It's been a long time since I looked at this. It looks like halted pipes might be handled in 'followup_error()' function.
This is something that I knew about and played with for quite a while. I never had an mass storage device available that had more than one logical unit number or would cause the device to stall. When you say it crashes...
In the USBHost_t36 library find hid.cpp. make sure line #253 is commented out:
void USBHIDParser::out_data(const Transfer_t *transfer)
{
//Serial.printf(">>>USBHIDParser::out_data\n");...
@Paul - I agree. It takes a lot of time to filter through all of the directories and layers of the code. And I also have seen that they are using the one byte at a time packets. I have a general idea of there layout and...
Well, the best times I can get for USBSerial is about ~3600 lines per second with this:
#include "mbed.h"
#include "USBSerial.h"
uint32_t counter;
uint32_t prior_counter;
uint32_t prior_clock;
uint32_t...
Well I finally caught up with you guys... With all of the changes from post #76 and #82 and the following CMakeLists.txt:
#
# Mbed CE Hello World Project
#
cmake_minimum_required(VERSION 3.19)
cmake_policy(VERSION...
@Paul - I'm not sure if this will help or if you have already run into this but I programed the T40 after setting "target.console-usb": true in mbed_app.json. It failed to communicate but there were no death flashes...
@MultipleMonomials - Setup mbed-os master branch. The 'Hello World' example fails. Blinking orange LED. This is after the merge. I am also still getting the link error seen in post #34. missing space before the '=' in...
Yup, just downloaded it from your link and got the same message when I tried to run it. Sorry, It has been quite a few years since I have used windows. Windows 7 was the last one I used.
EDIT: I'll keep trying...
No, it says window defender has blocked the install. I tried disabling it and it still came up with the blocking message... I sent a PM as well. I take that back, it does say:
Microsoft Defender SmartScreen prevented...
OK, I am trying to go through the windows install procedure. Got to the download ninja part. Defender stops me in my tracks. It's not recognized. Tried turning off defender. No go... Any advice?
@tstarr - There have been changes made to USBHost_t3 library. I would suggest that you upgrade Teensyduino to 1.58 Beta3. Here is tthe link:
https://forum.pjrc.com/threads/71693-Teensyduino-1-58-Beta-3
This is the...
Did you see this notice for that repository:
UsbMscFat Library
NOTE: This Library is OUTDATED !!!
Please Use the examples in the latest USBHost_t36 stable library for the Teensy. Teensyduino 1.57 up 1.58B3. Arduino...
With the information you've given us there is not much we can do to help you... Please read the Forum Rule above. What operating system are you using?
What version of Arduino and Teensyduino are you using? What are the...
Thanks, That points me in the right directions:) I found this https://github.com/KurtE/RawHid. I think this is what @Kurte referred to in the off topic post.
That is a actually a good idea but there are times when different types of devices (particularly older thumb drives) can a few seconds to do internal housekeeping. Usually flushing the internal buffer. So I as well am...
I have been experimenting with communications between two Teensy T41's using USB serial and the SerialTransfer library. One T41 is setup as master sending and receiving packets through SerialTransfer from the USB host...
Glad it helped. I have another project that I am trying to get finished as well. I just keep distracting myself:) I have been playing with SerialTransfer and USB host serial. I have one T41 sending and receiving ...
You can if you would like to. I hope to get more time to gain experience with this. I am on vacation right now so I have some time. But I cannot guarantee that I will be able to work though it in a timely manner:)
@anybody interested - Here is the first go at documenting the installation and usage procedure for MBED CE on the Teensy T40. May try to set it up on Windows 11 (maybe).
MBED CE OS installation instructions for...
Hi Paul - Me too. Based on the installation instructions, readme's and your post #28 I came up with the right sequence start to finish that seems to work. I have @manitou's post #32 working as well. Just tested the...
@MultipleMonomials - I have everything setup and successfully built the hello-world sketch. But ran into an error during the Ninja build with the linker script:
...
Here is a forum link to check out that might help:
https://forum.pjrc.com/threads/70062-Teensy-4-1-Adafruit-Airlift-Featherwing-Co-Processor-FTP-Server-not-opening-Port-21?highlight=Airlift
A few of us worked on...
I might be wrong, but as far as I know the T4.1 does not have a built in USB HUB which is what you would need to use those connectors. As @defragster stated above you just need an external USB HUB connected to the T4.1...
Turns out the issue is with 'DriveInfo.ino' itself. Here is the changed section of the sketch.
// Wait for the drive to start.
while (!myDrive) {
// myusb.Task();
}
myusb.Task();
This works...
@Paul @KurtE - Using Arduino 1.8.19, TD1.58 Beta3 I am seeing a intermittent situation with MSC where during uploading and sometimes powering up using the "DriveInfo.ino" sketch for testing results in the msDriveInfo...
What OS are you using, Windows, Linux or MacOS? What versions? What versions of Arduino and Teensyduino are you using? What is the type and brand of the flash drives. Are you using a USB hub? Is it a powered hub?
We...