USB is the fastest way in terms of bandwidth, as it's 480 Mbit/sec and uses bus master DMA. You would need a USB hub connected to the main Teensy's USB host port.
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().
Oh, I probably didn't explain this well. The pin 8 issue is purely a matter of hardware. Or at least I think it is, but I'm going only from the words you wrote. I can't see what you've actually done or how the wires...
Looks like it even fixed the issue with my ancient sansdisk cruzr (2gb drive)
Partition Table
part,boot,bgnCHS,type,endCHS,start,length
FAT32: 1,0,0x20,0x21,0x0,0xB,0xAA,0x28,0x82,2048,2097152...
I hate issues like that.... Anyway just tried my read/write USB sketch on the GAM46 (the sansdisk ultra and the UAM46 old gen) and looks like no more hangs:
Initializing USB MSC drive...Waiting for USB Filesystem
...
Thanks all, this is very good information and I think is exactly the "problem" I am seeing. Well, less of a problem and more of my lack of fully understanding. I will troubleshoot on Monday when I can get my hands on...
Unlike Windows which only allows 1 program to open a serial port, Linux allows 2 or more programs to open the device.
But Linux doesn't handle that situation gracefully. You might imagine is would send a copy of...
The function calls queue_Data_Transfer and passes the address of StatusBlockWrapper as an argument. So it must exist in memory, and the compiler can't assume it is unmodified (unless that argument is a const pointer).
Are both trying to transmit data to Teensy pin 8?
You probably need to sever the connection between the audio shield and pin 8, so it doesn't conflict with the microphone's data. The audio shield has a place to cut...
Copying UDEV rules fixed it. But now, when i try and print something to the Serial port, it doesn't workj every time. Like there would be no output 2 times and then the 3rd time I upload it there is an output
I'm guessing you're using Arduino 2.0.4?
With the older versions of Arduino, running the Teensyduino installer was necessary. It detects pre-10 versions of Windows which need the serial driver INF and Linux systems...
Run these commands in a terminal
cd /tmp
wget https://www.pjrc.com/teensy/00-teensy.rules
sudo cp 00-teensy.rules /etc/udev/rules.d/
Physically unplug and reconnect the USB cable for the newly install udev rules...
Ok here I am releasing complete output_adat.h and output_adat.cpp files for T.3.x and T4.x.
I've been testing these on T3.1 and T4.1.
Chris O. 3/25/2023
Fix compile error on Teensy LC
T4.x -PLL frequency...
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...
I have a brand new Teensy 4.1(Authentic, not a knock-off), and I am trying to upload this program to it just to make sure it works:
void setup() {
Serial.begin(115200);
}
void loop() {
...
Thanks for the MQS details Paul. Unfortunately if it's not well suited to variable sampling times it's not going to work for me anyway. So I'll try the PT8211, possibly with a LPF after its output. I'm not looking for...
I gather you mean more than two, so if it needs to be simultaneous, then I think it would have to be serial. SPI is a possibility, but there are only 2 hardware SPI.
According to the PJRC site:
Serial has the...
The AN232B-04 app note is a pretty good explanation of what is going on inside the FT232. Just search for "FTDI AN232B-04". It should be mandatory reading for anyone whose expectations of the serial-to-USB converters ...
I think you've hit the nail on the head. The advanced settings on the USB serial port on the Windows dialog seem to indicate that it will try to buffer 4096 characters or wait until there is a gap of 16 milliseconds...
Hi everybody!
I looks like my little LED animation projects turns out to become a full blown modular animation synthesizer. For consumer size setups with 1k LEDs one Teensy 4 will be more than enough for +-10...
Having the same issue where the stereo audio is garbled on a T4.1.
I can hear the speech but it sounds rushed. I looked on the code maxwellstein shared above and copied it exactly, and still have problems.
Was...
@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...
Aviate Audio just launched a new programmable DSP guitar stompbox called Multiverse that uses a Teeny MicroMod. It has a comprehensive framework for easy development of plugin-like effects, but more about that later.
...
I'd like to build a quite a large grid out of ws2812b strips, which are 4 wire led ribbons. I'd rather not have to cut/strip wire and solder every single connection at the ends as it will be so fiddly and take so long....
Quick answer (& hoping I'm correct, as I don't have any experience with the Teensy LC): of this, I am certain: the D+/D- pads on the bottom of the T4.0 are for the USB host interface made for plugging other USB...
Hello all! I would love some help with my fun retropi portable gaming console project (link below)
https://www.instructables.com/GamePi-the-Handheld-Emulator-Console/
I'm having issues with my Pi recognising my...
Great! I ordered the cable (and an additional Teensy and ethernet adapter) this morning (with cheapest shipping) so it will be several days before I can try it out. If I don't get too wrapped up playing around, I'll let...
@mjs513 @wwatson
@PaullStoffregen (if you are watching) - thread shows last look about a week ago.
Some of this lower level USB stuff is above my pay grade (of $0) ;)
Stalls - I have looked a little bit...
Think we had an issue with USB Pipe Stall before: https://forum.pjrc.com/threads/68139-Teensyduino-File-System-Integration-including-MTP-and-MSC?p=292596&viewfull=1#post292596 but I remember similar issues - just...
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...
Both PT8211 and MQS sound pretty good to my ears. If you have a 1K resistor and 0.01uF capacitor handy, give MQS a quick try. I believe you may be surprised how good it sounds.
MQS uses a noise shaping algorithm,...
@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...
As a very first step, open your code in Arduino IDE and click Tools > Board to select Teensy 4.1. Then click Verify to check if your code is able to compile.
If your program uses Arduino functions like...
Another simpler option for you maybe to try:
That is if you call begin() before it is there, maybe we should still try to use that baud rate when it does connect:
If you go into the USBHost project sources on your...
Gave your sketch a try using the UAM46 drive and as advertised it worked but I had to reformat the disk first.
Also went back to the Wireshark Windows dump and looked at the startup for the drive on windows did...
Hal:
Yes, I do use that cable & yes, that's the interface where I connect other synths, sequencers, and keyboards to my TMPS (TeensyMIDIPolySynth).
The MIDI library calls for MIDI capability thru that hostUSB...
One forum member in the other thread you mention was very negative about the PT8211, saying it was worse than the T4 "medium-quality-audio" output. Is that to your knowledge the general consensus these days? If so, I...
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.
Yep, shown here:
Yeah it's a bit noisy, the scope trigger was hardly able to show a stable image. Here is a screenshot of the scope with a 1sec persistence:
You may want to check out this thread where I...
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...
You could try adjusting the Advanced port settings:
This is an FTDI cable on my Windows 10 PC, I can't recall if these are the default settings or I've adjusted them myself in the past.
Fabulous! Thanks very much. Looks like this approach should solve my problem and allow me to migrate my T3.6 project (that needs variable DAC write times) to T4.1. Are you using the PJRC PT8211 board here? If so, do you...
Change only c1 value by add or subtract by 1.
// -- Freq 88200 for 44100kHz ADAT, MCLK1 22,579,125Mhz -- we need 22,579,200MHz
// c0 DIV 30 -- OSC_24000000Mhz *(30 + (1055/10000)) = 722,532,000MHz
// c1 NUM...
No reason to include " defined(__IMXRT1052__) " - the 1052 was dismissed long ago after 1062 was made the chosen MCU for T_4.x and is no longer supported or maintained.
I think it's because your code is not changing the setting of the original instance. It's trying to create a new instance on the same pin, and the error is telling you the pin is already in use. Try using the setPWM...