Teensy Error

Gabriel M

Member
A while ago, I was programming for my Teensy 4.1, and I had it connected to a 4 inch touchscreen display. It worked perfectly fine, I found fast, smooth, and supported display drivers for the board. But now about a few weeks later I am returning to the project, and all of the sudden whenever I plug in my USB cable to my Teensy 4.1 to power it on, and see progress made from before, the display lights up, and the Teensy 4.1's red LED blinks quickly 9 times before a 2 second delay, then repeating the 9 blinks. I tried looking into device manager, Teensyduino software, and Arduino IDE, and my computer isn't even detecting my Teensy even though it is plugged into the same USB port on my computer that it was back then when it was working perfectly fine.
 
This is from one of the many threads on this topic on the forum. After the restore, your PC may recognize the Teensy again.

Try the 15 sec restore. Hold the pushbutton for 13 to 17 seconds. At 13 sec, you'll see the red LED blink briefly to indicate you're at the beginning of the 4 sec window where releasing the button causes full memory wipe and restore of a known-good LED blink program.

You should see the red LED turn on bright while the erase is in progress. Erase and restore is slow, almost 1 minute on Teensy 4.0 and longer on Teensy 4.1. Be patient and allow it to complete. When finished, the red LED turns off and you should see the orange LED (pin 13) slowly blinking. Your PC should detect Teensy as RawHID (not Serial, so no COM port) in the Tools > Ports menu. Upload should work again.
 
Gabriel M, could you tell me the Name and where you got your 4" display and what drivers? I'm looking for one to connect to a Teensy 4.1

Thanks!
 
Gabriel M, could you tell me the Name and where you got your 4" display and what drivers? I'm looking for one to connect to a Teensy 4.1

Thanks!
Here is the specific display I have: Product Link (Amazon)

For drivers/libraries for the display you have options. I personally use the Adafruit_GFX and the Adafruit_ST7796S_kbv libraries, these work and are super fast. Note, these are only for writing to the display, like drawing shapes, lines, writing text, etc. I have not gotten to the touchscreen libraries yet. Your second option for display libraries is going to Hosyond's website and downloading their .ZIP file that contains example code for both writing to the display, and touchscreen examples. In Hosyond's .ZIP file, they include examples for different boards and the .zip files for the drivers, so you don't need to search the internet for the proper drivers.

Recommend drivers/libraries:
Library 1: Adafruit_GFX
Library 2: Adafruit_ST7796S_kbv
You need both libraries to properly be able to write to your display. (Assuming you use the display I linked in the beginning)

Option 2:
Hosyond Website
Look on the left of your screen and find "Program Download", press that, then download the .zip file.


The display is a 4.0 inch, capacitive touch screen display. It uses the ST7796S display driver and a separate touchscreen driver which I believe is the FT6336. This display can handle multiple touch inputs and uses a standard SPI connection interface, meaning you need MOSI, MISO, SCK, SDL pins, which I am sure you understand that. This display also sports a micro-SD card slot, and inside Hosyond's example .zip file, they have working code examples for that, which I have tested code examples they provide for the display, touchscreen, and micro-SD card slot, and I can confirm they work properly.
 
The ST7796 320x480 displays are now also supported in Teensyduino as of the 1.60 Beta 4 release or newer. Currently the latest is Beta 5. https://forum.pjrc.com/index.php?threads/teensyduino-1-60-beta-5.77176/

For the touchscreen, the Adafruit FT6206.h library supports the FT6336 and works well.

As a side note, the 3.5" version uses IPS technology so has better off-axis viewing angles and colors than the 4", but the 4" does give a little bigger display size.
 
Back
Top