Page 1 of 1

Compilation error when using ST7789V component with ESP32.[SOLVED]

Posted: Sat May 11, 2024 1:06 pm
by Sasi
Hello,

I am using ESP32 WROOM 32 version NODE-MCU.
I want to connect a ST7789V display module to it.
Unfortunately, I get error messages while compiling the program.
I have attached the messages of the first program translation (testST7789.msg1) and the messages of later translations (testST7789.msg2).
I did not change anything in the project file between the two program translations.
Thank you in advance for your help.

Regards,
Sasi

Re: Compilation error when using ST7789V component with ESP32.

Posted: Sat May 11, 2024 2:14 pm
by medelec35
Hello.
Although you are not using CS pin, you will need to change Use CS to Yes, select a suitable pin.
Then you can change Use CS to No.

Re: Compilation error when using ST7789V component with ESP32.

Posted: Sat May 11, 2024 5:09 pm
by Sasi
Hi Martin,

WOW!
I would not have thought of this solution, but the compilation of the program worked after implementing your suggestion. :D
Thank you very much for your help over the weekend.
Now we just need to find out why the SPI interface of the display only works in software mode. :|
Do you have an idea for this?

Regards,
Sasi

Re: Compilation error when using ST7789V component with ESP32.

Posted: Sat May 11, 2024 7:16 pm
by Sasi
I found a solution:
If I enable the CS pin and enable the CS pin in Toggle mode, the hardware SPI works. Hooray!
So I have to use Chip Select pin to make it work.
An observation:
If I disable CS Toggle mode, the display no longer works with the hardware SPI peripheral.
In this case, the MOSI, RES, DC, CS lines will be noisy as if they are in a high impedance state.

In the screenshots below, the threshold voltage of the logic analyzer has been set to 1.65 V.
CS_TOGGLE_YES.jpg
CS_TOGGLE_YES.jpg (53.15 KiB) Viewed 552 times
CS_TOGGLE_NO.jpg
CS_TOGGLE_NO.jpg (62.54 KiB) Viewed 552 times
Regards,
Sasi