Skip to content

wrong esp32-2432S028R.json? #253

@olivluca

Description

@olivluca

I recently updated my project to use the current version of this library.
It uses version e17c38e of the boards submodule.
If I update it to the latest version, the program crashes

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1184
load:0x40078000,len:13232
load:0x40080400,len:3028
entry 0x400805e4
E (260) spi: spi_bus_initialize(756): SPI bus already initialized.
ESP_ERROR_CHECK_WITHOUT_ABORT failed: esp_err_t 0x103 (ESP_ERR_INVALID_STATE) at 0x4008c683
file: ".pio/libdeps/trumadisplay_ota/esp32_smartdisplay/src/lvgl_touch_xpt2046_spi.c" line 43
func: lvgl_touch_init
expression: spi_bus_initialize(XPT2046_SPI_HOST, &spi_bus_config, XPT2046_SPI_DMA_CHANNEL)
E (281) lcd_panel.io.spi: esp_lcd_new_panel_io_spi(63): invalid argument
ESP_ERROR_CHECK failed: esp_err_t 0x102 (ESP_ERR_INVALID_ARG) at 0x4008c698
file: ".pio/libdeps/trumadisplay_ota/esp32_smartdisplay/src/lvgl_touch_xpt2046_spi.c" line 62
func: lvgl_touch_init
expression: esp_lcd_new_panel_io_spi((esp_lcd_spi_bus_handle_t)XPT2046_SPI_HOST, &io_spi_config, &io_handle)

abort() was called at PC 0x4008c69b on core 1


Backtrace: 0x40083c01:0x3ffb2020 0x4008c6a5:0x3ffb2040 0x40092479:0x3ffb2060 0x4008c69b:0x3ffb20e0 0x401028a8:0x3ffb2100 0x401025f3:0x3ffb21a0 0x400d25f4:0x3ffb21c0 0x40109bb6:0x3ffb2290

If I go back to e17c38e it works.
These are the differences between the two versions

--- esp32-2432S028R.json        2025-04-26 13:34:20.211568450 +0200
+++ esp32-2432S028R.json.new    2025-04-26 13:24:24.713180271 +0200
@@ -47,7 +47,7 @@
       "'-D CONFIG_ESP_LCD_TOUCH_MAX_BUTTONS=0'",
       "'-D TOUCH_XPT2046_SPI'",
       "'-D XPT2046_Z_THRESHOLD=600'",
-      "'-D XPT2046_SPI_HOST=SPI3_HOST'",
+      "'-D XPT2046_SPI_HOST=SPI1_HOST'",
       "'-D XPT2046_SPI_DMA_CHANNEL=SPI_DMA_CH_AUTO'",      
       "'-D XPT2046_SPI_BUS_MOSI_IO_NUM=32'",
       "'-D XPT2046_SPI_BUS_MISO_IO_NUM=39'",
@@ -75,6 +75,7 @@
       "'-D TOUCH_MIRROR_X=true'",
       "'-D TOUCH_MIRROR_Y=false'",
       "'-D BOARD_HAS_TF'",
+      "'-D TF_SPI_HOST=SPI3_HOST'",
       "'-D TF_CS=5'",
       "'-D TF_SPI_MOSI=23'",
       "'-D TF_SPI_SCLK=18'",

:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions