ESP32-S3 crash writing Neopixel LED

ETheLaw
Posts: 4
Joined: Tue Aug 20, 2024 7:01 pm

ESP32-S3 crash writing Neopixel LED

Postby ETheLaw » Mon Oct 14, 2024 7:21 pm

I'm building a program using an ESP32-S3 dev board and have encountered a weird problem. In short, if I set GPIO 37 to output mode without doing digitalWrite(RGB_BUILTIN, HIGH) first and then call the neopixelWrite function, the chip reboots. Is this expected behavior?

My program uses GPIOs 35 through 39 and 37 is the only one that does this. This is with Arduino IDE version 2.3.3 and ESP32 board library version 3.0.5.

Test program:

Code: Select all

void setup() {
    //digitalWrite(RGB_BUILTIN, HIGH);    //Uncommenting this prevents crash
    pinMode(37, OUTPUT);
    neopixelWrite(RGB_BUILTIN, 8, 8, 8);  //Crashes here (rgbLedWrite() does same)
}

void loop() {
    //nothing
}

horace99
Posts: 12
Joined: Mon Oct 14, 2024 10:38 am

Re: ESP32-S3 crash writing Neopixel LED

Postby horace99 » Tue Oct 15, 2024 9:45 am

if you are using the Adafruit_NeoPixel library it has problems with ESP32 Arduino Core Version 3 when there are more than 85 LEDs - I use ESP32 core V 2.0.17 for such projects

ETheLaw
Posts: 4
Joined: Tue Aug 20, 2024 7:01 pm

Re: ESP32-S3 crash writing Neopixel LED

Postby ETheLaw » Tue Oct 15, 2024 11:40 am

Hey thanks for the info!

I'm using the functionality built in to the ESP32 board library, but I actually figured out the problem and it turns out it has nothing to do with the LED or the library.

My ESP board has PSRAM on it, and the PSRAM uses GPIOs 35 thru 37 so there was a conflict on GPIO 37 (I actually was using all three). I moved the things I had connected to IOs 35-37 to 40-42 and everything works properly now!

Who is online

Users browsing this forum: No registered users and 73 guests