Teensy does not support reading back the programming data. There simply is no way for you to copy the HEX file data which someone else programmed onto this Teensy 2.0.
Even if you could read the HEX file from the hardware (you can't), having...
5 of those registers are related to the pin's ability to trigger an interrupt. You don't need these unless you're using the feature where change on the pin causes an interrupt. If you do use the interrupt capability, hopefully it's easy to...
Looking at the PDF, none of the Teensy power and GND pins seem to be connected. Even if this circuitry gets completely separate power and Teensy is powered by USB, you still need to have the grounds connected.
You probably need to connect the display's DIN and CLK pins to these 2 pins on Teensy++ 2.0.
Saying "probably" since I can't see the type of display or the software library you are using. Difficult to give a certain answer with hardware and...
Each GPIO actually has 11 registers. Early on NXP designed it with only 8 (the ones at offset 0 to 1C). They added 3 more (the ones at offset 84 to 8C) shortly before finalizing the chip design, but they never edited the word "eight" to...
My copy of ILI9341_t3n looks like its default is 30 MHz.
@jean - How long is the wiring between Teensy and the display? Is the GND wire physically close to the clock? This is just blind guessing (trying to help over the internet) but perhaps...
Maybe the SPI clock is too fast?
Does ILI9341_t3n have an API for configuring clock speed? Or does it required editing inside the library? Either way is fairly easy, once you know the right place to edit.
Analog switches like 4067 are usually the cheapest way.
But with so many analog signals along so many wires, it's easy to end up with a lot of analog noise. Best to use 5K or 10K pots. Also can help if you connect a ceramic capacitor between...
Any chance you could craft a version of your program which reproduces this problem without any special hardware? Or with hardware that's relatively easy to buy and connect, like a specific sensor module sold by SparkFun or Adafruit.
To have any...
Yes, Arduino has wanted to marry a Linux SOC with microcontroller since at least 2013 when they announced Arduino Tre (which never came to market).
Also yes to some degree, except we're using NXP iMXRT rather than STMicroelectronics STM32...
If you connect 1 pullup resistor to the analog mux output rather than 16 resistors on each mux input, it can work but you will need to allow more time between switching the mux control pins and reading the signal.
Those mux chips have on...
I'm trying to keep an open mind about Arduino's future, but it's not so easy with a company like Qualcomm.
Until just a couple weeks ago, I was feeling... well, going to hold my tongue.
Good news is SparkFun made huge improvements starting...
Look at the LVDS1_CLK_SEL bits in the PMU_MISC1 register documented in the reference manual on page 1173. Also check out the LVDSCLK1_OBEN bit in the same register on the previous page.
Please understand no Teensy has ever been made with those...
I haven't used ILI9341_t3n much, but my understanding is it needs the buffers of the screen size. Is that a wrong assumption on my part?
Looking at ILI9341_t3n doubleBuffer.ino example, the buffers are 320 x 240 pixels.
#define TFT_DC 9...
As you work on the calculations part, unless the math is naturally integers you probably should use 32 bit float variables. The FPU in Teensy 4.0 and 4.1 computes 32 bit float math at approx the same speed as integers. 32 bit float can end up...
Often low latency is at odds with high bandwidth. Since the message size is only 8 bytes, I'm guessing this may be an application where "fast" means lowest latency? But really just guesswork since we know nothing about this intended...
Please confirm, the code from msg #6 is supposed to reproduce the problem if I leave pin 21 disconnected and add a 32 kHz crystal?
I'm specifically asking about pin 21 before I put more time into trying to reproduce this problem.
I'm running your program from msg #6 on a Teensy 3.2 with the GD32 bootloader chip, powered by a USB cable connected a USB hub. But nothing seems to ever happen. I have not observed the LED blink, not even once so far.
Maybe more is needed...
Does this dim slow blink happen only once, or does it continue over and over if you don't do anything?
Continuing slow dim red LED blink means you're in bootloader mode and the bootloader is waiting but has not yet heard any USB communication...
Directly, no. The triggering of DMA channels which controls the signal timing comes from a hardware timer with consistent speed independent of the CPU.
Indirectly, you could see a slight secondary effect. The DMA controller runs from the same...
I have not seen this behavior happen here.
Can you test on your boards using a simple program like File > Examples > 01.Basics > Blink?
If the problem happens with your program, but not with simple example programs like Blink, I hope you can...
I've disabled blocking for some of the large netblocks. Hopefully it will allow you to access the forum without VPN.
Maybe, but this description from its documentation doesn't inspire confidence.
Sadly mod_evasive doesn't sound like a good...
Thanks @h4yn0nnym0u5e for keeping up the good fight!
Received an update today that the chips are still expected to exit the factory on 9/30, so should be available in about 3 weeks.
Perhaps noise is coupling to the Program signal? It very well may be more sensitive between the different chips.
I'd recommend trying a 1K or even 100 ohm resistor between Program and 3.3V, or just directly wire Program to 3.3V if you're sure...
Maybe your build is mistakenly including files from some non-Teensy board(s)?
We don't define a "PortReg" type (or C++ class) anywhere in Teensy's headers or code. The only plausible explanation for this sort of error is accidentally including...
Please check whether your boards were built with MKL02 chips purchased from PJRC. Also please check you have the T4 version and not the older version which implements Teensy3. PJRC always ships chip orders with a printed receipt that has the...
How long did you wait? The flash erase is very slow, more than 1 minute on Teensy 4.1.
Eventually it should complete and the board reboots. Red LED should turn off and orange LED should blink slow.
I looked at the server log files just now. We're still getting a lot of bot traffic, but it's currently at a pace the server can manage. Some of the access is *still* from the botnet that took down the forum on May 27, 2025, repeatedly trying...
You can edit the core library eeprom code for a small increase. But you should not attempt to use more of the flash for eeprom.
For a large increase and using more flash, best to go with LittleFS_Program and store your settings in small files.
For speed this slow, you should focus on the software side first, not hardware.
SD cards use 512 byte sectors. You can get much better speed if you collect your data into a buffer of 512 or 4096 bytes and write all of those bytes at once.
SD...
Sadly no. It probably could work if you just connect Teensy's 6 SDIO signals directly to the memory chip. But that's not how Adafruit designed their circuit board. If you look at the schematic, you can see 2 of those 6 signals on memory chip...
If you get SdFat's bitbang SPI to work through SD, please share the confirmed good config so I can add it to the SdFat Usage example list of alternate ways to use the library.
I'm also a bit curious why? Maybe a PCB already wired with the...
Yes, you can use Wire.endTransmission(false) for the first 7 if you don't want to send a stop condition. Of course you should use regular Wire.endTransmission() for the last transfer to send a stop.
Or you could edit the library code for a...
Those bottom pads on Teensy 4.1 are not SDIO. Check the schematic on the Teensy 4.1 page (scroll down to Technical Information near the end).
A chip like W25N02 won't work on SDIO. The 6 signals it needs are completely different than the 6...
But is editing the library buffer size really valuable for this use case? Writing all 1000 in a single large transfer would be only slightly faster than performing 8 writes of 120 bytes. Sending the I2C address, register address (or whatever...
When you edit BUFFER_LENGTH also edit rxBufferIndex, rxBufferLength, txBufferIndex, txBufferLength. They're in WireIMXRT.h starting at line 171. These are currently uint8_t. If you make the buffer larger than 255, they will need to become...
I doubt 50 million interrupts per second is practical no matter what you do, but to go faster you'll need to use attachInterruptVector() instead of attachInterrupt(). You'll need to set up the hardware and ack the interrupt and other low-level...
Yes, lockable works exactly the same if you don't burn your key and lock it into secure mode, and you don't write to the boot config fuses.
With standard Teensy, you can't write to the boot config fuses even if you try. Those critical bits are...
Did you learn the actual cause of this problem?
Sharing this info might help other people who later find this conversation by search. Followup info about the actual cause of specific problems also helps us to answer questions better on this forum.
Slow steady blinking on the red LED (the one near the USB connector) means Teensy is running in bootloader mode where it expects your PC to connect to the USB port, but no USB communication has been heard.
Maybe the Program button is getting...
You could include imxrt.h if your goal is to do everything with only the hardware registers but never use any Arduino APIs.
This header is one of many automatically included when you use Arduino.h, so you always have access to all the hardware...
Teensy 4.0 is a 6 layer PCB. You're only seeing 2 of the 6 layers in these images.
The trace you're not seeing is on layer 3. Here's a peek at that layer and the specific trace which completes the red LED connection.
I should probably...
We're heard many people report problems with this type of SD card adapter. Your best path would be the get a simple one that has no electronics (just plain wires between the SD card and Teensy) and power it with 3.3V from Teensy. But if you...
Sure, just cast a pointer to the data to an int and print it.
Serial.println((int)data_buffer, HEX);
You can also find the .map and .lst files the compiler creates in a hidden temporary folder.