-
Older Activity
-
Today, 04:30 AM
I am setup for testing now. @mjs513 I am getting the same results as you. Everything seems to be working except un-plugging and replugging the flash drive. I can't remember, but has a powered hub been tried?
747 replies | 115143 view(s)
-
Yesterday, 11:35 PM
@KurtE - Had a chance to play with the MTP sketch. Some interesting results when playing with write sizes.
Kingston DT50 32G, 512 bytes at a time:
Start write file: write_test_file.txt length:1048576 Write Size:512...
747 replies | 115143 view(s)
-
Yesterday, 01:29 AM
@KurtE - that worked. Thanks. Want to test some hard drives as well. They are always faster but probably not practical for remote applications.
747 replies | 115143 view(s)
-
Yesterday, 12:52 AM
@yeahtuna
Incorrect - at that point no SCSI command has been called...
747 replies | 115143 view(s)
-
Yesterday, 12:48 AM
@KurtE - Linux Arduino 1,.8.19 TD1.58B3 - Downloaded MTP_TEENY-MAIN.zip. Setup T4.1 and uploaded. All good. Then selected:
store:2 storage:30001 name:MSC0-126GEXFAT fs:200030cc
Ran this:
w 1048576 512 test.txt
The...
747 replies | 115143 view(s)
-
03-26-2023, 08:40 PM
@KurtE @mjs512 - Decided to just comment out "msReset()" call. Updated my version of USBHost_t36 with @PaulStoffregen version and did a PR for it and extending the timeouts defined in "msc.h".
Glad to see a lot of...
747 replies | 115143 view(s)
-
03-26-2023, 02:13 PM
Thanks for testing:) I'll test more of my devices and issue an appropriate PR.
747 replies | 115143 view(s)
-
03-26-2023, 02:09 PM
I have a few things I have to do this morning so after that I want to test more devices SD card readers, Hard Drives, etc. Just to make sure msReset() is not needed. For the most part I am convinced it's not needed. I...
747 replies | 115143 view(s)
-
03-26-2023, 01:06 AM
@ All - In mscInit() function, comment out call to msReset() function:
// Initialize Mass Storage Device
uint8_t USBDrive::mscInit(void) {
#ifdef DBGprint
println("mscIint()");
#endif
uint8_t msResult =...
747 replies | 115143 view(s)
-
03-25-2023, 05:29 PM
@KurtE @mjs513 - Here is a web article of interest with information on stalled USB 3.0 pipes and how to reset and clear them:
http://billauer.co.il/blog/2019/12/usb-bulk-overflow-halt-reset/
Would like to adapt...
747 replies | 115143 view(s)
-
03-25-2023, 02:24 PM
I have a magnifying lite and a magnifier for just such an occasion:) It states that it is backward compatible with USB 2.0. I think it's time to do some online research...
Edit: Here is a link to the support page for...
747 replies | 115143 view(s)
-
03-25-2023, 02:05 PM
@mjs513 - I also noticed a couple of other things in those snapshots. Down a couple of lines you see "URB_FUNCTION_SYNC_RESET_PIPE_AND_CLEAR_STALL" twice. I think this is what we are seeing on the T4. For some reason...
747 replies | 115143 view(s)
-
03-25-2023, 01:17 AM
@KurtE @mjs513 - A little progress:) I have stooped to single sector reads and writes. Here is a sketch that appears to be working:
#include <Arduino.h>
#include "USBHost_t36.h"
// For this sketch we need to define...
747 replies | 115143 view(s)
-
03-24-2023, 08:16 PM
@KurtE
That makes sense. 13 bytes is the size of the CSW and probably why we are seeing:
USBDrive dataIn (static): 0
ERROR Followup
I think. But why...
Missing something. Working on that right now.
747 replies | 115143 view(s)
-
03-23-2023, 11:56 PM
@KurtE and @mjs513 - Referring to post #664, the command code is indeed the SCSI write(10) command, Instead of showing the tag error first I need to check the CSW status byte bit 0 first and if not 0 do a request for...
747 replies | 115143 view(s)
-
03-23-2023, 10:10 PM
Not yet:( Just got home from work. Will play a little more tonight. Looks like I am going to have to go into the lowest levels. Try a single sector write and see what happens. It's complaining about an unrecognized CBW...
747 replies | 115143 view(s)
-
03-23-2023, 10:08 PM
Not yet:( Just got home from work. Will play a little more tonight. Looks like I am going to have to got into the lowest levels. Try a single sector write and see what happens. It's complaining about an unrecognized CBW...
747 replies | 115143 view(s)
-
03-23-2023, 02:27 AM
Ok, have narrowed it down to a failed command error. Bit 0 is set in the CSW status byte. Possibly a command not recognized by the USB stick. See below:
msWriteBlocks()
msDoCommand()
USBDrive CallbackOut (static)...
747 replies | 115143 view(s)
-
03-23-2023, 12:00 AM
@mjs513 @KurtE - Just got my drive and tested. Same results as you guys. Going to start walking back through the different versions of TD to see if anything changes. Beings how this only seems to happen with these...
747 replies | 115143 view(s)
-
03-22-2023, 03:30 AM
@mjs513 - Just tried using Windows to compile "DriveInfo.ino". This is with a Kingston 128G USB stick.
Fist time:
Waiting for Drive to initialize...
=== Task() Drive 0x200035e0 connected ===
>>...
747 replies | 115143 view(s)
-
03-21-2023, 10:33 PM
It does look like there is no response but this:
transfer->qtd.token = 64
does not make sense. CSW size should be 13 bytes if I remember correctly. not sure where the 64 bytes are coming from. I should be getting my...
747 replies | 115143 view(s)
-
03-21-2023, 10:04 PM
I'm getting the same. Up the road a piece in Washington state...
48 replies | 950 view(s)
-
03-20-2023, 10:42 PM
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...
2 replies | 71 view(s)
-
03-19-2023, 11:18 PM
Will be 70 and retired in November:) And you are right, It does keep the brain sharp...
14 replies | 240 view(s)
-
03-19-2023, 09:53 PM
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...
14 replies | 240 view(s)
-
03-19-2023, 09:29 PM
Yeah, I think I mentioned that in an earlier post. My curiosity gets the better of me as well:)
747 replies | 115143 view(s)
-
03-19-2023, 07:04 PM
@sbfreddie - Been working with the sketch in post #10. First off is this what you are trying to accomplish:
************************************************
destinationSDCardDir =...
14 replies | 240 view(s)
-
03-19-2023, 05:16 PM
I have ordered up SDDD2-032G-GAM46 from Amazon. Should be here this coming Wednesday. I'll check it out then...
747 replies | 115143 view(s)
-
03-18-2023, 08:06 PM
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...
747 replies | 115143 view(s)
-
03-18-2023, 06:23 PM
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...
747 replies | 115143 view(s)
-
03-14-2023, 12:35 AM
@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...
747 replies | 115143 view(s)
-
03-14-2023, 12:14 AM
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...
747 replies | 115143 view(s)
-
03-09-2023, 10:12 PM
Missed that one I guess... Thanks:)
2 replies | 199 view(s)
-
03-09-2023, 02:26 AM
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...
2 replies | 199 view(s)
-
03-05-2023, 05:26 PM
Thanks for the reply:) It really is a bummer...
102 replies | 4239 view(s)
-
03-04-2023, 06:24 PM
@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...
102 replies | 4239 view(s)
-
02-26-2023, 02:25 PM
@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.
747 replies | 115143 view(s)
-
02-26-2023, 01:49 PM
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...
747 replies | 115143 view(s)
-
02-25-2023, 05:01 PM
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");...
5 replies | 103 view(s)
-
02-20-2023, 02:13 PM
@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...
102 replies | 4239 view(s)
-
02-19-2023, 11:04 PM
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...
102 replies | 4239 view(s)
-
02-16-2023, 11:35 PM
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...
102 replies | 4239 view(s)
-
02-16-2023, 04:15 AM
I remember seeing that before. I will give it a try tomorrow. Won't have time tonight. Thanks...
102 replies | 4239 view(s)
-
02-16-2023, 02:10 AM
@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...
102 replies | 4239 view(s)
-
02-15-2023, 11:25 PM
@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...
102 replies | 4239 view(s)
-
02-15-2023, 04:27 AM
Review done. Finally have example(s) working under W11. Little more hair pulling than with Linux but very similar procedure wise...
102 replies | 4239 view(s)
-
02-13-2023, 10:30 PM
That's good to hear:)
747 replies | 115143 view(s)
-
02-12-2023, 10:20 PM
Got it figured out:)
102 replies | 4239 view(s)
-
02-12-2023, 09:37 PM
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...
102 replies | 4239 view(s)
-
02-12-2023, 09:25 PM
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...
102 replies | 4239 view(s)
-
02-12-2023, 08:16 PM
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?
102 replies | 4239 view(s)
-
02-11-2023, 02:17 PM
@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...
14 replies | 553 view(s)
-
02-10-2023, 10:28 PM
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...
14 replies | 553 view(s)
-
02-10-2023, 08:48 PM
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...
14 replies | 553 view(s)
-
02-10-2023, 02:40 PM
Thanks, Others distractions are sometimes needed to clear the head:) I downloaded your RawHid repo and I'll start there...
4 replies | 169 view(s)
-
02-10-2023, 01:23 PM
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.
4 replies | 169 view(s)
-
02-10-2023, 12:31 PM
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...
747 replies | 115143 view(s)
-
02-10-2023, 02:22 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...
4 replies | 169 view(s)
-
02-09-2023, 08:17 PM
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 ...
102 replies | 4239 view(s)
-
02-09-2023, 01:13 AM
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:)
102 replies | 4239 view(s)
-
02-08-2023, 11:55 PM
@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...
102 replies | 4239 view(s)
-
02-08-2023, 06:47 PM
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...
102 replies | 4239 view(s)
-
02-08-2023, 05:21 PM
Thanks - I am new to Mbed and Cmake. I have a lot to learn. My bad:) Should have read all of the posts I guess...
102 replies | 4239 view(s)
-
02-08-2023, 04:22 PM
@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:
...
102 replies | 4239 view(s)
-
02-01-2023, 07:46 PM
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...
2 replies | 242 view(s)
-
01-28-2023, 01:50 PM
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...
7 replies | 352 view(s)