Let's put newlib rebuild off until at least 1.61.
After we wrap up the Black Friday Sale tomorrow, I'm going to go on a sprint to get MTP merged, and then a series of beta releases leading up to 1.60 release with MTP.
Might merge some other...
...: SOLUTION :...
Thanks to the good people of this community SAI3 for Audio is possible! 👏
SAI3 can be used by using the files below for Audio Output. Here's how to do it.
NOTE: This uses the following pins for SAI3 Audio Output.
SD_B1_01...
You don't seem to be setting the selector registers (*_SELECT_INPUT_0) for all the pins? So some of them will still be trying to use the EMC_* pins instead of SD_B1_*.
Setting the pre and post divider for the SAI3 clock needs to be done in...
Getting a bit late here in the UK … then again, maybe sleep will cause inspiration! If I get a chance will look in more detail tomorrow, but time will be limited, family visiting.
If this proves stubborn, do you have a way to get some hardware...
Library mods look OK, though of course hard to tell without hardware… Your test code is incomplete, of course … the classic error here is to forget AudioMemory(<enough>) in setup(); 10 is usually <enough> for simple audio not using TDM etc.
Thanks for these pointers, I've changed that as well but still no audio. Maybe it's some other factor. Or other register that does not have the name to search for. I have now also created:
input_i2s3.cpp
input_i2s3.h
I attach them below, same...
This is what I have done:
* Audio.h now also includes output_i2s3.h
* Copied files:
output_i2s2.cpp
output_i2s2.h
and made them into
output_i2s3.cpp
output_i2s3.h
* Inside the new files I have renamed all names that contain:
- SAI2 -> SAI3, a...
That's actually very cool!
I've made the I2S3 files for output, no success yet, but I will do the Input as well for the sake of it.
And I added output_i2s3.h as include in Audio.h
I²S can do two channels with a single audio data pin - that's what LRCLK is for, to signal the switch from left- to right-channel data. Depending on how the /SD_MODE pin is wired on your amplifier(s), you could fit two MAX98357s and have stereo...
I have other hardware where I use the original pins. Using a 3W amplifier (MAX98357) and only 3 pins. It works great, so I figure I can do the same here but with SAI3 instead. This would be for Mono audio I believe(?). If I want left and right I...
You probably could - not true the other way around, because the hardware initialisation is in output_i2s2.cpp. A full implementation would do both, add the objects to the Design Tool, including adding the clash markers with MQS, and edit...
I'll give this a solid try by copying the i2s2 files and naming them i2s3. If I am successful I will share the files here to help others that want to use SAI3 on their custom setup.
The Audio library currently uses SAI3 to generate MQS audio. That being said, a very quick look at the datasheet suggests you could make modified versions of the I2S2 files, changing the registers from I2S2 to I2S3, and some of the pin...
Hey! I've been looking into the Teensy Audio library and it's very extensive. Many many files.
The original Teensy Audio pins are (SAI2):
I am using SAI3 and the following pins, which are alternates from the 1062 datasheet:
Image from...
It features the chip antenna but that can be changed later on, the idea is to have something custom that works as WiFi for the Teensy. Once it does I will post the Gerber, schematic and all to ease other peoples development.
p#21 came together using this set of PIN GPIO ##'s in GREEN boxes on the DevKit PICO D4 board based on those shown here on the AdaF schematic - and wiring as shown above to the Teensy - just like the prior 4201 Breakout images.
Finally got to the AdaF WiFina source spelling out and confirming the pins it is built to use:
SPISClass::SPISClass(spi_host_device_t hostDevice, int dmaChannel, int mosiPin, int misoPin, int sclkPin, int csPin, int readyPin) :
// ...
SPISClass...
I made a custom WiFi module back in the day when this was current.
I never ordered the board but I looked it over and I did all the work. I will order it, do you guys one to play with?
PJRC will have a Black Friday sale this year.
Sweet discount on Teensy 4.0 and Audio Shield. Prices to be announced when the sale starts.
Sale will run Nov 25 to Dec 2, or until inventory allocated to the sale runs out. Will limit to 50 per...
I recall reading in the RM that the PXP can work async with the eLCDIFA bit on each of their control registers needs to be enabled.
Then you can feed the PXP with to partial/full screen sized buffers, it will swap between them automatically and...
Hey all! I'm playing with a 5" 16 bit screen using eLCDIF together with LVGL which works nicely.
Me and @Rezo are a little curious on how to use the Pixel Pipeline to rotate the screen. Seems that Mike made a library.
Library...
The FlasherX example programs parse HEX files, and they stop parsing at the first EOF record (:00000001FF), which is the end of the application image, so if you send an EHEX file they effectively ignore the Loader Utility that follows the first...
DISCLAIMER: When playing with EHEX there's always a risk if you are not careful!
I can finally say with certainty that FlasherX does work fine with EHEX.
I've been talking back and forth with @joepasquariello who is the creator of FlasherX, me...
@kd5rxt-mark gave me an idea. I deleted all things teensy from packages and staging and reinstalled 0.60.3 and then did a generate key and it started working. @defragster you might want to give it a try
Generate Key and key location:
Fuse...
As shown in p#6 the Teensy Secure is present, but not found an option that results in anything showing activity.
TaskMan shows "Arduino IDE (10)" tasks - nothing adds one - unless it is once momentarily.
NOTE: Machine shutdown for UPDATES after...
Morning - still on first cup of coffee. Installed on Win 11 - IDE 2.3.3 no issues.
Looks like Loader buttons are working again:
Now to wake up some more and figure teensy-secure - been awhile since I last used it
I suggest that you read through this thread. Sure it may take a little time but there's a ton of information and knowledge in here that has gathered over the course of time when we developed this. There's code and pin mappings. Which you will...
I solved it.
First enable FIFO then SetFilters....
Here is the solution
#include <FlexCAN_T4.h>
FlexCAN_T4<CAN1, RX_SIZE_256, TX_SIZE_16> Can1;
CAN_message_t rxMsg;
void setup(void)
{
Serial.begin(115200);
Can1.begin()...
You definitely can update the Teensy firmware over a serial link. Whether it can be the same one you use to update the Nextion, I don't know. I suggest you try the FlasherX examples first, to get a sense of how it works. Try the examples of...
That warning was put in by the original author of Flasher for the T3.2. I extended it to support all T3 and T4, thus the X,and always left in that warning. For T4, there is no way that you can brick the device, so it’s “safe” in that sense. If...
Not sure if this will work but this is what I can find.
void adjustRTCTrim(int8_t coarseTrim, int8_t fineTrim)
{
// Disable the RTC before making adjustments
RTC_CR &= ~RTC_CR_OSCE; // Clear the RTC oscillator enable bit
// Set the...
I've never played with filter ranges. Only message ID filters. But I want to help you so this is my guess of what would work.
Can't guarantee anything.
#include <FlexCAN_T4.h>
FlexCAN_T4<CAN1, RX_SIZE_256, TX_SIZE_16> Can1;
CAN_message_t rxMsg...
Continuting work at a very slow pace (in between kids works wife home stuff) and I am now able to also detect BPM as part of my audio track pre analysis
At first, I was going to try port queen-mary dsp tempo detection to the Teensy, but I came...