Teensy 4.0 "Professional Use"

neltnerb

Well-known member
Dear Forum Folks,

I am using a Teensy 4.0 in a prototype that needs to be reliable, but I'm having a few issues that are troubling me and I would like advice on making things work with as few hardware risks as possible. I'll try to enumerate the issues and questions for clarity.

Is there a "high reliability" version of the Teensy 4.0? Maybe I should be buying a different part number.
  1. It has run in a project for about a year on five different identical prototypes, including keeping several values in EEPROM safe over an extended period.
  2. One of the teensies permanently failed without any clear cause.
    1. The power is provided by a 5V switching regulator of my own design using a TPS629330. It has run continuously for years in several projects (schematic below).
    2. Not including the 2.2uH/22uF filter on the switching regulator, the Teensy has another 10uF right next to the socket where I plug it in.
    3. Every pin connection has a 50 ohm resistor on it both for protection and for reflections. (schematic below, some resistors located at source at peripheral).
    4. I cut the power trace to the USB port and provide power exclusively through the PCB it is plugged into.
    5. I am still using the USB port for data.
  3. I am using the pins under the chip with SMD pads because I am using the SPI1 interface.
    1. Is there any SMD part number that ends up with the pins all at the same height? It's frustrating having the SMD connector a little taller than the TH connector so the board is always tilted.
  4. Board level power entry comes from a 12V wall wart (schematic below).
    1. Has a reverse protection diode, fuse, 15V TVS diode, a T-filter, and a 10uF capacitor after all that. And then the custom power regulator (schematic below).
    2. After the teensy failure the power supply to the board has identical characteristics to others of the same model and all power supplies measure nominal voltages.
  5. I had a second working Teensy that I installed and after coming back after a bit it was blinking orange or red. I could not get the USB Serial port to work again even with power cycling. I reprogrammed the firmware (which I can't do in practice) and it even lost the EEPROM values! What could cause that? I didn't even know that was possible without I was able to reprogram it and recalibrate to save new EEPROM values, and it seems to still be there after power cycling but I don't even know how to intentionally delete the EEPROM without writing a custom sketch for it.
  6. I notice that the push button on the Teensy (which I know is not reset) seems to put it into a mode where USB Serial is not functional. Do other folks remove this button to avoid issues? I can power cycle (after the apparent total flash/eeprom erasure) and I can talk over USB Serial again.
So I am looking for recommendations for how and where I can make the Teensy 100% reliable, I'm wanting to put these in ~100 devices eventually and they are not going to be field repairable. Are these common issues? Is the Teensy not recommended for protototypes going into field testing?

I've actually used the v3 teensies in hundreds of prototypes that have never had an issue so I'm really confused by this. Every other component on the board is in provably good condition after swapping the teensy for a new one, my analog circuit is on a separate power rail though I suppose.

Here are the Teensy connections.

1793117582483.png

Power Inlet:
1793117649575.png

And the Teensy Supply:
1793117759860.png
 
You have not said what the Teensy is controlling. Are there any inductive load ? EMC and EMP could cause issues.

How is the PCB layout ? Placement of components is also important. We can't see your board.
 
I see a HEATER_V+ (7V) line. Is that intermittently drawing lots of power causing possible power spikes?

Since you have a cap on the Teensy 3.3V line, are you powering circuitry off that regulator rather than your separate power circuit? I try to follow the rule to never use the Teensy 3.3V if I can put a separate regulator on the baseboard and you have everything except one for 3.3V.

You have a VDD_ANALOG (5V) power output. Any chance 5V is making it back to the Teensy. Unlike the Teensy 3's that have been reliable, Teensy 4 doesn't like anything higher than 3.3V including on its analog pins.

Is there a "high reliability" version of the Teensy 4.0? Maybe I should be buying a different part number.
There is only 1 version of the Teensy 4.0. Technically there is also a lockable version, but it is electrically the same. The Teensy 4.0 and Teensy 4.1 as modules have proven to be very reliable. Most failures have been traced to an issue at the system integration level.

There is an industrial grade version of the NXP processor (Teensy uses commercial grade parts). Those parts only extend the temperature range spec, so they do not offer a reliability improvement unless you are pushing thermal boundaries, You also can't buy Teensy with those installed anyway. If thermals are a concern, then underclocking will help.
3. Is there any SMD part number that ends up with the pins all at the same height?
There are no off-the-shelf parts to my knowledge. You could cut or sand down the longer pins to make them more even, but then you do lose the chamfered lead-in, so a little more likely to damage the female socket while inserting. Finding slightly longer side pins might be an option.
5. I had a second working Teensy that I installed and after coming back after a bit it was blinking orange or red. I could not get the USB Serial port to work again even with power cycling. I reprogrammed the firmware (which I can't do in practice) and it even lost the EEPROM values!
If the USB port was not working, how did you reprogram the firmware? If you long-pressed the Program button to recover the Teensy, that will erase the entire Flash including the region used to emulate EEPROM before reloading the blink program. There is no separate EEPROM chip on the Teensy.
6. I notice that the push button on the Teensy (which I know is not reset) seems to put it into a mode where USB Serial is not functional. Do other folks remove this button to avoid issues?
Pressing the Program button for a short time puts the Teensy into download mode where it waits for a program to be downloaded. With no USB connected, the red LED near the USB connector will blink at 1 second rate. A power cycle should clear that mode. If a USB cable is connected with Teensy Loader running, it will cause the latest .HEX file to be downloaded.

A long press of 13-17 seconds (until the small red LED by the USB connector flashes) results in the Flash chip being erased which takes a minute or two and then the blink program is reloaded. There is no way to disable that functionality short of removing the button itself or cutting a trace to it, as it connects directly to the bootloader chip. If the Teensy is in an enclosure of some kind, accidental presses usually aren't an issue.
 
Back
Top