Skip to content

ESP32-S3 PIO_TestPatterns crash in gdma_lcd_parallel16.cpp (Platformio) #775

@Tuet

Description

@Tuet

I am trying to run the PIO_TestPatterns example in Platformio on an ESP32-S3, but I am out of luck and it crashes somwhere in gdma_lcd_parallel16.cpp. I tried just to program several ESP32-S3 boards (board = esp32-s3-devkitc-1), run the code with high debug level, not connected to a display yet, just looking at the serial CDC output. I tried with a non -S3 board (only ESP32) and at least I don't see this crash.

I just opened Platformio and opened the PIO_TestPatterns folder and added the following env to platformio.ini:

[env:esp32s3]
framework = arduino
;board = wemos_d1_mini32
board = esp32-s3-devkitc-1
board_upload.flash_size = 4MB 
board_build.partitions = default.csv
build_flags = 
  -DCORE_DEBUG_LEVEL=5 -Wno-unused-variable -Wno-unused-but-set-variable -Wno-unused-function -Wno-format-extra-args 
  -DARDUINO_USB_MODE=1
  -DARDUINO_USB_CDC_ON_BOOT=1  
  -DBOARD_HAS_PSRAM

This is the output of the terminal before the crash:

...
[   741][W][ESP32-HUB75-MatrixPanel-I2S-DMA.cpp:103] allocateDMAmemory(): [I2S-DMA] lsbMsbTransitionBit of 0 gives 14 Hz refresh rate.
[   753][W][ESP32-HUB75-MatrixPanel-I2S-DMA.cpp:103] allocateDMAmemory(): [I2S-DMA] lsbMsbTransitionBit of 1 gives 28 Hz refresh rate.
[   765][W][ESP32-HUB75-MatrixPanel-I2S-DMA.cpp:103] allocateDMAmemory(): [I2S-DMA] lsbMsbTransitionBit of 2 gives 56 Hz refresh rate.
[   776][W][ESP32-HUB75-MatrixPanel-I2S-DMA.cpp:103] allocateDMAmemory(): [I2S-DMA] lsbMsbTransitionBit of 3 gives 107 Hz refresh rate.
[   788][W][ESP32-HUB75-MatrixPanel-I2S-DMA.cpp:116] allocateDMAmemory(): [I2S-DMA] lsbMsbTransitionBit of 3 used to achieve refresh rate of 60 Hz. Percieved colour depth to the eye may be reduced.
[   806][I][ESP32-HUB75-MatrixPanel-I2S-DMA.cpp:119] allocateDMAmemory(): [I2S-DMA] DMA has pixel_color_depth_bits of 5
[   816][I][ESP32-HUB75-MatrixPanel-I2S-DMA.cpp:133] allocateDMAmemory(): [I2S-DMA] Recalculated number of DMA descriptors per row: 16
[   828][D][gdma_lcd_parallel16.cpp:340] allocate_dma_desc_memory(): [S3] Allocating 6144 bytes memory for DMA descriptors.
[   841][I][ESP32-HUB75-MatrixPanel-I2S-DMA.cpp:237] configureDMA(): [I2S-DMA] 512 DMA descriptors linked to buffer data.
[   850][I][gdma_lcd_parallel16.cpp:136] init(): [S3] Clock divider is 12
[   856][D][gdma_lcd_parallel16.cpp:138] init(): [S3] Resulting output clock frequency: 13333333 Mhz
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x8 (TG1WDT_SYS_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x4037950b
  #0  0x4037950b in _xt_panic at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp_system/port/arch/xtensa/panic_handler_asm.S:38

...

Any ideas, comments what I did wrong? Would like to use ESP32-S3 boards instead of old ESP32 boards for it.

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