-
Older Activity
-
Today, 01:19 PM
Thanks for the reply, KurtE. The RawHID was a red herring. I know all hubs are not created equal, and I tested with a few more hubs and could not reproduce the issue. The second test with the devices set to USB MIDI,...
730 replies | 114987 view(s)
-
Today, 12:38 PM
Here's a sketch to show that the USB Host MIDI driver is causing the Mass Storage driver to fail.
Both teensy devices should be running the same sketch included below. If the test is performed without the second...
730 replies | 114987 view(s)
-
Today, 12:26 PM
That is not the serial port, and it's just an illustration to get the idea across. The first teensy is of course attached to a computer. It looks like the real culprit is the MIDI driver. I'll post an updated test.
730 replies | 114987 view(s)
-
Today, 12:08 PM
Tried with a different USB hub and it seems to be working fine.
730 replies | 114987 view(s)
-
Today, 02:12 AM
Here is a minimal setup to cause the MassStorageDriver to fail.
Both teensy devices should be running the same sketch included below. If the test is performed without the second teensy connected to the USB host...
730 replies | 114987 view(s)
-
Yesterday, 10:31 PM
It's not just you. This probably explains the problems I'm seeing. I have a hub / MIDI / rawUSB also running concurrently, so my device is putting ehci through its paces. Sometimes a drive will timeout during...
730 replies | 114987 view(s)
-
03-26-2023, 03:27 AM
That's my point. From the perspective of msGetCSW(), the value of .Tag doesn't change and when it gets to this point:
if(StatusBlockWrapper.Tag != CBWTag)
It seems to me that there's a chance that the real value...
730 replies | 114987 view(s)
-
03-26-2023, 02:13 AM
But after the call to queue_Data_Transfer() completes, the value of StatusBlockWrapper.Tag is still 0, and its value is only updated outside of the scope of msGetCSW().
730 replies | 114987 view(s)
-
03-25-2023, 11:22 PM
I opened an issue on github in regards to possible erroneous CommandBlockStatus.Tag errors here:
https://github.com/PaulStoffregen/USBHost_t36/issues/113
Is my logic incorrect? Can we be sure that the compiler...
730 replies | 114987 view(s)
-
03-25-2023, 10:22 AM
I should also mention that some of these kinds of issues will disappear when printing debugging information as that often forces the code to reload the value, so make sure you also test without debugging enabled.
730 replies | 114987 view(s)
-
03-25-2023, 10:15 AM
I have sorted out a few issues that I was seeing with CSW tag errors. I wouldn't be surprised if you are running into the same issues I was seeing where the code wouldn't reload Command wrapper.tag, instead just using...
730 replies | 114987 view(s)
-
03-13-2023, 09:49 PM
I've spent weeks going over the MassStorage code and have pointed out several issues, but the maintainers of the code haven't attempted to fix them. Some of the issues are very simple fixes, others are much more...
730 replies | 114987 view(s)
-
03-10-2023, 03:12 AM
That's how I'm feeling right now in regards to my relationship with PJRC, and I suspect there's a similar feeling in regards to PJRC"s relationship with NXP.
Has there been any investigation into alternative silicon?...
6 replies | 507 view(s)
-
03-04-2023, 02:41 PM
:) Doubtfully, but I want to know the limits. I'm more interested in the touchscreen I've got going on this RnD device. Just playing around.
30 replies | 1350 view(s)
-
03-02-2023, 11:20 PM
To answer my own question, you don't need to change how the buffers are setup. I was trying to draw transparency by changing the alpha channel of an RGB32 color. Instead you draw transparency by including an extra...
53 replies | 7172 view(s)
-
03-02-2023, 12:07 PM
I've started porting my desktop graphics library over to Teensy 4.1 with the help of this wonderful library. I'm trying to draw with transparency. Do you have a simple of example of setting up the buffers?
53 replies | 7172 view(s)
-
02-27-2023, 11:57 PM
I'm pretty sure it does. The crash I was experiencing comes from a bug, which is fixed in the code below:
void USBFilesystem::end(bool update_list) {
mscfs.end();
//if (update_list)...
730 replies | 114987 view(s)
-
02-26-2023, 04:34 AM
I found an issue with some USB Flash devices, and I'm not sure fix it. Apparently some devices with issue a STALL when you request getMaxLUN(). In that case we need to reset somehow, and I'm not entirely sure how that...
730 replies | 114987 view(s)
-
02-25-2023, 10:48 AM
It's particularly frustrating when it works on one platform and not not the other. Today I rewrote the USB drive begin() function as non-blocking. It takes care of the system hanging when first opening a drive. Still...
730 replies | 114987 view(s)
-
02-24-2023, 08:15 PM
Sadly, this solution doesn't seems to work on Teensy 4.1. Back to the drawing board.
730 replies | 114987 view(s)
-
02-23-2023, 10:07 AM
Indeed I have. I got pretty cool RnD device that should keep me busy for a while. It's SD card, host port, touchscreen, audio, a digital port extender, SPI ADC, buck regulated DC in....Lots to learn.
30 replies | 1350 view(s)
-
02-22-2023, 09:13 PM
So I had a quick test with my new prototype and it looks like SD card is the way to go--must faster then USB memory. I was able to playback 32 simultaneous stereo tracks using 8K buffers. Which should allow me to...
30 replies | 1350 view(s)
-
02-22-2023, 12:24 PM
I finally have first audio!
30 replies | 1350 view(s)
-
02-22-2023, 05:28 AM
I'm playing around with TeensyThreads.h. Looks the perfect companion to this library if you want non-blocking functionality.
730 replies | 114987 view(s)
-
02-21-2023, 03:46 AM
Here's what I used a starting point for my USB host port firmware updater.
https://forum.pjrc.com/threads/47783-Teensy-programs-Teensy?p=321170#post321170
42 replies | 5488 view(s)
-
02-21-2023, 03:45 AM
Fixed. My issue was unrelated to your code, which continues to perform well.
13 replies | 4985 view(s)
-
02-21-2023, 02:53 AM
My setup is quite different. I'm streaming the firmware via rawHID from an application on a computer, through a master unit (T3.6 or T4.1) to a device connected to the master's USB host port.
I didn't use Paul's...
42 replies | 5488 view(s)
-
02-21-2023, 12:19 AM
I'm so happy to report that I solved the issue.
#define RAWHID_RX_SIZE 64 // 32 works fine for T3.6, but not T4.1
A few notes about your driver, Paul. I think you'll find that if you implement a minimum wait time...
42 replies | 5488 view(s)
-
02-20-2023, 01:52 PM
One more question, Paul.
Is is safe to assume that after we call bootloader.write() and the control callback comes back 'Complete', we can reuse / free the memory location passed to bootloader.write()?
42 replies | 5488 view(s)
-
02-20-2023, 10:26 AM
Thanks, Paul. I had a quick look over the code and it's basically the same process as before, so I must be dealing with some sort of hardware issue. Considering how much attention you are paying towards the proper...
42 replies | 5488 view(s)
-
02-20-2023, 09:26 AM
Paul, I really need this working on a T4.1. I've been studying the USB protocol and the code in ehci.cpp all day, looking for where things go wrong, but I'm stumped. I know you are busy, and I don't expect you to...
42 replies | 5488 view(s)
-
02-19-2023, 12:27 PM
When I use T4.1 as master, it looks like the teensy connected to the Host port programs properly, but in fact it doesn't. All the packets are sent, nothing times out, but the device doesn't reboot (the program doesn't...
42 replies | 5488 view(s)
-
02-19-2023, 08:41 AM
I see. Then my problem must be hardware related. Thanks.
42 replies | 5488 view(s)
-
02-19-2023, 07:36 AM
The link is broken, Frank B. Is the code still available somewhere? Using a T3.6 I can program 3.x and 4.x devices fine. But using T4.1 as master always fails.
42 replies | 5488 view(s)
-
02-18-2023, 07:13 AM
I think I've finally gotten it resolved. What a headache. I'll report back after I've sure the fix I'm using works properly.
2 replies | 143 view(s)
-
02-18-2023, 06:42 AM
I've spent about 8 hours now trying to get to the bottom of this. Ultimately the problem is that the hub issues a queue_Control_Transfer, but the associated callback is never called.
I can detect when this happens,...
2 replies | 143 view(s)
-
02-17-2023, 11:20 AM
Alright. Thanks.
13 replies | 4985 view(s)
-
02-17-2023, 11:03 AM
I can program a T3.x and T4.1 froma T3.6. I did indeed need to increase the wait time for erasing the T4.1 chip.
The problem I'm seeing is programming T3.x from a T4.1 device. It looks like it works--all the blocks...
13 replies | 4985 view(s)
-
02-17-2023, 08:06 AM
I'm reporting a bug with the USB Host library. The setup uses 2 Teensy 3.6 devices running the exact same code shown below. USB Type is MIDI. Tested with 3 different USB hubs.
Description of problem
When hot...
2 replies | 143 view(s)
-
02-17-2023, 01:48 AM
Sorry for bringing up an old thread, but I've been using a variation of this for years. Now I'm moving to T4.1 based devices and I'm experiencing issues. Did you have any troubles modifying this code to work for T4.1...
13 replies | 4985 view(s)
-
02-16-2023, 03:55 AM
I've been looking around at some other USB_Host stuff and it occurs to me, that we should be able to rewrite the begin() method as a state machine so that it's non-block. begin() could be a void method signals to the...
730 replies | 114987 view(s)
-
02-14-2023, 06:18 AM
Do what you want with this. I don't mind if you don't want to use it. Here's the updated section of USBHost_t36.
class USBDrive : public USBDriver, public FsBlockDeviceInterface {
public:
USBDrive(USBHost &host) {...
730 replies | 114987 view(s)
-
02-13-2023, 12:50 PM
I've got it rock solid now... Very snappy, and no lockups even with LTO. I had to make quite a few changes. When I have more time, I'll zip the library up and send it to you.
730 replies | 114987 view(s)
-
02-13-2023, 10:07 AM
I now have things very stable. 15 low voltage power cycles in a row without a lockup. The last issue I found that was causing a lock-up is related to compiling with link time optimization. I haven't been able to...
730 replies | 114987 view(s)
-
02-13-2023, 09:26 AM
I found another issue in claim.
datapipeIn = new_Pipe(dev, 2, endpointIn, 1, packetSizeIn, intervalIn);
datapipeOut = new_Pipe(dev, 2, endpointOut, 0, packetSizeOut, intervalOut);
//need to...
730 replies | 114987 view(s)
-
02-13-2023, 05:27 AM
I've been working through a few more lock ups. I really think every single time you send or receive data to the flash drive there needs to be some kind of timeout implemented.
I'm implemented this function:
bool...
730 replies | 114987 view(s)
-
02-10-2023, 01:23 PM
Also worth mentioning that after the USBFilesystem fails during begin, I need to call the end() method; otherwise its boolean value wouldn't return to false. Seems like it should automatically be false it it fails to...
730 replies | 114987 view(s)
-
02-10-2023, 11:05 AM
So I've swapped in a TPD3S044DBVR, and it's still no go. The only way I can get that drive up and running is to connect it to a powered USB hub plugged into the USB port. No big deal. But this brings to light a...
730 replies | 114987 view(s)
-
02-04-2023, 03:13 AM
Problem solved A17 is not located at N3. Unfortunately SD_B1_05 looks too similar to AD_B1_05. I'll get it in the next try.
3 replies | 311 view(s)
-
02-04-2023, 12:27 AM
Hi All,
Thank-you in advance for any help / guidance you can provide. I'm having trouble with a custom T4.1.
The issue is that pressing the program button on the device, rarely (about 5% of the time) causes the...
3 replies | 311 view(s)
-
02-03-2023, 02:38 AM
This is just to confirm that it's working to control my 4 quad digipots. I used to use SPI with CS pins, which worked out to 6 pins total. Nice to see that I can now accomplish the same thing using just 2 digital pins...
12 replies | 559 view(s)
-
02-02-2023, 08:27 AM
I put together a new version of a proto board I've been working on. I moved the bootloader chip from the old proto and put it on the new proto, but I'm unable to program the new device.
The bootloader blinks 10...
0 replies | 139 view(s)