idf.py monitor cannot find xtensa-esp32s3-elf-addr2line

rtborg
Posts: 67
Joined: Wed Oct 23, 2019 6:15 am

idf.py monitor cannot find xtensa-esp32s3-elf-addr2line

Postby rtborg » Thu Dec 21, 2023 12:32 pm

When using idf.py monitor, I get a bunch of errors related to missing file xtensa-esp32s3-elf-addr2line. The binary is on my file system, under $IDF_TOOLS_PATH directory. How to ensure idf.py monitor finds it?

Thanks


Code: Select all

-- idf_monitor on /dev/ttyUSB1 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x1 (POWERON),boot:0xb (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fcd0108,len:0x1650
load:0x403b6000,len:0xe30
xtensa-esp32s3-elf-addr2line -pfiaC -e /home/user/Documents/Projects/myproject/build/myproject.elf 0x403b6000: [Errno 2] No such file or directory: 'xtensa-esp32s3-elf-addr2line'
load:0x403ba000,len:0x2f7c
xtensa-esp32s3-elf-addr2line -pfiaC -e /home/user/Documents/Projects/myproject/build/myproject.elf 0x403ba000: [Errno 2] No such file or directory: 'xtensa-esp32s3-elf-addr2line'
entry 0x403b631c
xtensa-esp32s3-elf-addr2line -pfiaC -e /home/user/Documents/Projects/myproject/build/myproject.elf 0x403b631c: [Errno 2] No such file or directory: 'xtensa-esp32s3-elf-addr2line'
I (24) boot: ESP-IDF v4.4-dev-3608-gbbe2a1bf34 2nd stage bootloader
I (25) boot: compile time 07:34:28
I (25) boot: chip revision: 0
I (28) qio_mode: Enabling QIO for flash chip ISSI
I (33) boot.esp32s3: Boot SPI Speed : 80MHz
I (38) boot.esp32s3: SPI Mode       : QIO
I (43) boot.esp32s3: SPI Flash Size : 8MB
I (48) boot: Enabling RNG early entropy source...
W (53) bootloader_random: RNG for ESP32-S3 not currently supported
I (60) boot: Partition Table:
I (63) boot: ## Label            Usage          Type ST Offset   Length
I (71) boot:  0 nvs              WiFi data        01 02 00009000 00005000
I (78) boot:  1 otadata          OTA data         01 00 0000e000 00002000
I (86) boot:  2 ota_0            OTA app          00 10 00010000 00200000
I (93) boot:  3 ota_1            OTA app          00 11 00210000 00200000
I (101) boot:  4 uf2              factory app      00 00 00410000 00040000
I (108) boot:  5 ffat             Unknown data     01 81 00450000 003b0000
I (116) boot: End of partition table
I (620) esp_image: segment 0: paddr=00010020 vaddr=3c060020 size=1e22ch (123436) map
I (638) esp_image: segment 1: paddr=0002e254 vaddr=3fc98800 size=01dc4h (  7620) load
I (639) esp_image: segment 2: paddr=00030020 vaddr=42000020 size=52a1ch (338460) map
I (678) esp_image: segment 3: paddr=00082a44 vaddr=3fc9a5c4 size=01474h (  5236) load
I (679) esp_image: segment 4: paddr=00083ec0 vaddr=40374000 size=14798h ( 83864) load
I (696) esp_image: segment 5: paddr=00098660 vaddr=600fe000 size=0003ch (    60) load
I (704) boot: Loaded app from partition at offset 0x10000
I (704) boot: Disabling RNG early entropy source...
W (705) bootloader_random: RNG for ESP32-S3 not currently supported
I (723) cpu_start: Multicore app
I (723) cpu_start: Pro cpu up.
I (723) cpu_start: Starting app cpu, entry point is 0x4037585c
xtensa-esp32s3-elf-addr2line -pfiaC -e /home/user/Documents/Projects/myproject/build/myproject.elf 0x4037585c: [Errno 2] No such file or directory: 'xtensa-esp32s3-elf-addr2line'
I (0) cpu_start: App cpu up.
I (741) cpu_start: Pro cpu start user code
I (741) cpu_start: cpu freq: 160000000 Hz
I (742) cpu_start: Application information:
I (744) cpu_start: Project name:     myproject
I (750) cpu_start: App version:      d5d7536
I (755) cpu_start: Compile time:     Dec 21 2023 12:07:50
I (761) cpu_start: ELF file SHA256:  8b0fdf3eb00d13c4...
I (767) cpu_start: ESP-IDF:          v5.0.4-265-gf333925342
I (774) cpu_start: Min chip rev:     v0.0
I (778) cpu_start: Max chip rev:     v0.99 
I (783) cpu_start: Chip rev:         v0.2
I (788) heap_init: Initializing. RAM available for dynamic allocation:
I (796) heap_init: At 3FC9E5C0 len 0004B150 (300 KiB): DRAM
I (801) heap_init: At 3FCE9710 len 00005724 (21 KiB): STACK/DRAM
I (808) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (814) heap_init: At 600FE03C len 00001FAC (7 KiB): RTCRAM
I (821) spi_flash: detected chip: issi
I (825) spi_flash: flash io: dio
I (830) sleep: Configure to isolate all GPIO pins in sleep state
I (836) sleep: Enable automatic switching of GPIO sleep configuration
I (843) app_start: Starting scheduler on CPU0
I (848) app_start: Starting scheduler on CPU1
I (848) main_task: Started on CPU0

User avatar
ESP_Roland
Posts: 265
Joined: Tue Oct 09, 2018 10:28 am

Re: idf.py monitor cannot find xtensa-esp32s3-elf-addr2line

Postby ESP_Roland » Thu Dec 21, 2023 2:05 pm

If you are in an ESP-IDF environment then it should be available (in terminal where you sourced export.sh). Please run IDF Monitor from the same environment you are building your projects. You can test this and should be able to run "xtensa-esp32s3-elf-addr2line --version" there.

Who is online

Users browsing this forum: No registered users and 76 guests