Arduino-esp32 crash at log_printf

mikecarlos
Posts: 5
Joined: Mon Oct 02, 2023 7:34 pm

Arduino-esp32 crash at log_printf

Postby mikecarlos » Mon Oct 02, 2023 7:40 pm

Hi,

I have my custom project based on arduino-esp32. I modified the example sdkconfig from "esp32" folder of arduino-esp32. My code starts running outputs some messages from UART then when it outputs an core dump which is caught and decoded by the idf.py monitor. Crash dump is below.

Any ideas what could have gone wrong??

Thanks


Core 1 register dump:
PC : 0x4008cf6c PS : 0x00060530 A0 : 0x8018f104 A1 : 0x3ffb1c50
0x4008cf6c: strlen at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/newlib/newlib/libc/machine/xtensa/strlen.S:46

A2 : 0x00000001 A3 : 0xfffffffd A4 : 0x000000ff A5 : 0x0000ff00
A6 : 0x00ff0000 A7 : 0xff000000 A8 : 0x00000000 A9 : 0x00000000
A10 : 0x00000000 A11 : 0x3f40b381 A12 : 0x00000000 A13 : 0x00060723
A14 : 0x00060723 A15 : 0x00000001 SAR : 0x00000004 EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000001 LBEG : 0x4008cf8d LEND : 0x4008cf9d LCOUNT : 0xffffffff
To exit from IDF monitor please use "Ctrl+]"
Backtrace: 0x4008cf69:0x3ffb1c50 0x4018f101:0x3ffb1c60 0x401941fd:0x3ffb1f70 0x40194243:0x3ffb2000 0x400f2473:0x3ffb2040 0x400f6641:0x3ffb20a0 0x400dd7ff:0x3ffb20c0 0x400eea16:0x3ffb2170 0x400eee6a:0x3ffb2210 0x400f3046:0x3ffb2290
0x4008cf69: strlen at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/newlib/newlib/libc/machine/xtensa/strlen.S:43

0x4018f101: _svfprintf_r at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/newlib/newlib/libc/stdio/vfprintf.c:1528

0x401941fd: _vsnprintf_r at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/newlib/newlib/libc/stdio/vsnprintf.c:70 (discriminator 4)

0x40194243: vsnprintf at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32-elf/src/newlib/newlib/libc/stdio/vsnprintf.c:40

0x400f2473: log_printf at C:/W/P/FAS/20_SW/arduino_demo/components/arduino/cores/esp32/esp32-hal-uart.c:424

0x400f6641: Preferences::begin(char const*, bool, char const*) at C:/W/P/FAS/20_SW/arduino_demo/components/arduino/libraries/Preferences/src/Preferences.cpp:50 (discriminator 4)

Who is online

Users browsing this forum: No registered users and 29 guests