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.
Problems ILI9341 SPI after update
-
- Posts: 250
- http://meble-kuchenne.info.pl
- Joined: Tue Dec 08, 2020 5:11 pm
- Has thanked: 75 times
- Been thanked: 52 times
-
- Posts: 615
- Joined: Thu Dec 03, 2020 8:25 pm
- Location: Denmark
- Has thanked: 509 times
- Been thanked: 132 times
Re: Problems ILI9341 SPI after update
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
Br jorgen
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
Br jorgen
- Attachments
-
- StandardIli9341Firs.fcfx
- (34.39 KiB) Downloaded 24 times
Re: Problems ILI9341 SPI after update
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.
-
- Valued Contributor
- Posts: 1188
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 289 times
- Been thanked: 418 times
Re: Problems ILI9341 SPI after update
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
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
-
- Matrix Staff
- Posts: 1760
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 447 times
- Been thanked: 607 times
Re: Problems ILI9341 SPI after update
Hello,
Regarding these comments.
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
Regarding these comments.
Before it ran at 40MHz
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 Highspeed SPI mode working fine with 80 mHz
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
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel