Page 1 of 1

ESP crashes after uploading sketch with ESP board library higher then 3.0.7

Posted: Mon Mar 16, 2026 1:18 pm
by Gerdchen03
I updated the onboard library in my Arduino IDE 2 to version 3.3.7 from here: https://github.com/espressif/arduino-esp32

When I upload my sketch to the ESP32, the ESP always crashes. I can only use version 3.0.7 at most. Starting with version 3.1.0, the ESP32 crashes when I run my sketch. In the serial monitor, I see the following message:

Code: Select all

Rebooting...
ets Jul 29 2019 12:21:46

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:1
load:0x3fff0030,len:4640
load:0x40078000,len:15620
ho 0 tail 12 room 4
load:0x40080400,len:3164
entry 0x4008059c

Initialization complete.

assert failed: prvInitialiseNewTask tasks.c:1111 (uxPriority < ( 25 ))

Backtrace: 0x4008b97c:0x3ffb2020 0x4008b941:0x3ffb2040 0x40091d85:0x3ffb2060 0x4008d7cb:0x3ffb21a0 0x4008f02d: 0x3ffb21d0 0x400d9c76:0x3ffb2210 0x400ede8e:0x3ffb2270 0x4008c791:0x3ffb2290

ELF file SHA256: 42799b45d

Re: ESP crashes after uploading sketch with ESP board library higher then 3.0.7

Posted: Mon Mar 16, 2026 1:23 pm
by MicroController

Code: Select all

assert failed: prvInitialiseNewTask ... (uxPriority < ( 25 ))
Something's trying to create a new task with a priority higher than the maximum supported (24).

Re: ESP crashes after uploading sketch with ESP board library higher then 3.0.7

Posted: Mon Mar 16, 2026 1:28 pm
by Gerdchen03
OK, but it works perfectly with version 3.0.7

I will change this:
xTaskCreate(SerialScan, "Serial Scan", 3000, NULL, 30, &SerialScanTask);
xTaskCreate(ValueRefresh, "Value Refresh", 4500, NULL, 200, &TaskValueRefresh);

to this:
xTaskCreate(SerialScan, "Serial Scan", 3000, NULL, 2, &SerialScanTask);
xTaskCreate(ValueRefresh, "Value Refresh", 4500, NULL, 24, &TaskValueRefresh);

Update:
It works! Thanks!!

Re: ESP crashes after uploading sketch with ESP board library higher then 3.0.7

Posted: Mon Mar 16, 2026 2:31 pm
by MicroController
Apparently, in previous versions of FreeRTOS, the task priority was implicitly capped to the maximum allowed value. Now, in addition there's also an assertion in place.

Re: ESP crashes after uploading sketch with ESP board library higher then 3.0.7

Posted: Mon Mar 16, 2026 3:05 pm
by Gerdchen03
Thanks for the explanation