ESP32-S3 and SPI ILI9488 Causing Core Panic with All Examples #3392
Replies: 3 comments 7 replies
-
I’m having the same problem. Tested with ILI9488 and ILI92225. Always panics as soon as tft.init |
Beta Was this translation helpful? Give feedback.
-
I thought it might have something to do with 3.x but since LovyanGFX works I ignored trying to downgrade the core. Is it 3.0 and above that don't seem to work with TFT_eSPI?? |
Beta Was this translation helpful? Give feedback.
-
OK, I downgraded to 1.0.17 and that didn't change anything so I did a little more researching and came across this in some of the user defines
adding that define magically made not only the code work but I was also able to get LVGL examples to work too. I dug a little into the code and saw that these defines change what SPI port is used and for the ESP32-S3 only SPI2/3 are available but the ESP32-S3 doesn't have HSPI/VSPI like the ESP32, it has FSPI (flexible SPI). What confuses me a bit is that not all of the example ESP32-S3 User_Setups have this or the USE_FSPI_PORT defines but if the library defaults to SPI0/1 why aren't others who have ESP32-S3 having problems? I'm doing some additional testing and after that I'll go back to 3.x Core and see if that breaks anything |
Beta Was this translation helpful? Give feedback.
-
I tried everything I can think but I could not get the library to work. To confirm that the board and screen are working I configured an Arduino Sketch with LovyanGFX and the board worked on the first try.
I have Cored Debug Messages et to Trace so I can see that the correct GPIO pins are being redefined. I was trying to use the Read_User_Setup example to confirm the configuration but that also crashes so I relied on the Debug message to confirm that the correct setup is being read.
I'm using this setup:
But as you can see I experimented with disabling TFT_MISO, TFT_RST, and SPI_FREQUENCY (most tests ran at 27MHz)
I originally started with trying to use LVGL with TFT_eSPI but when all those attempts failed I switched to just checking TFT_eSPI alone.
So since LovyanGFX works that confirms that my hardware is OK but I can't find anything to explain why my ESP32-S3 (no PSRAM) causes panics.
Beta Was this translation helpful? Give feedback.
All reactions