Settings to note when developing CrowPanel ESP32 7.0-inch display v3.0 via ESP-IDF

Hi!

I am trying to develop DIS08070H: CrowPanel ESP32 7.0-inch display v3.0 using the arduino-esp32 component in ESP-IDF, and while following a YouTube tutorial, I encountered a problem where the LovyanGFX library was not working properly.

Following the instructions provided on the Wiki, I successfully set up ESP-IDF and managed to output “Hello, world!” to the serial monitor. However, even after modifying the code provided in the lesson to use the “Arduino as an ESP-IDF component” approach, I found that the LGFX object was not initializing properly and the begin() function of the LGFX object was returning false.

I tried various library versions over several days, but they didn't help much. I solved this problem today, so I'm sharing this information in case anyone else is experiencing a similar situation.

In my case, the problem was caused by not configuring the PSRAM settings in ESP-IDF. The Wiki didn't mention this, so I guess I forgot to configure it. If Elecrow happens to come across this post, I think it would be helpful to add information about PSRAM settings to the ESP-IDF tutorial.

The setup process is as follows. For reference, in order to match the library versions required by the Wiki, I used ESP-IDF version 4.4.7 and arduino-esp32 version 2.0.15.

  1. Enter the settings screen by running idf.py menuconfig in the ESP-IDF terminal.

  2. In the Component config > ESP32S3-Specific menu, enable the Support for external, SPI-connected RAM option.

  3. In the SPI RAM config menu that appears when you enable this option, change the Mode (QUAD/OCT) of SPI RAM chip in use (Quad Mode PSRAM) setting to Octal Mode PSRAM. (This part is set differently depending on the HMI type. Please refer to Lesson 02 of the CrowPanel tutorial video.)

Additionally, please note that you must uncomment the following section in the root CMakeLists.txt of LovyanGFX (I used version 1.1.8 as required by the Wiki).

### If you use arduino-esp32 components, please activate the next comment line.
# list(APPEND COMPONENT_REQUIRES arduino-esp32)

And don't forget to include the PCA9557 file provided in the Lesson GitHub repository in your project!

Here are the specific versions I used.

ESP-IDF v4.4.7
https://docs.espressif.com/projects/esp-idf/en/v4.4.7/esp32/get-started/index.html

arduino-esp32 v2.0.15
https://github.com/espressif/arduino-esp32/releases/tag/2.0.15

LovyanGFX v1.1.8
https://github.com/lovyan03/LovyanGFX/releases/tag/1.1.8

I hope this helps. Thank you!

Comments

Sign In or Register to comment.