Challenges with Waveshare ESP32-S3-Touch-LCD-2.1 setup in PlatformIO

Hi,

I’ve a challenge setting up this board in platformio. Following the wiki I managed to set the board up using ESP-IDF in vscode without issue. Is there a guide to migrating board and driver config from ESP-IDF to PlatformIO or a good working example?

Have you checked ESP-IDF docs and PlatformIO’s docs?
There are some useful information.
https://docs.espressif.com/projects/esp-idf/en/v5.5.1/esp32s3/third-party-tools/platformio.html
https://docs.platformio.org/en/latest/frameworks/espidf.html?utm_source=docs.espressif.com#configuration

It will be helpful if you explain the exact challenge further more.

Thanks for the reply. Following the waveshare docs the board just works using ESP-IDF. And in PlatformIO the board isn’t a selectable option and as PlatformIO supports espressif boards I thought it would be straightforward to get working in PIO though doing some searching it doesn’t seem like it is. I will take a look at your links and see if I cant build a config I can hopefully contribute. Cheers.

Sure you can use this board with PlatformIO and the Arduino and the ESP-IDF framework.

Take a look at https://www.waveshare.com/esp32-s3-touch-lcd-2.1.htm
The MCU used is an ESP32-S3 N16R8 (16MB Flash, 8 MB PSRAM).

So these settings should work without issues!

For the ESP-IDF framework you might need to run pio run -t menuconfig for proper configuration.

3 Likes

Cheers for the support. I managed to get the device working in PIO by using your board settings and moving over the Arduino drivers from the demo project on the devices’ waveshare page.

I managed to setup a basic LVGL TileView example. Only remaining challenge is the LVGL config from the site is 8.3. I’ll begin the process of trying to migrate it to 9.x and will post details here if successful. I was able to get at least the UI running using LVGL 9.x using this Garage Tinkering’s. Thinking about using that projects code as a reference for migration. Cheers.