Looks like you copied everything that was inside the original MTP_Teensy folder to the Documents/Arduino/libraries folder. But you should have copied the MTP_Teensy folder (with all of its contents) to...
If you find MTP_Teensy inside a "libraries" folder, don't make the mistake of dragging that libraries onto the libraries inside Documents/Arduino. Doing so will result a libraries folder inside the libraries folder. ...
This error from msg #16 (edit: and now also msg #24) means you're still missing files that need to be installed on your PC.
Hopefully now that you have experienced the way Arduino IDE and Teensy Loader...
If you really want to pour more time into it, you could remove the NCV8186AMN330TAG and then try externally applying 3.3V. Best to use a current limited lab bench power supply with a limit around 150mA. Even if you...
If you want to attempt replacing the NCV8186AMN330TAG regulator anyway, I'll be happy to give you a spare part at no charge when you order a replacement Teensy 4.1. Just mention this forum thread in the "additional...
Looked at the alternate functions on all 12 signals which connect to the ethernet chip. None of them have I2C functionality.
My understanding of the ethernet chip is it's supposed to remain in a low power mode until...
Yeah, could solder wires, but really not excited to work with #36 enameled wire needed to make this work at 0.5mm pitch. I've done that a few time when really necessary and urgent, and every time it's been very...
Yes, more or less, except those "while" loops. Probably more like this:
Wire.requestFrom(0x6B, 2);
if (Wire.available() == 2) {
dataBuffer = Wire.read();
dataBuffer = Wire.read();
}
Wire.endTransmission();
How exactly depends on the specific I2C chip. Many of them are similar, there is no standard. In fact, I2C standard doesn't require any sort of register-based access model. But most chips do have that sort of access...
Blackmagic measures only sequential access speed.
For playing multiple files without large buffering, the random access read performance matters. Use a benchmark program which measures random access without queue...
No. "Error compiling" means Arduino IDE could not use the files on your PC.
It didn't even try to talk to Teensy, because the code on your PC is not correct. This is the way the Arduino software works. It compiles...
Same problem as msg #9, the last essential part of the program was deleted by mistake.
Hopefully this picture can make it clearer?
Please find the original code. Scroll to the end of the Arduino window and...
I looked at Digikey. Says they have 5 of this chip.
https://www.digikey.com/en/products/detail/analog-devices-inc/LTC2453CTS8-TRMPBF/1931289
But when I try to buy 1 of those 5, says it's backordered. :(
Looks like you accidentally deleted the last part of the program, while trying to get rid of the extra junk that was at the end.
Recommend finding the original code again. Probably best to just open a new Arduino...
Please remember, we can't see your screen. Showing us the error messages is good, but not enough. We also need to see the code that was in the Arduino window.
When posting the code, in Arduino type CTRL-A to select...
It's not finding the SerialFlash library.
Simplest solution is the run the Teensyduino installer again. On the screen for which optional libraries to install, best to just install them all. SerialFlash is one of...
Don't use that old extram and SPIFFS_t4 stuff. It's outdated stuff from 3 years ago, the earliest experiments before LittleFS and proper PSRAM support were added.
Use LittleFS to access the flash memory. LittleFS...
Looks like you're using a bunch of stuff that depends on interrupts. Leaving interrupts turned off is a pretty sure way for 1 or more of those things to get stuck.
Ok, will look at this again for LTO. Yesterday I tested only with the 5 optimization levels we're currently offering in the Arduino menu, which doesn't (yet) have LTO.
Any chance you could show the code for one of those simpler projects? Or if it's already shown anywhere, give me a link to it?
I need to have a way to reproduce the problem to have any hope of investigating and...
Very mysterious. They exactly the same hardware even made in the same production batches, except the ethernet chip is not placed on the _NE boards.
Can you show us the hardware you're using for testing? Is it 2...
To confirm Wire2 really does work on Teensy 4.1, I connected a SSD1306 OLED display to pins 24 & 25 on Teensy 4.1 and ran the Adafruit_SSD1306 library "ssd1306_128x64_i2c" example. I edited the code to "Wire2" and...
Committed a fix for this startup with other optimizations levels.
https://github.com/PaulStoffregen/cores/commit/3f95c8e6f632d76ca20210cd5edef92fa791191d
Hopefully this covers all the cases?
Without any way to see, let alone reproduce the problem, can only really guess about the problem.
But it is pretty well known that access to the card from both audio library and main program isn't safe. My best...
Welcome back Nantonos! Good to see you again. :)
If you're using the ordinary SPI library and analogRead(), odds are pretty good it will "just work".
You could set Tools > CPU Speed for 396 or 150 MHz to get...
3 peripherals have SPI capability: LPSPI, FlexIO, FlexSPI
LPSPI is the normal SPI ports. Officially the datasheet says 30 MHz is the maximum, on page 67. Anything over 30 MHz is considered overclocking. Many...
Should work. There is certainly no hardware resource conflict.
But to access the SPI2 signals, you will need to solder wires to the pins normally used for PSRAM. It can be done, as you can see in the photos when I...
Built in SD card on Teensy 4.1 uses SDIO. It does not use SPI2. Those pins do also have SPI2 function, but SPI2 alternate function is not assigned to the correct pins. Only SDIO can be used for the build in SD card...
Yes, more or less. Mostly less. Teensy 4.1 doesn't have quite the analog performance of Teensy 3.2. As a general rule for analog features embedded inside mostly digital chips, improvements in silicon process that...
Here is the info you seek, including some important details about powerup sequence if you remove U2.
https://forum.pjrc.com/threads/71167-4-1-latest-schematics?p=313400&viewfull=1#post313400
If you can't get it solved, maybe best to ask for help on Arduino's forum, as this really sounds like a IDE software issue (probably) not specific to Teensy.
https://forum.arduino.cc/c/software/arduino-ide-2-0/93
...
Yes, Teensy uses a special SD library which is really just a thin wrapper for SdFat. Teensy also uses a customized copy of SdFat. Normally these are supposed to come automatically with the platform, at least when...
As a first troubleshooting step, try running Teensy from a battery or "floating" power supply. Make sure the USB cable is unplugged and no other wires apart from the MQS output connect it to any grounds on other...
memcpy() is widely used by non-driver libraries and programs. Killing the huge benefits of caching for all normal uses would have a terrible performance hit.
Yes, exactly.
Rev D2 audio shields are in stock. They shipped to most distributors this week. Most should have it in stock soon.
If you just want to get sound output, MQS is probably your best option. It's basically PWM with...
In today's market you're probably not going to find many of the older pre-USB3 hub chips from major semiconductor companies like Texas Instruments. Even though the parts are still shown on their websites as if they...
No, that's not correct for SdFat.
Setting the CS pin to BUILTIN_SDCARD is only for the SD library SD.begin(). It is a SD library convention which does not apply to SdFat.
When you use SdFat functions, either...
First part answered on another thread where you asked the same question.
https://forum.pjrc.com/threads/72029-hardware-essentials
The audio library has this tone detection.
...
That diagram is missing 3 of the 4 wires you need for the SD card on the audio shield to work, and 1 of the 4 wires appear to be shown connected to the wrong place.
The 4 connections you need are:
pin 10 to SDCS -...
In the audio tutorial material, almost all of it works if you use Teensy 4.0 and the Rev D or D2 audio shield (the one meant for Teensy 4.0).
https://www.pjrc.com/store/audio_tutorial_kit.html
As far as I know,...
Just a completely blind guess, but if the keyboard is arranged in a row-column requiring scanning to read out all the keys, often extra delay is needed between driving the rows and reading the columns.
Have you tried deleting "PROGMEM" from all the places with "error: section attribute not allowed"? Seems like the easy and obvious first step.
Looking only briefly at your code, I see you have a "lib" folder where...
You really should use real pullup resistors, between 1K to 4.7K. But if you omit them, if using the Wire library on Teensy 4.0, the weak internal pullup resistors are activated. They result in a weak / slow pullup...
As for what went wrong, almost impossible to guess from only this info. Just a defective board doesn't make sense if 2 have failed. Likewise for ESD, unless you have a really horrible environment (you would know as...
To start troubleshooting, first get a DC voltmeter. Measure the voltage between VIN and GND. It should be 5 volts, from USB. Next measure the voltage from 3.3V to GND. If Teensy powered up, it should be 3.3V.
If...
If you build your own PCB using the T4 bootloader chip, it will work as lockable Teensy.
If you want your custom board to work as standard Teensy, do not run the LockSecureMode sketch, and run the small program shown...
If you really want to do this, maybe you're now ready for that linker scripts rabbit hole (as mentioned in the last paragraph of msg #2).
To avoid the need for a dynamic loading process that re-writes all the...
"Error: Secure mode can not be set" means you have standard Teensy.
Aside from this error message, here are a few ways you can tell which Teensy type you have.
1: The printing on the anti-static bag is different,...
To understand, "const char *" and "char *" are both pointers to characters. Having "const" means you will only read the character. Normal "char *" can read or write.
A string literal is a read-only group of...
Best way is to build your code as audio library classes.
https://www.pjrc.com/teensy/td_libs_AudioNewObjects.html
Using the queues is possible, but they are designed to automatically buffer (queue) audio blocks if...
This isn't enough. Nobody can see the problem, let alone reproduce it, by such a short code fragment.
The best I can tell you from only that code fragment is I and countless other people have successfully written to...
Let me answer with another question...
Will the calling code ever use a string constant (just using string in double quotes rather than a variable, or "string literal" in C language jargon)?
If so, then the...
1.58-beta3 is called "0.58.3" in IDE2's Boards Manager. Just click the drop-down list to select it and click "Install".
The betas are numbered this way to prevent IDE2 from prompting every running the latest stable...
Maybe this advice will come too late, but IDE 1.x has a feature called "portable mode". You create a folder named "portable", which causes that copy of the IDE to be completely self contained. The Teensyduino...
The ADC input is supported by the latest audio library.
https://www.pjrc.com/teensy/gui/?info=AudioInputAnalog
Reading it this way with the ADC library is pretty much impossible to get the sample rate to closely...
No CAD schematic exists. I don't use CAD schematics. None exists in Eagle, Kicad or any other format.
For layout, I use an ancient version of Pads. I also follow a pretty unconventional process (no CAD schematic)...
I'm pretty sure "error: 'AudioPlaySdWavX' does not name a type" means this project has other files you also need to copy.
Like the main code, and all software source code, attention to detail is important. This is a...
Looks like something went wrong when you copied this code into Arduino.
Here is a portion of the code shown in msg #1:
// variables for writing to WAV file
unsigned long ChunkSize = 0L;
Partly inertia, none of the examples were deleted in the move to SdFat wrapper.
But also partly for testing and maintaining compatibility. My perl script that checks if all examples compile won't be able to tell if...
Maybe the diagram and photo on this message can help?
https://forum.pjrc.com/threads/57167-Teensy-4-0-I2S-Support?p=212481#post212481
If you wired it up and it's not working, don't be shy, show us photos of your...
Yes, but with a deprecated warning.
https://github.com/PaulStoffregen/SD/commit/3f44f07339f2d67e7e92913869cf4fd85bbe80fc
To explain a bit further, SdVolume is certainly not the intended public API to access the SD...
Oh, now I see where things are going wrong.
Those lines are commented out because "Sd2Card" and "SdVolume" are just compatibility classes to allow programs which depend on some APIs from the ancient Arduino SD...
The code in msg #1 is part of the SdFat library. It's not meant to be compiled automatically by the Arduino IDE when your program includes either SD.h or SdFat.h.
Maybe you copied all this code into the Arduino IDE...
I need to speak carefully. PJRC signed a NDA with NXP. The finer details of the IMXRT security are NXP confidential.
This capability might not actually work on standard Teensy, because of the way the lock bits...
Those early gcc commands are with "-E", which gcc documents as "Preprocess only; do not compile, assemble or link". Arduino uses this to discover which libraries are actually needed. Old versions of Arduino only...
The address will (probably) change as you make any edits to your program. All the files you've created on SD cards that are position dependent code will need to be rebuilt every time the buffer address changes. Maybe...
The answer is yes, you can. But a few important caveats exist.
The easy part is the array must be 16 bit aligned. That's why it's an array of uint16_t in the core library, not an array of char as in msg #10.
By...
Yes, that is the concept, though it's really only a recommendation based on testing at room temperature with free air exposure.
If you continuously draw 250 mA and ethernet is on and a SD card is regularly writing...