This is how I2S works.
Teensy sends BCLK and LRCLK to the SGTL5000 chip. Then it transmits data bits on each BCLK. In the mode we use, the SGTL5000 has no control over the clocks. It has to use...
Type: Posts; User: PaulStoffregen
This is how I2S works.
Teensy sends BCLK and LRCLK to the SGTL5000 chip. Then it transmits data bits on each BCLK. In the mode we use, the SGTL5000 has no control over the clocks. It has to use...
On the Teensy 4.1 page:
https://www.pjrc.com/store/teensy41.html
Scroll down to "Software" and look for "Command Line with Makefile".
We use an older version of gcc. Sometimes newer...
I've merged the latest code, moved the constants into the class private members, and taken a few small liberties with the public API to make it similar to the rest of the audio library.
...
Hypothetically... if I were to add this for Teensy LC - 4.1, which PC-side software should I use for testing?
A big question I have, which can probably only be answered by experimenting, is...
I've updated the pinlist example.
https://github.com/PaulStoffregen/OctoWS2811/commit/affd97eb9d670cdabeedf94e2f78013f833a6216
Yes. SD was changed to a thin wrapper around SdFat (so all SD card access is SdFat) back at 1.54-beta3.
https://forum.pjrc.com/threads/64235-Teensyduino-1-54-Beta-3
Even though the while (!Serial) doesn't explain the lockup where pressing the pushbutton was needed, I do believe it's time to reconsider the previously failed attempt to have Serial.begin() wait.
...
Two things...
1: The same PCB is used for both Teensy 3.5 and 3.6.
2: This was my first BGA and first 6 layer PCB design, which was done under time pressure for a Kickstarter campaign launch. ...
Before merging this to the audio library, I want to see these new constants moved either inside the class definition (eg, at static const types) or to the cpp file. I can do it, if you would like to...
Lower source impedance allows for the voltage sampling capacitor inside the chip to charge (or discharge) to the right voltage during the limited time for sampling, and it also helps overcome small...
Hopefully this can help?
https://forum.pjrc.com/threads/60599?p=238070&viewfull=1#post238070
There's a photo of the wiring and a video demo!
This particular microphone has a DC offset. You...
Try uncommenting this line in usb.c
//USB1_PORTSC1 |= USB_PORTSC1_PFSC; // force 12 Mbit/sec
First, a quick disclaimer, this message isn’t a contractual promise or guarantee or legal advice.
PJRC currently has no plans to discontinue Teensy LC or any of the 32 bit products. While I can’t...
Just to repeat, I did indeed run the code you shared on a Teensy 4.1 here. I was able to upload several times without pressing the pushbutton. I can’t explain the behavior you have described. But...
This is a really intriguing idea, to just use ethernet as a raw serial-like byte stream at 100 Mbit speed. Or maybe as a raw packet delivery?
If the ethernet mac is configured in promiscuous mode...
Maybe Teensy is transmitting "*** ONLINE ***" before your PC is able to complete USB detection, and then you interpret the lack of that message as the USB device not working? But that doesn't...
Nope. The cards are always included for distributors. The distributors get the cards bulk packaged, usually in sets of 100.
But mistakes and misunderstandings can happen. Sometimes a person...
I'm really sorry this happened. Every Teensy is always supposed to come with the documentation card.
Robin & I will contact TinyTronics....
If you want the original printed card (which is much...
I might be reading too much into your question, but it sure sounds like you have a misunderstanding how of how programming Teensy really works.
The "Arduino language" really is just C++ which very...
I believe you should test without the Moxa products. If the same error happens with both plugged into the same LAN, that is much easier to reproduce and investigate.
If the error only happens...
Which Teensy pins each configuration of input & output uses are also documented in the design tool right-side panel.
The answer depends on so many unknowns. Nobody could possibly give you a definitive answer. The best anyone can do is help you figure out which things you need to know, or just make up some numbers...
Yup, PCM1808 is really simple. You can use either I2S or I2S2 on Teensy 4.x. Just connect the 4 signals. MCLK is named SCKI on that chip. The other 3 have names the same as Teensy uses.
...
That's not how unwanted ground loop currents work. They change the observed signal by altering the ground reference. The signal could be absolutely perfect, but if you alter the ground voltage seen...
Looks like this project isn't using USBHost at all.
But yeah, improved USB host MIDI transmit was recently put into USBHost_t36 and it's in 1.54-beta7 (published yesterday).
Part of that...
Pretty sure that's on me. I've never bothered to put metadata beyond the bare minimum into the resource file. It only has the program's icon and an XML file that prevents the "This program might...
Yeah, this beta was prompted by changes to the builds on all 3 operating systems.
On Windows, we were forced to get a new code signing cert. They rubber stamp reissue the old one if you renew...
Two questions for everyone using Windows
1: Is Teensy Loader chewing up CPU while idle, like it was on Linux?
2: How difficult is the download & install (before Microsoft's servers re-learn...
I2S slave mode causes the entire audio library to run at the sample rate dictated by the incoming LRCLK signal. Hopefully the fundamental reason why 2 ports running in slave mode can't work is...
It should work, but hasn't been tested.
Maybe I should package up 1.54-beta7 today, or soon-ish?
Might also be a good time to test Windows installs signed with the new cert (PJRC was forced to renew a couple weeks ago).
You can also click the button to skip the udev rules check.
I'll admit, I've sometimes wondered if the 512 tap FIR filter was really a good idea. I wrote the code more as a challenge to see if Teensy could implement such an extreme filter rather than a...
To quickly answer your 3 questions...
Yes.
For Teensy 3.2, in mk20dx256.ld on line 49:
Arduino Uno is woefully underpowered, only 8 bits and only 16 MHz. Uno also lacks DMA to efficiently move data between memory and audio hardware. It has no hope of running the audio library code.
...
Feels good to finally get these many lingering Linux issues fixed. :)
Probably not worthwhile. I tested 32 bits on Raspberry Pi 4.
Unless Kurt turns up any more issues, I'm going to cross ARM64 troubles off my bug list.
Did you run 32 bits or 64 bits on your Raspberry Pi? So far, I've only tested 32 bits.
Yup, added the hidraw rule. The usb subsystem rule also applies. But it looks like the more complex...
Today I went down the deep rabbit hole of Linux udev rules.
To make serial raw mode configure work well on Raspberry Pi, I had to rename the file from 49-teensy.rules to 00-teensy.rules.
...
Well, after much removing and restoring files, I finally tracked it down to this line (meant for some Arduino.org boards):
SUBSYSTEMS=="usb", ATTRS{idVendor}=="05e3", ATTRS{idProduct}=="*",...
Arduino kinda does support UTF8. If you type or copy non-latin characters into strings, the Arduino IDE does end up putting UTF8 encoded strings into memory. And if you transmit UTF8 encoded data...
Yes, I agree.
But so far, I can't reproduce the problem on my Linux desktop.
23786
The /dev/hidraw devices are being created with open permissions.
23787
This new size program parses the binary .elf file directly, so we're not depending on the specifics of a human readable text format. ELF 32 bit is a very stable binary format.
I tried to keep the...
Yes, a check for not enough RAM1 left for a reasonable size stack is a good idea. If you feel like doing this, please add it and send a pull request.
To show an error in red text, just print to...
Yup, a harmless warning. Fixed on github.
https://github.com/PaulStoffregen/teensy_size/commit/492d4b76d8844a770e06ac48a7cf8574b27bfdb5
I changed teensy_size to print to stderr and prefix each line with "teensy_size:". This causes the size report to be visible in both verbose and non-verbose mode. But Arduino shows it in alarming...
I might just patch the Java code to run it, if builder doesn't give a way to have its output seen in non-verbose mode.
Minor problem... looks like arduino builder discards all the stdout printing in non-verbose mode. :(
I'm going to edit the linker scripts. Now that we can print more detailed info, having too much stuff lumped together in the .text.progmem segment means we get inaccurate info.
If you grab newer...
Plan is not using builder's regex stuff.
So add this to platform.txt
recipe.hooks.postbuild.4.pattern="{compiler.path}teensy_size" "{build.path}/{build.project_name}.elf"
and delete...