I can confirm the same wild issue as dokrent.
So, I have a purpose built pcb with the teensy 4.0 footprint (little did I know the financial implications this would have...I've been through >£60 worth of teensy 4.0).
My setup:
MCU: Teensy 4.0
Bare display: ILI9341 50pin connector
Display settings: 4 wire spi
Running Voltage: 3v3 (see
https://forum.pjrc.com/threads/64468...V-power-supply)
Pins: standard SPI, RST 30, DC 5, CS 28
Optional pullups on: CS, RST
My PCB board size is about 100mm-80mm (all hand soldered with a hot air tool, soldering iron, heat bed not to blow my own trumpet, but I am very good at pcb assembly by hand + I find it therapeutic).
So after half a days soldering, I fire up the board and excellent, the ILI9341 is running at a clock speed of 100mhz (not scoped), lightning fast! Dropped the speed to a more reasonable 20mhz and left overnight for a board test (i always do this, as i have lipos connected etc and like to see if there are any heat issues etc after a 24h run). Found no issues the next morning, graphics test still running so powered off the device.
Powered back up after my return from work @20mhz and the graphics test worked fine. Enabled my SD circuitry (solder jumpers), reran the test and both the ILI9341 and SD were both running sweet.
No changes made, powered up on the third day, and nothing but a white screen on the ILI9341? So i say, must have blew the t4 some how. Hot air removed the t4, on goes the new one and again a few runs later and i get a white screen again? Checked all my pin assignments, voltages and they are all good.
I came to the conclusion that as I was forcing the T4 to be powered of of 3v3 as per (
https://forum.pjrc.com/threads/64468...V-power-supply) this was somehow messing with the SPI communication. I canned the T4 and designed and built a T4-SAMD51 clone.
Guess what, no issues at all with the SAMD51 board.(hopefully I wont get in trouble for copying the t4 footprint...)
I picked up the project again today and de-soldered my SAMD51 T4 clone pcb as I need speed! The T4 would have been perfect, so tried a few code changes, got the screen running in the setup function (static text etc), but as soon as it enters the loop(), you guessed it....white screen. Its as if the t4 is too fast on spi or something, but I have changed the clock speeds down to 5mhz and yield the same results...
I was convinced the running the T4 at 3v3 was the issue, but having read this post it sadly points towards a T4 hw issue or lib issue.
To confirm, I had the T4 intermittently working on both the adafruit ili9341 library and the optimised ili9341_t3. I've been through 3 T4s and I have 5 different ILI934 displays. (all give the same results, pull ups, no pullups, removed sd circuitry, ran the T4 at 5v I've tried it all!)
Looks like I'll be staying with the slower SAMD51 for now unless someone can shine light on the issue.
Any info/tips would be much appreciated!