The bootloader is supposed to detect which flash chip you have connected. The 2MB (16Mb) chip means Teensy 4.0 and the 8MB (64Mb) chip means Teensy 4.1.
Teensyduino comes with a sample makefile. Your easiest path to get it to download Arduino 1.8.19 and Teensyduino 1.58. Extract Arduino, then run the installer to add all the files into the Arduino folder. Once...
I've added a link to this thread on the T4 bootloader page, in the footnotes under the BGA pinout diagram.
Doesn't help you now, but hopefully will help others avoid this SD_B1_05 issue on their future PCBs.
You could look at HardwareSerial.cpp.
https://github.com/PaulStoffregen/cores/blob/master/teensy4/HardwareSerial.cpp
Normally you wouldn't use these interrupt directly. You just use the Serial1 to Serial8...
Bourns MF-FSMF050X-2
https://www.digikey.com/en/products/detail/bourns-inc/MF-FSMF050X-2/2039256
Of course it's actually a PTC resistor, not a real fuse which permanently blows to stop all current flow. During an...
Unless it's declared static, variables within functions get allocated in the top of RAM1. You can see on the chart "Local Variables" with an arrow pointing downward. As each function runs, more of that memory is...
The polling that causes the host to transmit IN tokens happens entirely in the EHCI hardware, so there is no "easy" way.
The hardware does have an option to interrupt on NAK, but I've never tried it. If you want to...
I can confirm all the stuff beyond the 5 through-hole pin is non-essential for Teensy 4.1 to run. You'll just lose 18 I/O pins, SD socket, and PSRAM pads.
How to "safely" cut the PCB is a good question. It is a 6...
Sounds like you're really close.
At this point, probably best to share your modified WireIMXRT.h and WireIMXRT.cpp so I can others like Kurt can take a look.
If using forum's Quick Reply, click Go Advanced to get...
Usually best to use RX1 and TX1 (pins 0 and 1). Any of the others can also work, just make sure you use the connect name rather than Serial1.
Don't forget to also connect GND between the boards.
On page 3 the datasheet says it outputs 0 to Vref.
The built in VREF is 2.5V.
The first page of the datasheet says the power supply range is 2.7 to 5.5 volts.
Only updating to 1.58 isn't enough. You need to actually edit WireIMXRT.h and WireIMXRT.cpp.
ARDUINO_TEENSY_MICROMOD is defined when you select Teensy MicroMod in the Tools > Board menu. It supports MicroMod Teensy...
It depends on contents of the preferences.txt file.
Simplest way is to run Arduino 1.8.19 with Teensyduino 1.58 installed. Then click Tools > Teensy 4 Security. It will show the full pathname where key.pem is...
Every Teensy can meet your need for at least 16 digital plus 4 analog inputs.
The answer your question about the maximum, if you connect the buttons in the simplest way, 1 button per pin, then you just need to look...
If you're using Rev D2 audio shields from PJRC, simplest solution would be to just get a Rev D audio shield for channels 3 & 4. All audio shields shipping today are Rev D with the larger chip.
First check the GND pin. Maybe cold solder?
If you suspect RF interference, the first very easy thing to try is setting Tools > CPU Speed differently, and of course upload again.
The 3 boards you previously locked should work with 1.58. The locking process doesn't depend on which version of Teensy Loader you use. It is the same even if you use very old versions (which then can't use the board...
It is forever restricted to only running .ehex files created with your key.pem.
You could upload the LED blink example, but only in .ehex format, only created with your key.
Once locked, it is impossible to run...
Check which version of Teensy Loader you are using. In the small Teensy Loader window, click Help > About.
Use version 1.58. Old versions won't know how to talk to lockable Teensy.
And yes, I can confirm you...
Normally you connect an opamp to each the DAC output pin. The opamp allows you to boost (and also offset if needed) the signal so you get the desired voltage range. It also provides a strong (or lower impedance)...
Slow 50% duty cycle blink on the red LED means it is running in bootloader mode but has seen no USB communication.
I know you've said you checked your USB cable, so I can't explain why this is happening. All I can...
If you need more help, please ask on Adafruit's forum.
https://forums.adafruit.com/
This product is not Teensy, even though it is the same physical size and has a name with similar words (intentional choices on...
Any chance it's power related? Maybe Teensy + other stuff is just drawing too much current? (admittedly a blind guess)
You could try placing a powered USB hub between your PC and Teensy?
Those old 8051 chips effectively divided their clock by 12, where most instructions took 12 or 24 cycles. So an 8751 chip running at 12 MHz would have performance comparable to AVR at 1 MHz, where most instructions...
Those pins have digital pin numbers assigned.
The best way to test involves loading the LED blink example with the pin number edited so you put a known signal on a specific pin.
Yes, sadly there is indeed quite a lot of inconsistency.
In the very early days of Arduino, around 2009, two MIDI libraries existed. MIDI.h by Francois Best was one of them with functions like sendNoteOn(), and the...
Nope, that's won't work. Teensy 3.6 has different PLL clock generation and some other important hardware differences, so a HEX file built for Teensy 3.2 almost certainly will not work.
I have no way to know what really went wrong.
But regarding the question on the bottom side pins, I can say none of those pins are shared with the SD socket. Here's the relevant part of the schematic.
...
You can also get more serial ports using FlexIO. The main limitation with FlexIO used as serial is lack of support for slow baud rates. As I recall, it only has an 8 bit counter to divide the clock to get the baud...
No, you don't loose serial functions by using PSRAM. My guess is you're misunderstanding this info:
These pins are alternate locations for TX1, RX1, RX8.
You can still use them at their normal default...
Good news is USB serial at 480 Mbit/sec is plenty fast enough to transmit 1.5 million 16 bit integers per second (3 Mbyte/sec).
I believe the default transmit buffer is 8K. It should be just enough to hold 1 whole...
Last guess, any chance you powered that SD board with 5V when connected to the ESP (as shown on that page) but powered it with only 3.3V (3rd photo on msg #16) when connected to Teensy?
Maybe it only works properly...
This question is sort of like asking if a paintbrush can be used to paint a particular work of art. The answer is probably, given enough time and effort and skill. Teensy 2.0 (discontinued some time ago) could...
Yes, you need to use Windows APIs.
I have personally never used Visual Basic, so can't give any VB specific help. I've always programmed Windows software in C / C++.
In C, you open the serial port with WIN32...
While USB is theoretically 4.8X faster, in practice they'll probably both work out similarly if you've using Windows and Visual Basic. Even though your PC is theoretically many times faster than 600 MHz Teensy, the...
First check which version of Teensyduino you have. Click Help > About (on MacOS Arduino > About or Teensyduino > About) to see the version of Arduino IDE and Teensyduino.
1.58 is the latest.
Much older versions...
Let's explore whether that board has a slow buffer chip.
Here's a copy of the listfiles example with SD.begin() replaced by the special SD.sdfs.begin() that configures a slower SPI clock. The lines in green at the...
If you show us a photo with your wiring, so we can actually see how each wire connects to both boards, we could at least help check if all the wires look like they're connected to the right places.
Also recall I...
Soldering in your latest photo (msg #12) looks good. But the photo doesn't show the wires (hidden underneath Teensy) nor the SD adaptor, so impossible to check if you're connected the wires properly.
It's...
Just a blind guess, maybe all this HTTP and JSON stuff is allocating a lot of memory on the heap? Could be these libraries directly allocate memory with C++ "new" or C malloc(), or they allocated indirectly by using...
This looks like Arduino issue #1588
https://github.com/arduino/arduino-ide/issues/1588
https://forum.arduino.cc/t/invalid-fqbn-not-an-fqbn/1046630/4
Teensy version 1.57.1 was released in November 2022 to change...
In Arduino, click Help > About (or if using MacOS, click Teensyduino > About) to check which version you have.
I used Arduino 1.8.19 and Teensyduino 1.58.
If you have Teensyduino 1.56 or earlier, and if you...
Can you check if it really has 3.3V power at pin 1 (VDD)?
If powered, definitely not a good sign. Check the PJRC order, as mistakenly ordering the chip meant to implement Teensy 3.x would cause this result. So...
I do agree it's important to be specific about some things. Maybe "delay" means the latency from analog input to analog output? Or maybe delay means the worst case mismatch in timing between audio channels, either...
Unfortunately, no, this looks like "cold solder". Hopefully this info-graphic can help.
You'll need to work on your soldering technique. Don't feel bad, cold solder joints are a very common mistake and often...
I don't see what's so difficult to parse or understand here?
Several people have wanted to make these sorts of projects to infer the position of an audio source by listening with multiple microphones. I recall there...
Check out this answer to a similar question a few days ago.
https://forum.pjrc.com/threads/73469-Number-of-simultaneous-mics-possible
Teensy 4.1 has 2 digital audio ports (not including MQS and PWM) which can...
Definitely use only 1 signal and connect the speaker's other wire to GND. You would only use both signals if you have 2 speakers for stereo.
I would not recommend direct connection, for 2 reasons.
#1: You need a...
Another possible problem is the buffer chip speed. The web page says the buffer is 74LCV125A. But it also has 4 resistor, and no specific info about how those resistors are connected.
If the chip really is...
Looks like no solder between Teensy and the pins.
This will not give a reliable connection. The wires connect to the pins, but without solder you will have only an air gap between each pin and Teensy.
Schematic looks like it should work.
First check is whether everything powered up. Refer to "Power Up Sequence" on the T4 bootloader chip page:
https://www.pjrc.com/store/ic_mkl02_t4.html
Just use a voltmeter...
Maybe something you removed really was needed?
Or perhaps your design is perfect, but the soldering or other physical construction has a problem?
Please understand we can't see your hardware or schematic, and we...
Oh, yeah, I was assuming the question to be about the pins meant to connect between boards. But if the socket is meant to be the ribbon cable socket and we're talking about the pins that come in the ethernet kit, then...
For the pins PJRC sells, the official spec is 13.3mm overall length (scroll to the bottom of the page for the spec).
But perhaps they are actually closer to 14mm, according to this photo.
If this is PlatformIO, maybe an issue should be opened? They really should be checking the return status from teensy_size and consider the build a failure if it returns any error.
The short answer is 10. To accomplish this, you would use these 2 audio input features:
https://www.pjrc.com/teensy/gui/?info=AudioInputI2SOct
https://www.pjrc.com/teensy/gui/?info=AudioInputI2S2
Refer to the...
Indeed this is supposed to cause an error and not allow upload.
Maybe some non-Arduino software like PlatformIO is in play here?
Or perhaps we have a previously unknown bug where known bad code is being allowed?
First, please understand this message is normal and expected if whatever program running on your Teensy has crashed in any way where it's no longer listening for USB communication.
No Teensy boards were found on...
Download error usually means a dodgy USB cable which works well for 12 Mbit (most Arduino boards) but not 480 Mbit (used by Teensy 4.x).
Can also happen in extreme cases of other circuitry connected to Teensy and...
First step is to use the 15 sec restore. Hold the pushbutton for 15 seconds. The red LED gives a quick blink when you're within the 4 second window to release the pushbutton. Full erase takes a long time, over 1...
I'm curious which (non-memory) QSPI chip you're planning to use? Can you say the part number or give a link to its info?
Asking mostly because I'm not familiar with any chips using 4 bit SPI that aren't memory.
To answer this specific question:
It really depends on whether your code makes use of libraries or directly accesses hardware registers. The more you access the hardware directly, the more tightly tied your code...
Mostly it's just the mood I was in at the time I wrote the code. I don't adhere to rigid naming conventions.
But "12" represents that variable holds samples #1 and #2. The overall concept is a multiply operation of...
These 32 bit variables hold 2 audio samples which are actually signed 16 bits. The Cortex M4-M7 DSP extension instructions are able to use this packed data format. The end result is we get faster code, mainly because...
It is simply the reality of many independent software development groups and a common word.
I can assure you Teensy published an audio library using Audio.h long before any of the others. It was in development since...
A slow blink on the red LED (near the USB connector) means you're in bootloader mode but no USB communication has been seen. It almost always means a power-only USB cable or perhaps damage to the USB connector where...
Usually the entire chip is destroyed, but it is possible to damage just 1 pin. I haven't personally seen it, but it's been reported at least a couple times on forum threads.
Testing is pretty simply with a DC...
Maybe you have pinMode with INPUT or INPUT_PULLUP? Configuring the pin for digital I/O can cause errors with analog, and the amount of error can vary depending on your circuitry's impedance. Best to never use...