Can't compile the ESP32 With Display gLCD TLT9341

For general Flowcode discussion that does not belong in the other sections.
monie
Posts: 73
http://meble-kuchenne.info.pl
Joined: Wed Oct 19, 2022 4:06 pm
Has thanked: 1 time

Re: Can't compile the ESP32 With Display gLCD TLT9341

Post by monie »

user: esp-idf-v5.0.1

medelec35
Matrix Staff
Posts: 2086
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 644 times
Been thanked: 702 times

Re: Can't compile the ESP32 With Display gLCD TLT9341

Post by medelec35 »

Hi Monie
You have not followed the instructions as they state to install esp-idf 4.2.
Any version higher is not officially supported yet so there is no guarantee your project would even compile.
Ben is working on v5 but that is very much work in progress.
All you can do is report that the component (in your case the gLCD TLT9341) does not work. with esp-idf 5
Then if you want it to work, revert back to esp-idf 4.2.
Martin

mnfisher
Valued Contributor
Posts: 1630
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 142 times
Been thanked: 761 times

Re: Can't compile the ESP32 With Display gLCD TLT9341

Post by mnfisher »

Hi Monie,

I posted a brief video of 'downgrading' v5 to v4.

See https://youtu.be/SzQahST-EzU

Martin

monie
Posts: 73
Joined: Wed Oct 19, 2022 4:06 pm
Has thanked: 1 time

Re: Can't compile the ESP32 With Display gLCD TLT9341

Post by monie »

Hi mnfisher

Look here:
Installations ha failed with exit code 1.jpg
Installations ha failed with exit code 1.jpg (43.22 KiB) Viewed 3392 times

Monie

mnfisher
Valued Contributor
Posts: 1630
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 142 times
Been thanked: 761 times

Re: Can't compile the ESP32 With Display gLCD TLT9341

Post by mnfisher »

Hi Monie,

Odd - you have Setup - ESP-IDF Tools 2.3 and a directory of c:\users\sun\desktop.....
Maybe an old version on your machine running instead?

In the video (sorry it's a bit fuzzy) - it is definitely v4. so something is not right.
It is definitely worth trying to install in c:\espressif - the default? It might use the path of an 'existing' install if there is one. Have you tried uninstalling everything (Start->Add or Remove programs) ?

Martin

monie
Posts: 73
Joined: Wed Oct 19, 2022 4:06 pm
Has thanked: 1 time

Re: Can't compile the ESP32 With Display gLCD TLT9341

Post by monie »

Hej Martin

I have now uninstalled everything related to Flowcode v10 !
And reinstalled Flowcode v10. And also installed the ESP-IDF Toolchain again.
And Flowcode v10 compiles without problems.

But Can't get Esp32 Ch340g Wemos Board Uno R3 D1 R32 and SPI ILI9341 to work together. Do you have a suggestion for Connect between ESP32 og Display as well as a simple code example?

Monie

mnfisher
Valued Contributor
Posts: 1630
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 142 times
Been thanked: 761 times

Re: Can't compile the ESP32 With Display gLCD TLT9341

Post by mnfisher »

Hi Monie,

Compiling for the esp32 is working. Excellent.
The SPI Il9341 display should work well - the usual problem is choosing the correct pins. One tip is to connect to the esp32 using a terminal emulator (I usually use Putty or RealTerm) and see if it outputs any helpful info (it might for example give 'pin not supported for SPI' or words to that effect.

So - I used pins MOSI - A26, MISO A25 , CLK A27, ChipSelect A15, DC A12, Reset A14 and (optional) LED A2 - but see Ben's message about using high-speed SPI (viewtopic.php?f=3&t=1851&p=10866&hilit= ... ben#p10866)

Martin

monie
Posts: 73
Joined: Wed Oct 19, 2022 4:06 pm
Has thanked: 1 time

Re: Can't compile the ESP32 With Display gLCD TLT9341

Post by monie »

Hi mnfisher

pins: Esp32 Ch340g Wemos Board Uno R3 D1 R32 and TFT SPI ILI9341

Attached image:
ESP32 Wemos Board Uno R3 D1 R32.jpg
ESP32 Wemos Board Uno R3 D1 R32.jpg (94.24 KiB) Viewed 3338 times
Would you be helpful with SPI ILI9341 about which pen need to Esp32 Wemos Board Uno R3 D1 R32 to be used Display.

The connections are not specified here MOSI = A26 0g MISO = A25 etc.
Where Esp32 Wemos Board Uno is listed as IO18 and IO19 etc.


Monie

mnfisher
Valued Contributor
Posts: 1630
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 142 times
Been thanked: 761 times

Re: Can't compile the ESP32 With Display gLCD TLT9341

Post by mnfisher »

If the board is compatible with Arduino d13 is SCLK d12 is MISO, d11 is MOSI and D10 (usually CS) these are labelled on the board as : 18, 19, 23 and 5 respectively - so try those first.

The board maybe doesn't break out all the I/O pins.

There is a pin diagram at https://www.botnroll.com/en/esp/3639-we ... inout.html

Martin

Post Reply