I should also mention, a few other pins configure the chip (in the absence of MDIO usage) depending on their voltage at startup. But I believe they all have built in pullups for the settings we will use. And even if...
Here's a few possible issues I see...
VDDCR must not connect to 3.3V. This is the output of a 1.2V LDO regulator which powers internal circuitry. Add capacitors to this pin, but do not connect to any other power,...
Even though the example bytecount isn't assigned from readBytes(), I've updated the web page to show unsigned int type rather than unsigned char.
I'm curious, was this question also asked on NXP's community forum? ...
When you try larger reads, is "bytecount" still only an 8 bit number? Storing the result into only 8 bits would explain why you get 0 when you should get 512.
If this doesn't help, maybe you could consider showing a...
Use Teensy Loader's auto mode. Once the HEX file is loaded and auto mode is on (which is the default if Arduino caused the hex file to load automatically), then you just plug each Teensy into the USB and press its...
It's already on your computer because of the installer, and also on github.
https://github.com/PaulStoffregen/cores/blob/7d2e0cd09ba91aa5c7fa0b275c0b546974be11ea/teensy4/usb_serial.c#L183
Look for...
Here's my initial thoughts on the LAN8720A wiring. This mostly duplicates msg #3, but the MDIO pins are moved because conflicting with the primary SPI port is a huge cost for a feature we're probably not ever going to...
Many complex factors impact the overall speed.
A couple years ago, quite a lot of work did go into speeding up the Teensy-to-PC code. Less optimization work has (so far) been done on the PC-to-Teensy path, so yes,...
Easiest way is to use I2S2 for the mic.
https://www.pjrc.com/teensy/gui/?info=AudioInputI2S2
Then just connect its 3 wires to pins 4, 5, 3 which aren't used at all by the audio shield.
Yeah, been thinking about this recently.... we really do need better notification of filesystem / device connect & removal. It really wants to be integrated at the FS class level so the API is consistent.
Might be a...
I believe what you want is a MIDI splitter, so you can send the MIDI output from your keyboard to both Teensy and something else which receives MIDI. Right?
Many MIDI devices have this built in, called "Thru", which...
Theoretically, with powered USB hubs, up to 127 other Teensy boards could connect to the USB host port on a Teensy 4.1.
But if your goal is to just send MIDI events to a PC (implied but unclear from your question),...
Looks like Microchip has LAN8720A in stock! Ordered 25 just now.
https://www.microchip.com/en-us/product/LAN8720A#buy-from-store
If anyone's considering building ethernet prototype PCBs, now's probably a good...
Maybe look at your power supply startup and stability?
Many years ago, in the days of Teensy 3.0 & 3.1, there was a big project using an Arduino Mega and 3 Teensy boards which suffered from power supply problems. ...
I found 7 leftover LAN8720A chips from the Teensy 3.6 prototype days. Looks like the default config takes 50 MHz clock input, so if I remove the 25 MHz crystal and pulldown resistor configuring it for the crystal,...
I ran some quick experiments to see how long each operating system waits. Even though the USB spec might give a requirement, the practical reality is most USB devices probably only get tested with Windows, maybe Linux...
Could I talk you into trying with 1.57-beta1?
https://forum.pjrc.com/threads/70196-Teensyduino-1-57-Beta-1
If that doesn't solve the problem (odds are it will be exactly the same) then I'm hoping you can give me...
Your first step should probably be with the Scanner example. In Arduino, with Teensy selected from Tools > Boards (so the software updates its menus for Teensy) click File > Examples > Wire > Scanner.
Connect 2...
Maybe. I'm still investigating, so it's too early to really have a well informed opinion.
But initial testing shows 2ms delay alone is not nearly long enough, so my gut feeling is that delay probably isn't be the...
Just to document this process, here's the test I have set up on my workbench.
A little transistor circuit is connected to Teensy 4.1 pin 32 to control power to the Raspberry Pi Pico. This way I can turn it on...
I believe Bill's driver for SDIO (and also dedicated SPI) is leaving the card in the middle of a multi-sector write.
But the USB code is probably doing single sector writes. The actual access done to the SD card...
The pinout reference card that comes with Teensy 4.1 tries to give a quick overview of the pins & their capabilities. If you don't have the physical printed card yet, you can see it here:
...
So far the lockable model is only available direct from PJRC.
We have a small number left here, even though the website status is showing out of stock. It's not many, under 50, maybe not even 40. Place an order...
Tried again with these instructions, but still could not reproduce the problem!
Here's what was on the CIRCUITPY drive right before unmount and plug from my PC.
paul@preston:/tmp > find /media/paul/CIRCUITPY/...
Ok, I realized I probably missed the Boot.py step. So....
9: Remove Pico from Teensy 4.1 - Beagle 480 - Hub and plug back into my PC. CIRCUITPY drive appears again.
10: Copy the code from msg #24 into a file...
Ok, trying this again.
1: Held the button on Pico while plugging into my PC. Drive appears as "RPI-PR2".
2: Copy flash_nuke.uf2 to RPI-PR2 root directory. RPI-PR2 disconnects immediately, reconnects after...
Can you give me direct links to *all* of the *exact* files I should load onto a Pico?
Remember, I don't use Python much and I've never really used RP2040. Please do not assume I know what you mean by "the keybow2040...
PSRAM chips don't consume a lot of power. The 3.3V regulator can easily power them up.
Of the many things written here, this one seems extremely strange to me:
Can you double check this? The pushbutton is...
Well, I can't seem to reproduce the problem. Even plugged into a hub, enumeration completes successfully.
I ran the USBHost_t36 "Serial" example. Beagle 480 was connected between Teensy 4.1 and hub, as you can...
Ah, I see now that "initialization failed!" is supposed to happen due to Boot.py "storage.disable_usb_drive()".
Looks like both are completing enumeration when directly connected. Looking for cables now to plug into...
I just copied those 2 lines from msg #1 into an otherwise empty Arduino template program.
void setup() {
analogWriteFrequency(14, 2000000);
analogWrite(14, 128);
}
void loop() {
}
Ok, I've got it set up on my workbench. I copied adafruit-circuitpython-raspberry_pi_pico-en_US-7.2.5.uf2 onto 2 Pico boards. Then copied adafruit_is31fl3731 and pmk to the CIRCUITPY lib folder, and Boot.py to its...
Yes. See "Hardware" on the right side panels for the details.
https://www.pjrc.com/teensy/gui/?info=AudioOutputPT8211
https://www.pjrc.com/teensy/gui/?info=AudioOutputPT8211_2
For a quick attempt to answer the original question, a library or any other code running on Teensy can disrupt USB communication. Every Teensy is made with a pushbutton dedicated to entering programming mode, because...
Is it possible to reproduce this problem using a Raspberry Pi Pico? Even if it lacks the keyboard pushbuttons and LEDs, all that's needed is USB enumeration, right?
I have a couple Picos here, still in the original...
I can't explain why ARM is so secretive about some types of information. I'm pretty sure there's nothing any of us can say which will convince them to act differently.
But I can tell you we've had many conversations...
On Teensy 4.1 double and long double are both implemented with the same 64 bits. So while there are some finer points to compiler semantics, ultimately they both end up compiling to exactly the same implementation.
Any chance you can test with a 3rd computer?
Sometimes things get messed up with Windows (all versions) in the Windows Registry and it retains bad USB enumeration info. Testing on another Windows 10 machine might...
Most RMII PHY chips should work. But if it can't be configured with resistors on the pins, the MDIO communication might need to write to different config registers to put it in the proper mode.
RMII is pretty much...
If someone made such a chip you probably could. But as far as I know, today 8MB is the largest chip. ApMemory has said they have no plans to make a larger version, and all other SPI / QSPI RAM chips made by other...
Connect another resistor to pin 6 on the 6N138 optocoupler. Then connect a LED between the other leg of that resistor and 3.3V, where the cathode (flat edge of the LED) connects to the resistor and the anode connects...
Maybe not a stupid question. Seems we're not actually saying clearly 1.57-beta1 is required.
@Kurt - Could you edit msg #1 to say 1.57-beta1 is needed and link to that announcement thread with the download links?
...
As far as I know, there is no easy way. So with that in mind, here are some ideas about not easy ways....
You'll probably want to use Teensy 4.0 or 4.1, since this needs high speed. Your diagram shows another...
I'm not familiar with any message about attempting power cycle. Could you copy the exact syslog message, so we can the same words you are seeing on your screen?
You need at least Teensyduino 1.57-beta1. In Arduino, click Help > About to check.
Get 1.57-beta1 here:
https://forum.pjrc.com/threads/70196-Teensyduino-1-57-Beta-1
All this new stuff in MTP_Teensy came after...
Something is wrong with the bootloader chip. It should always pull Program up to 3.3V (except of course for a very brief time at powerup while it initializes).
The running program should not be able to prevent the bootloader from resetting the main chip and then taking control.
As a quick first check, watch the voltage on the Program and Reset signals. Program should be...
.... procedures for MacOS, Windows, or Linux?
If Windows, 2 ways.
#1: Just run Arduino's installer again. It will delete the old copy. Then run the Teensyduino installer. Your data is kept in...
As promised, I copied the code from msg #13 into Arduino and uploaded to Teensy 4.1.
These are the waveforms my scope sees on pins 2, 3, 4.
Pin 2 definitely has a digital audio bitstream. Any chance you might...
Teensy does not, can not, detect whether a PT8211 chip is connected. All 3 signals are outputs. Teensy simply transmits the data, even if nothing is connected.
If you show the complete code, I'll try running it...
Yeah, it usually can work plugged in backwards because Auto-MDIX automatically figures out whether the RX & TX pairs are swapped, and also because the LED when not conducting has enough capacitance between its anode &...
Yes, that looks fine.
Ordinary memcpy() is used, because the PSRAM appears as ordinary memory. It's much slower for cache misses, but other than the performance impact, from a software point of view it's the same as...
I don't know if it will work, but I do know how you would try.
Edit mk20dx128.c and look for this line:
#if F_CPU == 168000000
MCG_C6 = MCG_C6_PLLS | MCG_C6_VDIV0(18); // config PLL for 168 MHz...
Good idea on receiving with xbar.
For transmit on pin 7, you could try using SoftwareSerial. It can't receive if the 2 pins you select are not a real serial port. Maybe configure SoftwareSerial to transmit on pin 7...
Teensy 4.0 will be back in stock soon. They're in production now.
The cost of the chips & other parts have all increased recently, so we're going to need to raise the price soon. Likewise for Teensy 4.1. We've...
Nope. I automated building the package zip files (though it's currently broken on MacOS), but updating the package index is still a very manual process. I didn't do it for this beta.
I'm not planning to put much...
We need to know the sample rate to turn a number like 138 into actual time. But I'm going to guess 48 kHz which gives 2.9ms, which Teensy's time for 128 samples at 44.1 kHz.
Sure looks like an underrun condition...
Agreed, would be much better if those pictures included the time base.
It does look like a data underrun condition. If the source is USB, then the next major question is which operating system and software is...
You might consider using the OctoWS2811 shield.
https://www.pjrc.com/store/octo28_adaptor.html
It gives you the 3.3V to 5V buffer so you get a better 5V signal sent to the LEDs. It's also much more resilient if...
For many years we've been planning to migrate this forum from vBulletin to XenForo. While we're still on vBulletin, we're keeping all the forum settings fixed. Yeah, it's an early 2000s era limit, for early 2000s era...
On Teensy 3.2 & 3.5, voltage up to 3.3V is safe even when using the 1.2V reference.
The analog pins on these boards which also have digital capability (almost all of them, but not A14 on Teensy 3.2 or A21 & A22 on...
I added some comments in the 3 storage examples about the begin() function being a temporary API.
Planning to package up 1.57-beta1 in a couple hours....
A 1K resistor in series with the ADC input might help. Maybe. I'm honestly having a hard time envisioning how this power supply is built.
Also don't know what Teensy model you're using. Guessing Teensy 4.0 or 4.1?...
I'm leaning towards packaging up 1.57-beta1 this afternoon. We're far from finished for a final 1.57 release, but I hope we're far enough along to make this and so many other non-filesystem improvements available to...
CAN is on different pins, and Teensy 4.0 has 3 CAN bus ports compared to only 1 CAN on Teensy 3.2.
Many of the peripheral pins are in the same locations between 3.2 & 4.0, but CAN is not.
To explain a bit more about a detail you won't (easily) find so explicit in the code, the ADC has a self calibration process. NXP's reference manual documents this. But exactly how long the calibration takes isn't so...
If you do a simple text search on the core library files, you'll find the only files with "ADC0_CFG1" are kinetis.h (where it is defined) and analog.c.
Many programs exist to do text search. I personally use "grep"...
Simplest thing to try it use another computer with a fresh installation of Arduino 1.8.19 and Teensyduino 1.56. This code does compile without errors on a good installation of the software, so just getting a fresh...
Ok, after much thought and research and experimenting yesterday, I decided to modify SdFat FsVolume begin() so we can explicitly tell SdFat the location of the partition to use.
...
Which Teensy model are you using?
Teensy 4.0 & 4.1 default to 480 Mbit/sec speed. There is a line inside usb.c you can edit to force use of only 12 Mbit/sec speed, which is usually more tolerant of long cables and...
I used the original repository's default branch. Haven't looked at any other branches (yet). I tested against all the example programs on the main branch of the original UsbMscFat.
The 1 and only branch I've...
I've added a printPartionTable() function based on the PFsLib mbrDmp().
https://github.com/PaulStoffregen/USBHost_t36/commit/e429ead1d35feb68a47f342ac099c99c95560570
The DriveInfo example is updated to use it.
I simply do not know when PJRC will be able to make more Teensy 3.2.
People at NXP who previously (before the war in Ukraine and Covid19 shutdowns in China) told me the chip shortage would start to improve by Q2 and...