Page 1 of 1

Problems ILI9341 SPI after update

Posted: Sun Mar 03, 2024 5:23 pm
by MJU20
I've updated the ESP-IDF to V5.x a few weeks ago.

I needed to compile a project that contains an ILI9341-SPI display from a project that I had in the past to an ESP32-Wroom dev board. It kept generating errors during compiling.

My guess was that this had to do with the upgrade of the ESP-IDF because this project used to work with previous versions (V4.x). After a lot of hours trying to fix this problem, I looked into the settings for the display and found out that the connections were messed up.

Strange because this project wasn't altered after the last time I compiled it. The only thing I've done was to update the component library for FC V10.

The problem must have occurred with the update for the components. The MISO and MOSI pins were "not connected," and this feature I cannot select with the new component.

Please look into this because I think that all my previous projects with the ILI9341 display may be corrupted.

Re: Problems ILI9341 SPI after update

Posted: Sun Mar 03, 2024 5:33 pm
by MJU20
The display used to work at 40MHz, but now it only works until 30MHz

Re: Problems ILI9341 SPI after update

Posted: Sun Mar 03, 2024 8:20 pm
by jgu1
Hi MJU20!

I am not using ESP-IDF to V5, but 4.xx

I have just made a test with my testprogram for ILI9341 with ESP32

The Highspeed SPI mode working fine with 80 mHz I att. my testprogram, maybe this could be helpfull, otherwice forget my answer :lol:

Br jorgen

Re: Problems ILI9341 SPI after update

Posted: Tue Mar 05, 2024 3:03 pm
by MJU20
jgu1 wrote:
Sun Mar 03, 2024 8:20 pm
Hi MJU20!

I am not using ESP-IDF to V5, but 4.xx

I have just made a test with my testprogram for ILI9341 with ESP32

The Highspeed SPI mode working fine with 80 mHz I att. my testprogram, maybe this could be helpfull, otherwice forget my answer :lol:

Br jorgen
Hey Jorgen,

Thanks for the example.
But my project wasn't changed. Before it ran at 40MHz and now (new component?), I don't get it to work at speeds higher then 30MHz.
So maybe the choice of the pins I use, but it ran previously @40MHz.

Re: Problems ILI9341 SPI after update

Posted: Tue Mar 05, 2024 5:13 pm
by chipfryer27
Hi

Did you try rolling back the component to a previous version? Library Updates / Full Database / Show up to date files. You can then select a previous version by selecting your component and clicking New Revision and selecting the previous version you wish to try.

Do note that the next time you run library update it will overwrite, but at least you will find out where things went wrong.

Regards

Re: Problems ILI9341 SPI after update

Posted: Sun Mar 10, 2024 11:47 pm
by MJU20
I've managed to make the display working again.
The only issue is that the speed is lower then before.

But It works and that is what I needed.

Thanks!!!

Re: Problems ILI9341 SPI after update

Posted: Mon Mar 11, 2024 10:13 am
by BenR
Hello,

Regarding these comments.
Before it ran at 40MHz
The Highspeed SPI mode working fine with 80 mHz
The max clock speed for the ILI9488 from the datasheet is around 16MHz but the display will work at 20MHz and above, 30MHz is pretty good going but it's well over the specification. I think I've acheived 32MHz.

The reason it may have appeared to work previously could be down to the pins of the ESP32. If you use any old IO pins then it will happily let you set the SPI clock rate up to 80MHz but the bus doesn't actually acheive this speed. If however you use the dedicated HSPI and VSPI pins then the SPI can go much faster and so speeds above 30MHz suddenly appear to not work, because they now are over 30MHz.

If you haven't changed your pins then this probably isn't the case but thought I would share my findings.

Dedicated high speed SPI pins are listed here.
viewtopic.php?p=10801#p10801