V3.4.5 now causes boot loops on ESP32-P4 + C6, where V3.4.4 was stable
stale
I just wanted to report this, but I am unsure what is causing the problem beyond the latest releases from V3.4.4 to V3.4.5
Everything has been stable with V3.4.4 after the 4096 memory allocation was changed to 4097. This change was reflected in V3.4.5 (thank you). However something else has been introduced which is now causing my ESP32-P4 to boot loop. Nothing else has changed other than this library.
ESP32-P4 board/variant
Arduino core 3.3.7
ESP-IDF 5.5.2
ESP-Hosted 2.11.6
Audio library 3.4.4 works
Audio library 3.4.5 boot loops
ESP32-audioI2S 3.4.4 works on ESP32-P4 (Arduino 3.3.7 / ESP-IDF 5.5.2 / PSRAM enabled). Updating to 3.4.5 causes an immediate boot-loop with assert spi_flash_disable_interrupts_caches_and_other_cpu ... esp_task_stack_is_sane_cache_disabled(). Reverting to 3.4.4 fixes it
V3.4.5:
```
Rebooting...
ESP-ROM:esp32p4-eco2-20240710
Build:Jul 10 2024
rst:0xc (SW_CPU_RESET),boot:0x30f (SPI_FAST_FLASH_BOOT)
Core0 Saved PC:0x4ff093be
Core1 Saved PC:0x4ff0398c
SPI mode:QIO, clock div:1
load:0x4ff33ce0,len:0x1174
load:0x4ff29ed0,len:0xccc
load:0x4ff2cbd0,len:0x3540
entry 0x4ff29ed0
[ 15][D][Audio.h:622] AUDIO_LOG_IMPL():
[ 38][I][esp32-hal-psram.c:106] psramAddToHeap(): PSRAM added to the heap.
assert failed: spi_flash_disable_interrupts_caches_and_other_cpu cache_utils.c:127 (esp_task_stack_is_sane_cache_disabled())
Core 0 register dump:
MEPC : 0x4ff092b4 RA : 0x4ff0926a SP : 0x30101140 GP : 0x4ff14900
TP : 0x301013c0 T0 : 0x6b736174 T1 : 0x65686361 T2 : 0x5f707365
S0/FP : 0x00000001 S1 : 0x301012ec A0 : 0x301011a4 A1 : 0x4ff17e55
A2 : 0x00000001 A3 : 0x00000029 A4 : 0x00000001 A5 : 0x4ff28000
A6 : 0x00000000 A7 : 0x7369645f S2 : 0x0000004b S3 : 0x30101198
S4 : 0x30101198 S5 : 0x301011a4 S6 : 0x00000000 S7 : 0x00000000
S8 : 0x00000000 S9 : 0x00000000 S10 : 0x00000000 S11 : 0x00000000
T3 : 0x635f656e T4 : 0x61735f73 T5 : 0x695f6b63 T6 : 0x6174735f
MSTATUS : 0x00011880 MTVEC : 0x4ff00003 MCAUSE : 0x00000002 MTVAL : 0x00000000
MHARTID : 0x00000000
Stack memory:
30101140: 0xa5a5a5a5 0xa5a5a5a5 0x4031fc38 0x4ff11d6a 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0x4ff17e54
30101160: 0x00000000 0x00000000 0x30101268 0x00373231 0x0000004f 0x4ff18bf0 0x4031fc38 0x4ff18c00
30101180: 0x40191b57 0x4ff18c04 0x3010116c 0x4ff18c08 0x40191b68 0x4ff17e54 0x00000000 0x00000000
301011a0: 0x00000000 0x65737361 0x66207472 0x656c6961 0x73203a64 0x665f6970 0x6873616c 0x7369645f
301011c0: 0x656c6261 0x746e695f 0x75727265 0x5f737470 0x68636163 0x615f7365 0x6f5f646e 0x72656874
301011e0: 0x7570635f 0x63616320 0x755f6568 0x736c6974 0x313a632e 0x28203732 0x5f707365 0x6b736174
30101200: 0x6174735f 0x695f6b63 0x61735f73 0x635f656e 0x65686361 0x7369645f 0x656c6261 0x29292864
30101220: 0x4ff3b300 0x0000004f 0x00000000 0x00000003 0x50121000 0x600ac000 0x00000000 0x500ca000
30101240: 0x00000004 0x00000001 0x4018faa0 0x301012e4 0x00000000 0x00000000 0x00000000 0x00000000
30101260: 0x00000000 0x00000000 0x00000000 0x418b06e5 0x500ca000 0x00000000 0x00000000 0x4ff28000
30101280: 0x301012fc 0x301012d8 0x400ca5d0 0x4ff00f72 0x301012fc 0x301012d8 0x400ca5d0 0x4ff02c5c
301012a0: 0x00000028 0x00000009 0x00000000 0x301012dc 0x000095cb 0x301012f8 0x400ca5d0 0x40122848
301012c0: 0x00000001 0x00000000 0x00001400 0x301012e4 0x00100006 0x00000168 0x00000000 0x00000000
301012e0: 0x00000000 0x00000000 0x40179000 0x400cc100 0x4031f360 0x56c00000 0x00000000 0x00000000
30101300: 0xa5a5a5a5 0x00000000 0x00000000 0x400ca5f2 0x400cd000 0x00000000 0x00000000 0x00000000
30101320: 0x00000000 0x00000000 0x40179000 0x400c394e 0x00000001 0x00000001 0x00000000 0x00000168
30101340: 0x30101374 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x40179000 0x400c728c
30101360: 0x00000000 0x00000000 0x40179000 0x40178c2c 0x00000000 0x00001388 0x00000001 0x00000001
30101380: 0x00000000 0x00000000 0x00000000 0x4ff0a7cc 0x00000000 0x00000000 0x00000000 0x00000000
301013a0: 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5
301013c0: 0x00000000 0x301001f0 0x301001f0 0x00000000 0x00000000 0x00000000 0xa5a5a5a5 0xa5a5a5a5
301013e0: 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xa5a5a5a5 0xbaad5678 0x718880f4 0xfe9a400f 0x2c75e13d
30101400: 0x2d1affc1 0x52ac0d47 0xf06ea948 0x91a1dec4 0x021e1085 0x6b6d54dc 0x8318cf39 0x0525d38c
30101420: 0xc661c341 0xc6f0fda3 0x628e1afc 0x5ca853b9 0x08c8f954 0x3df084c6 0x98e7aad8 0xd641341a
30101440: 0x769f1685 0x12a0a1e3 0x8a8b247e 0x4359407d 0x4fdebab1 0xfe05c224 0x452cb85d 0xc00587c7
30101460: 0x65815e8a 0x66ced920 0x54983e7c 0x4834b832 0xe2187dc9 0x46a378dc 0x0d0e0957 0xcf12e6e6
30101480: 0x5b855368 0x9a248e63 0xd4011e10 0x62610200 0x8c511f43 0x0d2d824f 0x8d99d9cf 0x4d8e3c35
301014a0: 0x6ae3ba2a 0xf0fcfc75 0x82ec4286 0x9a4f8ada 0x07c18478 0x339baa3a 0x45b2d8a9 0xcac9a046
301014c0: 0xf4788ae5 0x530ebe7d 0x494ddbfb 0x8edc7d8d 0x554d4507 0xbe3193ac 0x4debbdd5 0xc9830a30
301014e0: 0xcff5e558 0x770d28af 0x0150221f 0xd2339d05 0x7c79c2cc 0x498da40a 0xd663a6ae 0x1f9d7d97
30101500: 0x8006bf2f 0x74490afb 0xa47996b0 0x8091c010 0xd1fed10d 0x202d92dc 0x8430aec2 0xa0b62f4b
30101520: 0x98837bb0 0x40585ac8 0x0b499e13 0x7103f8c0 0x8b266dc5 0xfe2262ef 0x832963bc 0x953603f1
```
Immediate boot loop, nothing else even gets started.
Simply delete the V3.4.5 library, put back the V3.4.4 library, and problem is solved.
V3.4.4:
```
ESP-ROM:esp32p4-eco2-20240710
Build:Jul 10 2024
rst:0x17 (CHIP_USB_UART_RESET),boot:0x30f (SPI_FAST_FLASH_BOOT)
Core0 Saved PC:0x4ff03cf8
Core1 Saved PC:0x4ff03cf8
SPI mode:QIO, clock div:1
load:0x4ff33ce0,len:0x1174
load:0x4ff29ed0,len:0xccc
load:0x4ff2cbd0,len:0x3540
entry 0x4ff29ed0
[ 4][I][esp32-hal-psram.c:106] psramAddToHeap(): PSRAM added to the heap.
=========== Before Setup Start ===========
Chip Info:
------------------------------------------
Model : ESP32-P4
Package : 0
Revision : 1.03
Cores : 2
CPU Frequency : 360 MHz
XTAL Frequency : 40 MHz
Features Bitfield : 0000000000
Embedded Flash : No
Embedded PSRAM : No
2.4GHz WiFi : No
Classic BT : No
BT Low Energy : No
IEEE 802.15.4 : No
------------------------------------------
INTERNAL Memory Info:
------------------------------------------
Total Size : 525784 B ( 513.5 KB)
Free Bytes : 451648 B ( 441.1 KB)
Allocated Bytes : 66684 B ( 65.1 KB)
Minimum Free Bytes: 446384 B ( 435.9 KB)
Largest Free Block: 385012 B ( 376.0 KB)
------------------------------------------
SPIRAM Memory Info:
------------------------------------------
Total Size : 33554432 B (32768.0 KB)
Free Bytes : 33551856 B (32765.5 KB)
Allocated Bytes : 0 B ( 0.0 KB)
Minimum Free Bytes: 33551856 B (32765.5 KB)
Largest Free Block: 33030132 B (32256.0 KB)
Bus Mode : QSPI
------------------------------------------
Flash Info:
------------------------------------------
Chip Size : 33554432 B (32 MB)
Block Size : 65536 B ( 64.0 KB)
Sector Size : 4096 B ( 4.0 KB)
Page Size : 256 B ( 0.2 KB)
Bus Speed : 80 MHz
Flash Frequency : 80 MHz (source: 80 MHz, divider: 1)
Bus Mode : QIO
------------------------------------------
Partitions Info:
------------------------------------------
nvs : addr: 0x00009000, size: 20.0 KB, type: DATA, subtype: NVS
otadata : addr: 0x0000E000, size: 8.0 KB, type: DATA, subtype: OTA
app0 : addr: 0x00010000, size: 4608.0 KB, type: APP, subtype: OTA_0
app1 : addr: 0x00490000, size: 4608.0 KB, type: APP, subtype: OTA_1
ffat : addr: 0x00910000, size: 23424.0 KB, type: DATA, subtype: FAT
coredump : addr: 0x01FF0000, size: 64.0 KB, type: DATA, subtype: COREDUMP
------------------------------------------
Software Info:
------------------------------------------
Compile Date/Time : Mar 16 2026 10:25:08
Compile Host OS : windows
ESP-IDF Version : v5.5.2-729-g87912cd291
Arduino Version : 3.3.7
------------------------------------------
Board Info:
------------------------------------------
Arduino Board : ESP32P4_4DS_MIPI_ROUND
Arduino Variant : esp32p4_4ds_mipi_round
Arduino FQBN : esp32:esp32:esp32p4_4ds_mipi_round:Revision=prev3,DebugLevel=verbose,DisplayModel=esp32p4_34r_clb,EraseFlash=all,JTAGAdapter=default,PartitionScheme=app5M_fat24M_32MB,UploadMode=default,UploadSpeed=921600,CDCOnBoot=default,DFUOnBoot=default,MSCOnBoot=default,USBMode=default
============ Before Setup End ============
[ 376][V][esp32-hal-periman.c:251] perimanClearBusDeinit(): Deinit function for type UART_RX (2) cleared
[ 386][V][esp32-hal-periman.c:251] perimanClearBusDeinit(): Deinit function for type UART_TX (3) cleared
```
etc, all the rest of the logs are normal and N/A
Regards
关闭于 2026-05-09 23 条评论