firmware icon indicating copy to clipboard operation
firmware copied to clipboard

Bruce on Waveshare ESP32-S3 Touch LCD 2.8

Open Wasler opened this issue 7 months ago • 2 comments

Help needed: Porting Bruce firmware to Waveshare ESP32-S3 2.8" Touch LCD

Hi everyone,

I'm trying to run Bruce firmware on my Waveshare ESP32-S3 board with 2.8" touch LCD (ST7789 display, CST328 touch over I2C). I've already done a lot of work: created custom board config, set up pins, fixed many compilation errors, but I'm stuck with ESP-NOW API mismatches and some linking issues.

My board specs:

  • MCU: ESP32-S3 (16MB flash, 8MB PSRAM)
  • Display: ST7789, 240x320, SPI (CS 42, DC 41, RST 39, BL 5, MOSI 45, MISO 46, SCLK 40)
  • Touch: CST328 over I2C (SDA 1, SCL 3, INT 4)

What I've done:

  • Added custom variant in boards/waveshare-esp32s3/
  • Created pins_arduino.h and interface.cpp
  • Fixed multiple compilation errors (overloaded functions, missing headers, etc.)
  • Managed to build firmware, but it fails to boot properly (black screen, only backlight works, resets loop)

Current issues:

  • Invalid image block, can't boot (probably flash config)
  • After flashing LilyGO T-Display-S3 firmware – backlight turns on, but no display output, resets on button press
  • ESP-NOW API errors when trying to build my own config (wifi_tx_info_t, esp_now_recv_info_t not found)

What I need:

  • Working platformio.ini configuration for Waveshare ESP32-S3 2.8"
  • Correct partition table for 16MB flash
  • Any hints on fixing ESP-NOW compatibility with latest ESP-IDF
  • Or just a precompiled .bin that works on this board

I've attached my current config and error logs. Any help or pointers would be greatly appreciated. Thank you!

My config files are here: [https://crispy-winner-7vw46jp5q6r4hxgx5.github.dev/]

Wasler avatar Apr 18 '26 21:04 Wasler

Hey @Wasler your boot issue is 100% the partition table, 4MB default is being applied to your 16MB flash. add this as partitions_16MB.csv:

nvs,      data, nvs,     0x9000,   0x5000,
otadata,  data, ota,     0xe000,   0x2000,
app0,     app,  ota_0,   0x10000,  0x640000,
app1,     app,  ota_1,   0x650000, 0x640000,
spiffs,   data, spiffs,  0xC90000, 0x360000,
coredump, data, coredump,0xFF0000, 0x10000,
board_build.partitions = partitions_16MB.csv
board_build.flash_size = 16MB
board_build.flash_mode = qio

for the ESP-NOW stuff, those types don't exist on IDF 4.x, pin the platform:

platform = [email protected]

also if your display and radios are on the same SPI bus that'll cause the reset loop, display/touch on HSPI, radios on main SPI

opened PR #2422 recently for ESP32-S3 ST7789/ILI9341 support if you wanna take a look, might save some time

Aryann019x avatar May 08 '26 02:05 Aryann019x

Se precisar de alguma ajuda eu consigo!!