ESP32 & Ili9341 not working

Any bugs you encounter with Flowcode should be discussed here.
jgu1
Posts: 615
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 509 times
Been thanked: 132 times

ESP32 & Ili9341 not working

Post by jgu1 »

Hi again!

Sorry, it´s me again. :roll:

I have just tested the ESP32 with an Ili9341, but no luck :( Again Im I doing somithing wrong or? Please I have checked connection many time. It work on Arduino.

Br Jorgen
Attachments
ESP32 NOT Working with ILI9341.fcfx
(13.6 KiB) Downloaded 157 times

stefan.erni
Valued Contributor
Posts: 760
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 150 times
Been thanked: 171 times

Re: ESP32 & Ili9341 not working

Post by stefan.erni »

Hi Jorgen

I'm also fight with an ESP32 and Ili9341.
There are two Ili9341 driver in FC9.

Ili9341 SPI,
Ili9341 Serial, 8Bit Interface,16Bit Interface

And it's a mix of PortA , PortB ,Pin and GPIO
Is there a way for ESP32 to understand PortA , PortB ?
Can you have a look if we work on the same way to connect the display?
Page 4 from
M5-Core-Schematic(20171206) (1).pdf
(870.96 KiB) Downloaded 173 times
regards

Stefan
Attachments
esp32_datasheet_en (1).pdf
(1.05 MiB) Downloaded 174 times

BenR
Matrix Staff
Posts: 1756
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 446 times
Been thanked: 606 times

Re: ESP32 & Ili9341 not working

Post by BenR »

Hello,

Here is the program with connections reworked for the M5 board,
ESP32 ILI9341 BR.fcfx
(13.67 KiB) Downloaded 203 times
PortA is GPIO pins 0-31
PortB is GPIO pins 32-63

We have just numbered them like this to allow the GPIO to work with the Flowcode style ports.

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

Re: ESP32 & Ili9341 not working

Post by jgu1 »

Hi Ben!

IPlease have a look on this. This is the device I use, is this the correct one?

Jorgen
Attachments
ESP32New.JPG
ESP32New.JPG (77.51 KiB) Viewed 4987 times

BenR
Matrix Staff
Posts: 1756
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 446 times
Been thanked: 606 times

Re: ESP32 & Ili9341 not working

Post by BenR »

Hi Jorgen,

Yes that looks fine.

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

Re: ESP32 & Ili9341 not working

Post by jgu1 »

Well ok Ben. With your modifyed program it look like the display initialise and try to delete, very slowly, but half the way it stop and is half white and half black?

Jorgen

BenR
Matrix Staff
Posts: 1756
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 446 times
Been thanked: 606 times

Re: ESP32 & Ili9341 not working

Post by BenR »

Hello Jorgen,

Hmm ok does swapping the horizontal and vertical pixel size properties do anything to help?

Strange it's slow. The io isn't the fastest but it shouldn't be slow. Maybe try the spi version of the component in hardware mode?

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

Re: ESP32 & Ili9341 not working

Post by jgu1 »

Yes strange. I try to swap it tomorrow, but however it should have shown something in the display? And I though the ESP32 is a very fast device, therefor I would use this with Ili9341.

Hope you can fix something

Jorgen

BenR
Matrix Staff
Posts: 1756
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 446 times
Been thanked: 606 times

Re: ESP32 & Ili9341 not working

Post by BenR »

We did have IO related speed issues prior to release and I did manage to speed up the IO significantly. I think it's just not as straightforward on the silicon as a PIC or an AVR plus you have an RTOS running to handle the WIFI/Bluetooth comms and this likely interferes with the IO speed.

Saying this the display should be working so maybe something else is interfering? Maybe try on other pins?

Oscar_T
Posts: 89
Joined: Wed Dec 02, 2020 10:06 am
Location: Italy
Has thanked: 37 times
Been thanked: 10 times

Re: ESP32 & Ili9341 not working

Post by Oscar_T »

Hi

I have a problem with the SetFontScaler function.

in simulation everything is ok but when I go to compile it gives me the following error
"GSM_003_3G.o: In function` main ':
GSM_003_3G.c :(. Text.startup.main + 0xcc): undefined reference to `FCD_0ba71_Base_GLCD__SetFontScaler '
collect2.exe: error: ld returned 1 exit status
Error (s) in build
"

I am using a stm32f030rc

Kind Regards

Post Reply