Waveshare 4.3 inch ESP32 with RPI_DPI_RGB driver no display

Update:
I changed the code to:

esphome:
  name: ${device_id}
  friendly_name: ${device_name}
  area: ${device_area}
  platformio_options:
    build_flags: "-DBOARD_HAS_PSRAM"
    board_build.arduino.memory_type: qio_opi
    board_build.flash_mode: dio
    # board_upload.flash_size: "8MB"
    board_upload.maximum_ram_size: 524288
    board_upload.maximum_size: 8388608
  on_boot:
    then:
      - delay: 5s
      - lvgl.widget.hide: boot_screen

esp32:
  board: esp32-s3-devkitc-1
  variant: esp32s3
  framework:
    type: esp-idf
    version: latest
    sdkconfig_options:
      CONFIG_ESP32S3_DEFAULT_CPU_FREQ_240: "y"
      CONFIG_ESP32S3_DATA_CACHE_64KB: "y"
      CONFIG_ESP32S3_DATA_CACHE_LINE_64B: "y"
      COMPILER_OPTIMIZATION_SIZE: "y"
      CONFIG_SPIRAM_FETCH_INSTRUCTIONS: "y"
      CONFIG_ESPTOOLPY_FLASHSIZE_8MB: "y"
      CONFIG_ESPTOOLPY_FLASHSIZE: "8MB"
      # CONFIG_IDF_EXPERIMENTAL_FEATURES: y
      CONFIG_SPIRAM_RODATA: "y"
# Enable Home Assistant API
...

So it now sees the Flash as 8MB.

But, I still get the same error.

I’m wondering if this is related to this: How to increase partition size (to use 16MB of flash instead of 4MB)