Page 1 of 2
ESP32 & Ili9341 not working
Posted: Sun Dec 20, 2020 3:23 pm
by jgu1
Hi again!
Sorry, it´s me again.
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
Re: ESP32 & Ili9341 not working
Posted: Mon Dec 21, 2020 11:12 am
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
regards
Stefan
Re: ESP32 & Ili9341 not working
Posted: Mon Dec 21, 2020 12:08 pm
by BenR
Hello,
Here is the program with connections reworked for the M5 board,
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.
Re: ESP32 & Ili9341 not working
Posted: Mon Dec 21, 2020 3:40 pm
by jgu1
Hi Ben!
IPlease have a look on this. This is the device I use, is this the correct one?
Jorgen
Re: ESP32 & Ili9341 not working
Posted: Mon Dec 21, 2020 3:58 pm
by BenR
Hi Jorgen,
Yes that looks fine.
Re: ESP32 & Ili9341 not working
Posted: Mon Dec 21, 2020 4:07 pm
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
Re: ESP32 & Ili9341 not working
Posted: Mon Dec 21, 2020 5:55 pm
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?
Re: ESP32 & Ili9341 not working
Posted: Mon Dec 21, 2020 9:11 pm
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
Re: ESP32 & Ili9341 not working
Posted: Tue Dec 22, 2020 10:58 am
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?
Re: ESP32 & Ili9341 not working
Posted: Tue Dec 22, 2020 11:36 am
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