I’m having trouble with multiple core dumps after flashing new code to ESP32 devices. I am wanting to flash code, set wifi, connect to mDash and finally set Google IoT Core settings so I can connect to there too. The core dumps have appeared at various times in this process of commands, so I’m not understanding what is the problem. But at the moment, they appear when I have set the correct wifi settings (from mos tool or in mos.yml). (There is no core dump when I have the wrong settings.)
I have tried to run mos debug-core-dump
, but then get the error
the input device is not a TTY
Logs right before core dump:
[Aug 20 08:41:41.511] I (2813) wifi:new:<2,0>, old:<1,0>, ap:<255,255>, sta:<2,0>, prof:1
[Aug 20 08:40:17.111] Guru Meditation Error: Core 0 panic’ed (Unhandled debug exception)
[Aug 20 08:40:17.117] Debug exception reason: Stack canary watchpoint triggered (wifi)
[Aug 20 08:40:17.122] Core 0 register dump:
[Aug 20 08:41:41.527] PC : 0x400888c3 PS : 0x00060736 A0 : 0x80088a2c A1 : 0x3ffc4350
[Aug 20 08:41:41.539] A2 : 0x3ffbd0cc A3 : 0x00000000 A4 : 0xffffffff A5 : 0x00000000
[Aug 20 08:41:41.544] A6 : 0x3ffbd1c0 A7 : 0x00000001 A8 : 0x80089261 A9 : 0x3ffc4360
[Aug 20 08:41:41.555] A10 : 0x00000003 A11 : 0x00060723 A12 : 0x00060720 A13 : 0x00000001
[Aug 20 08:41:41.561] A14 : 0x0000cdcd A15 : 0x3ffc337c SAR : 0x00000004 EXCCAUSE: 0x00000001
[Aug 20 08:41:41.572] EXCVADDR: 0x00000000 LBEG : 0x40083d98 LEND : 0x40083db7 LCOUNT : 0x00000000
[Aug 20 08:41:41.577]
[Aug 20 08:41:41.577] ELF file SHA256: b5a34c977c1888b6
[Aug 20 08:41:41.583]
[Aug 20 08:41:41.583] Backtrace: 0x400888c3 0x40088a29 0x40084195 0x400e9d8d 0x400ee151 0x4018ecc9 0x400f1109 0x400f18d1 0x400ee175 0x400e969d 0x400e1451 0x4000bd9f 0x40001191 0x4014bbb9 0x4014bb18 0x400f7002 0x400f71fd 0x400e2955 0x400e1964 0x400e4075 0x400e1409 0x4000bd83 0x4000117d 0x400592fe 0x4005937a 0x40058bbf 0x400d6461 0x400dbc0e 0x400dbd8d 0x400e46a9 0x40082176 0x400d210d 0x4010dc9d 0x401119bd 0x4011f969 0x40120a09 0x40120ae1 0x4011c8fc 0x4011ccf1 0x4011ee3d 0x4011ee5e 0x4011ea8c 0x4011ec62 0x4008ff7e
[Aug 20 08:41:41.622]
[Aug 20 08:41:41.622]
[Aug 20 08:41:41.622] — BEGIN CORE DUMP —
Configs from my mos.yml:
config_schema: - ["app.pin", "i", 5, {title: "GPIO pin a sensor is attached to"}] #SCL, SDA - ["my_app", "o", {title: "My app custom settings"}] - ["i2c.enable", true] - ["i2c.debug", true] - ["i2c.scl_gpio", 22] - ["i2c.sda_gpio", 21] - ["debug.level", 3] - ["debug.event_level", "i", 2, {title: "Max level for which a MGOS_EVENT_LOG is raised"}] - ["wifi.ap.enable", false] - ["wifi.sta.enable", true] - ["wifi.sta.ssid", "SSID"] - ["wifi.sta.pass", "PASS"] - ["device.id", "esp32_box_test"] - ["mqtt.enable.", true] - ["mqtt.server", "mqtt.2030.ltsapis.goog:8883"] - ["mqtt.ssl_ca_cert", "ca.pem"] - ["provision.max_state", 3] - ["file_logger.enable", true] #logging OTA
Very thankful for any help!