Problems ILI9341 SPI after update

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
MJU20
Posts: 244
http://meble-kuchenne.info.pl
Joined: Tue Dec 08, 2020 5:11 pm
Has thanked: 75 times
Been thanked: 50 times

Problems ILI9341 SPI after update

Post 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.

MJU20
Posts: 244
Joined: Tue Dec 08, 2020 5:11 pm
Has thanked: 75 times
Been thanked: 50 times

Re: Problems ILI9341 SPI after update

Post by MJU20 »

The display used to work at 40MHz, but now it only works until 30MHz

jgu1
Posts: 615
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 507 times
Been thanked: 132 times

Re: Problems ILI9341 SPI after update

Post 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
Attachments
StandardIli9341Firs.fcfx
(34.39 KiB) Downloaded 17 times

MJU20
Posts: 244
Joined: Tue Dec 08, 2020 5:11 pm
Has thanked: 75 times
Been thanked: 50 times

Re: Problems ILI9341 SPI after update

Post 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.

chipfryer27
Valued Contributor
Posts: 1147
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 284 times
Been thanked: 412 times

Re: Problems ILI9341 SPI after update

Post 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

MJU20
Posts: 244
Joined: Tue Dec 08, 2020 5:11 pm
Has thanked: 75 times
Been thanked: 50 times

Re: Problems ILI9341 SPI after update

Post 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!!!

BenR
Matrix Staff
Posts: 1739
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 440 times
Been thanked: 603 times

Re: Problems ILI9341 SPI after update

Post 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

Post Reply