espcoredump.py error

23skidoo
Posts: 4
Joined: Wed Aug 12, 2020 1:51 pm

espcoredump.py error

Postby 23skidoo » Wed Aug 12, 2020 4:55 pm

hello,

when analysing core dump file using espcoredump.py, with either the coredump saved to flash or b64 .dat file saved after UART print, espcoredump.py is giving the following error;

Code: Select all

home@Droid5:~/espressif/esp-idf/components/espcoredump$ python ./espcoredump.py -p/dev/ttyUSB0 info_corefile /home/home/Documents/PlatformIO/Projects/esp32_fm_drum_st/.pio/build/esp-wrover-kit/firmware.elf -r esp32_rom.elf
espcoredump.py v0.3-dev
esptool.py v2.8
Serial port /dev/ttyUSB0
Connecting........____
Chip is ESP32D0WDQ5 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 30:ae:a4:dd:58:f0
Uploading stub...
Running stub...
Stub running...
4 (100 %)
4 (100 %)
Read 4 bytes at 0x110000 in 0.0 seconds (3.7 kbit/s)...
Hard resetting via RTS pin...

esptool.py v2.8
Serial port /dev/ttyUSB0
Connecting........___
Chip is ESP32D0WDQ5 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 30:ae:a4:dd:58:f0
Uploading stub...
Running stub...
Stub running...
7932 (100 %)
7932 (100 %)
Read 7932 bytes at 0x110000 in 0.7 seconds (88.6 kbit/s)...
Hard resetting via RTS pin...

Traceback (most recent call last):
  File "espcoredump.py", line 1190, in <module>
    main()
  File "espcoredump.py", line 1185, in main
    operation_func(args)
  File "espcoredump.py", line 1057, in info_corefile
    p = gdbmi_start(handlers, [rom_sym_cmd])
  File "espcoredump.py", line 972, in gdbmi_start
    close_fds=CLOSE_FDS)
  File "/usr/lib/python2.7/subprocess.py", line 394, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1047, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
Which file or directory does the error relate to? thanks

Leander
Posts: 28
Joined: Thu Sep 26, 2019 8:50 pm

Re: espcoredump.py error

Postby Leander » Fri Aug 14, 2020 9:25 am

I'm having the exact same issue.

I tried the espcoredump.py from IDF 3.3, 4.0 and 4.2 and with the same results.

I used an abort() call in code to generate a coredump .

23skidoo
Posts: 4
Joined: Wed Aug 12, 2020 1:51 pm

Re: espcoredump.py error

Postby 23skidoo » Sun Aug 16, 2020 1:49 pm

Does the esp-idf folder need to be added to the python path? I don't have this folder in my python path currently:

Code: Select all

home@Droid5:~$ python -c "import sys; print(sys.path)"
['', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/home/home/.local/lib/python2.7/site-packages', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/gtk-2.0']
There appears to be a few different ways to add/append a folder to the path.

Who is online

Users browsing this forum: MicroController and 114 guests