Code: Select all
I (1267) esp_psram: Adding pool of 4096K of PSRAM memory to heap allocator
I (1275) spi_flash: detected chip: generic
I (1277) spi_flash: flash io: dio
W (1280) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (1293) main_task: Started on CPU0
I (1303) esp_psram: Reserving pool of 32K of internal memory for DMA/internal allocations
I (1303) main_task: Calling app_main()
=== PRINTF TEST 1 ===
Free heap: 4404088
Free PSRAM: 244095
I (1313) sdspi_transaction: cmd=52, R1 response: command not supported
I (1353) sdspi_transaction: cmd=5, R1 response: command not supported
NEW_SA~1
Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.
Core 0 register dump:
PC : 0x400d6c00 PS : 0x00060b30 A0 : 0x8000bd86 A1 : 0x3ffc2840
--- 0x400d6c00: esp_vfs_write at /home/davide/esp/v5.5.2/esp-idf/components/vfs/vfs.c:982
A2 : 0x3ffafa20 A3 : 0x00000000 A4 : 0x3ffaed6c A5 : 0x00000014
A6 : 0x3f412d10 A7 : 0x3ffc2980 A8 : 0x3f80087c A9 : 0x9d000000
A10 : 0x00000000 A11 : 0x00000000 A12 : 0x00000001 A13 : 0x00000080
A14 : 0x3ffc091c A15 : 0x00000000 SAR : 0x00000020 EXCCAUSE: 0x0000001c
EXCVADDR: 0x9d000000 LBEG : 0x400894d9 LEND : 0x400894e9 LCOUNT : 0xfffffffa
--- 0x400894d9: strlen at /builds/idf/crosstool-NG/.build/xtensa-esp-elf/src/newlib/newlib/libc/machine/xtensa/strlen.S:84
--- 0x400894e9: strlen at /builds/idf/crosstool-NG/.build/xtensa-esp-elf/src/newlib/newlib/libc/machine/xtensa/strlen.S:96
Backtrace: 0x400d6bfd:0x3ffc2840 0x4000bd83:0x3ffc2860 0x4000182a:0x3ffc2880 0x400d6649:0x3ffc28a0 0x400d6c26:0x3ffc28c0 0x400891dd:0x3ffc28e0 0x40087b79:0x3ffc2900 0x40087bcf:0x3ffc2920 0x400880a1:0x3ffc2940 0x400ecc85:0x3ffc2970 0x400eccba:0x3ffc29b0 0x400df4da:0x3ffc29d0 0x400da631:0x3ffc2a10 0x400fae3c:0x3ffc2a30 0x4008ce69:0x3ffc2a60
--- 0x400d6bfd: esp_vfs_write at /home/davide/esp/v5.5.2/esp-idf/components/vfs/vfs.c:979
--- 0x4000bd83: _write_r in ROM
--- 0x4000182a: write in ROM
--- 0x400d6649: console_write at /home/davide/esp/v5.5.2/esp-idf/components/esp_vfs_console/vfs_console.c:83
--- 0x400d6c26: esp_vfs_write at /home/davide/esp/v5.5.2/esp-idf/components/vfs/vfs.c:982
--- 0x400891dd: __swrite at /builds/idf/crosstool-NG/.build/xtensa-esp-elf/src/newlib/newlib/libc/stdio/stdio.c:94
--- 0x40087b79: __sflush_r at /builds/idf/crosstool-NG/.build/xtensa-esp-elf/src/newlib/newlib/libc/stdio/fflush.c:224
--- 0x40087bcf: _fflush_r at /builds/idf/crosstool-NG/.build/xtensa-esp-elf/src/newlib/newlib/libc/stdio/fflush.c:278
--- 0x400880a1: __sfvwrite_r at /builds/idf/crosstool-NG/.build/xtensa-esp-elf/src/newlib/newlib/libc/stdio/fvwrite.c:251
--- 0x400ecc85: _puts_r at /builds/idf/crosstool-NG/.build/xtensa-esp-elf/src/newlib/newlib/libc/stdio/puts.c:91
--- 0x400eccba: puts at /builds/idf/crosstool-NG/.build/xtensa-esp-elf/src/newlib/newlib/libc/stdio/puts.c:129
--- 0x400df4da: pad_section_init at /home/davide/groovechip/components/pad_section/pad_section.c:95
--- 0x400da631: app_main at /home/davide/groovechip/main/main.c:43
--- 0x400fae3c: main_task at /home/davide/esp/v5.5.2/esp-idf/components/freertos/app_startup.c:208
--- 0x4008ce69: vPortTaskWrapper at /home/davide/esp/v5.5.2/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:
The code works fully as expected if you turn off PSRAM. I'm at my witt's end, but if you need any additional context or details i'll be happy to help. Thanks in advance!