I2SClocklessVirtualLedDriver icon indicating copy to clipboard operation
I2SClocklessVirtualLedDriver copied to clipboard

Calling driver.initled with wrong pins causes crash

Open ewowi opened this issue 1 year ago • 2 comments

Tested on Esp32-S3

This is the output

pins[, 26, 33, 32, 35, 34, 26] Start driveroffset initiationsemaphore initPins initiationESP-ROM:esp32s3-20210327 Build:Mar 27 2021 rst:0x8 (TG1WDT_SYS_RST),boot:0x8 (SPI_FAST_FLASH_BOOT) Saved PC:0x403743c0 SPIWP:0xee mode:DIO, clock div:1 load:0x3fce3808,len:0x3ac load:0x403c9700,len:0x9a8 load:0x403cc700,len:0x2920 entry 0x403c98b8 COMMODORE BASIC V2

WARNING - possible crash: (code 5) Reset (software or hardware) due to interrupt watchdog. Core#0 (code 8) watchdog; Core#1 (code 8) watchdog.

Possible solution: test on valid pins before allocating

ewowi avatar Dec 07 '24 17:12 ewowi

List of valid pins in StarLight for S3:

image

Created using this code:

image

ewowi avatar Dec 07 '24 18:12 ewowi

Using virtual driver:

This is using a valid pin, but it is crashing with this error message: image

But pin 2 is a valid pin isn't it?

Changing to pin 16:

image

No memory ... This is on a standard ESP32 (non psram, selecting a 64x64 pixels fixture) using https://github.com/ewowi/I2SClocklessVirtualLedDriver#c305662 (not latest) see https://github.com/ewowi/I2SClocklessVirtualLedDriver/commits/integration/

Using FastLED driver it works okay...

Loading a Live Fixture specific: WARNING - possible crash: (code 5) Reset (software or hardware) due to interrupt watchdog. Core#0 (code 8) watchdog; Core#1 (code 14) restart.

No actions required yet, investigation in progress...

ewowi avatar Dec 09 '24 12:12 ewowi