PlummersSoftwareLLC / NightDriverStrip

NightDriver client for ESP32
https://plummerssoftwarellc.github.io/NightDriverStrip/
GNU General Public License v3.0
1.29k stars 210 forks source link

Panic when driving larger matrixes (one long strip) on 32MB 8MB ESP32-S3-DevKitC1 #580

Open GameTec-live opened 6 months ago

GameTec-live commented 6 months ago

Bug report

32MB FLASH 8MB PRAM ESP32-S3-DevKitC1(ESP32-S3-DevKitC-1-N32R8V)

Problem

Steps

  1. Modify env:demo to compile properly for the chip (#579)
    [env:demo]
    extends         = dev_esp32-s3
    build_flags     = -DDEMO=1
                    ${dev_esp32-s3.build_flags}
                    ${psram_flags.build_flags}
    board_build.partitions = config/partitions_custom_8M.csv
    board_upload.flash_size = 32MB
    board_build.flash_mode = qio
    board_build.arduino.memory_type = opi_opi
  2. In global.h define a matrix width and height larger than 36 (so 37+ results in the panic)
  3. See core 1 panic and the system reboot

Example

Notes In this case a "Matrix" is just a bunch of daisychained LED strips going back and forth.

My globals.h globals.h.txt

Same exact config file works fine on a generic, less powerful, esp32. And reportedly running 1500 leds on one controller isnt optimal, but it works fine and i get a decent frame rate on my underpowered esp32. It shouldnt crash anyways ;)

Monitor Log: https://hastebin.skyra.pw/wikevijele.yaml