Hi,
Update: (This runs with display SPI channel set to Software Control, but is really SLOW.. and unusable even at 20 MHz). So this proves no wiring errors, just that using fast SPI is not functioning.
It simulates fine in FC11 but I can't get the display to work with the ESP32 module with SPI setup for Chan1 or 2. I am attaching my project file here if someone may have some time to look at it. I suspect it has something to do with the SPI setup or function. Alternatively if someone can post a short program that works with these in actual HW to look at, I will be very happy. I searched in the forum but could not find any answers that made it work in my case.
So the question remains why the ESP32 programmed via FC ,the fast SPI setup will not work? I scoped the MOSI and CLK pins and there are activity that you would expect, but the display is not responding to it at all.
Regards
Deon
ESP32 WROOM 32 with ST7789 display help needed
-
deon
- Posts: 7
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 10, 2020 3:38 pm
- Has thanked: 1 time
- Been thanked: 2 times
ESP32 WROOM 32 with ST7789 display help needed
- Attachments
-
- ST7789.jpg (13.09 KiB) Viewed 267 times
-
- ST7789_test.fcfx
- (28.3 KiB) Downloaded 21 times
-
BenR
- Matrix Staff
- Posts: 2003
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 525 times
- Been thanked: 715 times
Re: ESP32 WROOM 32 with ST7789 display help needed
Hello Deon,
Sorry about the delay and the lack of reply, If you find your topics are not getting replied to then you can bump them, it could be we've simply missed your post and its fallen through the cracks.
I've an idea what the issue could be, bear with me and I'll investigate for you.
Sorry about the delay and the lack of reply, If you find your topics are not getting replied to then you can bump them, it could be we've simply missed your post and its fallen through the cracks.
I've an idea what the issue could be, bear with me and I'll investigate for you.
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
-
BenR
- Matrix Staff
- Posts: 2003
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 525 times
- Been thanked: 715 times
Re: ESP32 WROOM 32 with ST7789 display help needed
Hello Deon,
Right I've made progress and have pushed a new version of the SPI CAL for ESP for v10 and v11 of Flowcode. The Hardware SPI on ESP didn't match the software SPI mode which I beleive is what was causing your problem.
If you do library update then hopefully you can see the update and this will allow the hardware SPI channels to function. Maybe start at a low SPI rate so you can confirm the hardware SPI is working properly before you try ramping up the speed.
Right I've made progress and have pushed a new version of the SPI CAL for ESP for v10 and v11 of Flowcode. The Hardware SPI on ESP didn't match the software SPI mode which I beleive is what was causing your problem.
If you do library update then hopefully you can see the update and this will allow the hardware SPI channels to function. Maybe start at a low SPI rate so you can confirm the hardware SPI is working properly before you try ramping up the speed.
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
Re: ESP32 WROOM 32 with ST7789 display help needed
Hi Ben,
Thanks for looking into this. I have updated the CAL files, and restarted the program. After programming it seems that it is still not functional using either Chan1 or Chan2. I have tried frequencies from 1.6 MHz to 40 MHz, and it made no difference. It seems to get stuck at the "Clear Display" block, shortly after the initialization block as shown in the picture. I have added a 100 ms delay after initialization, but made no difference. The attached SPI setup is working when Chan2 is set to software control.
Regards,
Deon
Thanks for looking into this. I have updated the CAL files, and restarted the program. After programming it seems that it is still not functional using either Chan1 or Chan2. I have tried frequencies from 1.6 MHz to 40 MHz, and it made no difference. It seems to get stuck at the "Clear Display" block, shortly after the initialization block as shown in the picture. I have added a 100 ms delay after initialization, but made no difference. The attached SPI setup is working when Chan2 is set to software control.
Regards,
Deon
- Attachments
-
- SPI_set.jpg (41.57 KiB) Viewed 88 times
-
- freeze.jpg (28.68 KiB) Viewed 88 times