Monitor ESP32 Output

I use monitor to debug and find out where the program crashed. However, my decoded backtrace is filled with the message that can be seen below.

Guru Meditation Error: Core  0 panic'ed (InstrFetchProhibited). Exception was unhandled.
Core 0 register dump:
PC      : 0x84a2067b  PS      : 0x00060530  A0      : 0x8012d450  A1      : 0x3ffb0810  
A2      : 0x3ffb9f48  A3      : 0x3ffba280  A4      : 0x00000000  A5      : 0x3ffcaf8d  
A6      : 0x3ffb2749  A7      : 0x00000026  A8      : 0x80156ac0  A9      : 0x3ffb07f0  
A10     : 0x74249560  A11     : 0x3ffba458  A12     : 0x0000001c  A13     : 0x3ffba03c  
A14     : 0x8e02fa78  A15     : 0x00000006  SAR     : 0x00000016  EXCCAUSE: 0x00000014  
EXCVADDR: 0x84a20678  LBEG    : 0x4000c46c  LEND    : 0x4000c477  LCOUNT  : 0x00000000  
xtensa-esp32-elf-addr2line -pfiaC -e /Users/vp/esp/Pebble_ESP32_Firmware/build/esp32_app 0x4000c46c: [Errno 2] No such file or directory
xtensa-esp32-elf-addr2line -pfiaC -e /Users/vp/esp/Pebble_ESP32_Firmware/build/esp32_app 0x4000c477: [Errno 2] No such file or directory

ELF file SHA256: f6199e95fc69ce6b95ee78bdd9b0f2aee56344ef424ddfabce1f150484757a48

Backtrace: 0x44a2067b:0x3ffb0810 0x4012d44d:0x3ffb0830 0x4012e115:0x3ffb0870 0x4012779d:0x3ffb0890 0x401277c9:0x3ffb08b0 0x40154ef7:0x3ffb08d0 0x40154fe8:0x3ffb0910 0x401542ef:0x3ffb0930 0x401574bd:0x3ffb0950 0x4014c244:0x3ffb0970 0x4014c5f3:0x3ffb0990 0x400d71fd:0x3ffb09b0 0x400d734f:0x3ffb0a50 0x400d5679:0x3ffb0a70 0x400d56b5:0x3ffb0a90
xtensa-esp32-elf-addr2line -pfiaC -e /Users/vp/esp/Pebble_ESP32_Firmware/build/esp32_app 0x44a2067b: [Errno 2] No such file or directory
xtensa-esp32-elf-addr2line -pfiaC -e /Users/vp/esp/Pebble_ESP32_Firmware/build/esp32_app 0x4012d44d: [Errno 2] No such file or directory
xtensa-esp32-elf-addr2line -pfiaC -e /Users/vp/esp/Pebble_ESP32_Firmware/build/esp32_app 0x4012e115: [Errno 2] No such file or directory
xtensa-esp32-elf-addr2line -pfiaC -e /Users/vp/esp/Pebble_ESP32_Firmware/build/esp32_app 0x4012779d: [Errno 2] No such file or directory
xtensa-esp32-elf-addr2line -pfiaC -e /Users/vp/esp/Pebble_ESP32_Firmware/build/esp32_app 0x401277c9: [Errno 2] No such file or directory
xtensa-esp32-elf-addr2line -pfiaC -e /Users/vp/esp/Pebble_ESP32_Firmware/build/esp32_app 0x40154ef7: [Errno 2] No such file or directory
xtensa-esp32-elf-addr2line -pfiaC -e /Users/vp/esp/Pebble_ESP32_Firmware/build/esp32_app 0x40154fe8: [Errno 2] No such file or directory
xtensa-esp32-elf-addr2line -pfiaC -e /Users/vp/esp/Pebble_ESP32_Firmware/build/esp32_app 0x401542ef: [Errno 2] No such file or directory
xtensa-esp32-elf-addr2line -pfiaC -e /Users/vp/esp/Pebble_ESP32_Firmware/build/esp32_app 0x401574bd: [Errno 2] No such file or directory
xtensa-esp32-elf-addr2line -pfiaC -e /Users/vp/esp/Pebble_ESP32_Firmware/build/esp32_app 0x4014c244: [Errno 2] No such file or directory
xtensa-esp32-elf-addr2line -pfiaC -e /Users/vp/esp/Pebble_ESP32_Firmware/build/esp32_app 0x4014c5f3: [Errno 2] No such file or directory
xtensa-esp32-elf-addr2line -pfiaC -e /Users/vp/esp/Pebble_ESP32_Firmware/build/esp32_app 0x400d71fd: [Errno 2] No such file or directory
xtensa-esp32-elf-addr2line -pfiaC -e /Users/vp/esp/Pebble_ESP32_Firmware/build/esp32_app 0x400d734f: [Errno 2] No such file or directory
xtensa-esp32-elf-addr2line -pfiaC -e /Users/vp/esp/Pebble_ESP32_Firmware/build/esp32_app 0x400d5679: [Errno 2] No such file or directory
xtensa-esp32-elf-addr2line -pfiaC -e /Users/vp/esp/Pebble_ESP32_Firmware/build/esp32_app 0x400d56b5: [Errno 2] No such file or directory

I’m not sure what’s causing this since I can flash the board. Additionally, if you check the ./build directory I can see that the file

 /Users/vp/esp/Pebble_ESP32_Firmware/build/esp32_app

is actually there.

This message also shows up when the board is booting up ( I pasted part of the boot log messages for brevity).

Rebooting...
ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x3f (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:2
load:0x3fff0018,len:4
load:0x3fff001c,len:7264
ho 0 tail 12 room 4
load:0x40078000,len:12620
xtensa-esp32-elf-addr2line -pfiaC -e /Users/vp/esp/Pebble_ESP32_Firmware/build/esp32_app 0x40078000: [Errno 2] No such file or directory
load:0x40080400,len:6708
xtensa-esp32-elf-addr2line -pfiaC -e /Users/vp/esp/Pebble_ESP32_Firmware/build/esp32_app 0x40080400: [Errno 2] No such file or directory
entry 0x40080778
xtensa-esp32-elf-addr2line -pfiaC -e /Users/vp/esp/Pebble_ESP32_Firmware/build/esp32_app 0x40080778: [Errno 2] No such file or directory
I (76) boot: Chip Revision: 1
I (76) boot_comm: chip revision: 1, min. bootloader chip revision: 0
I (41) boot: ESP-IDF v3.3-163-g601a03e 2nd stage bootloader
I (41) boot: compile time 15:23:20
I (70) boot: Enabling RNG early entropy source...
I (70) boot: SPI Speed      : 40MHz
I (70) boot: SPI Mode       : DIO
I (72) boot: SPI Flash Size : 4MB
I (76) boot: Partition Table:
I (79) boot: ## Label            Usage          Type ST Offset   Length
I (87) boot:  0 nvs              WiFi data        01 02 00010000 00006000
I (94) boot:  1 otadata          OTA data         01 00 00016000 00002000
I (102) boot:  2 phy_init         RF data          01 01 00018000 00001000
I (109) boot:  3 ota_0            OTA app          00 10 00020000 00177000
I (117) boot:  4 ota_1            OTA app          00 11 001a0000 00177000
I (124) boot:  5 storage          WiFi data        01 02 00317000 00010000
I (132) boot:  6 spiffs           Unknown data     01 82 00327000 00030000
I (139) boot: End of partition table
I (144) boot: ota rollback check done
I (148) boot_comm: chip revision: 1, min. application chip revision: 0
I (155) esp_image: segment 0: paddr=0x00020020 vaddr=0x3f400020 size=0x2c960 (182624) map
I (228) esp_image: segment 1: paddr=0x0004c988 vaddr=0x3ffbdb60 size=0x02c28 ( 11304) load
I (233) esp_image: segment 2: paddr=0x0004f5b8 vaddr=0x40080000 size=0x00400 (  1024) load
xtensa-esp32-elf-addr2line -pfiaC -e /Users/vp/esp/Pebble_ESP32_Firmware/build/esp32_app 0x40080000: [Errno 2] No such file or directory
I (236) esp_image: segment 3: paddr=0x0004f9c0 vaddr=0x40080400 size=0x00650 (  1616) load
xtensa-esp32-elf-addr2line -pfiaC -e /Users/vp/esp/Pebble_ESP32_Firmware/build/esp32_app 0x40080400: [Errno 2] No such file or directory
I (245) esp_image: segment 4: paddr=0x00050018 vaddr=0x400d0018 size=0x875b4 (554420) map
xtensa-esp32-elf-addr2line -pfiaC -e /Users/vp/esp/Pebble_ESP32_Firmware/build/esp32_app 0x400d0018: [Errno 2] No such file or directory
I (447) esp_image: segment 5: paddr=0x000d75d4 vaddr=0x40080a50 size=0x0fd00 ( 64768) load
xtensa-esp32-elf-addr2line -pfiaC -e /Users/vp/esp/Pebble_ESP32_Firmware/build/esp32_app 0x40080a50: [Errno 2] No such file or directory
I (484) boot: Loaded app from partition at offset 0x20000
...

Despite this message the board does boot up fine.

Thanks for your post - but it is not clear if you have a FreeRTOS related question or not. If so I would be grateful if you could re-state it so we can try and help.

I was wondering why this error message was showing up when I run the following command.

idf.py monitor -p /dev/cu.SLAB_USBtoUART

Is this forum not the appropriate place to ask this question? Thanks!

This forum is really for FreeRTOS specific questions. Unless I’m mistaken, in which case point it out to me, that command and the output it generates are specific to the ESP32 and/or the IDF tools rather than FreeRTOS.

1 Like

Okay makes sense. I thought since this was under the Espressif category I could ask that question here.