mirrexagon / nixpkgs-esp-dev

Nix flake and overlay for ESP8266 and ESP32 development.
Creative Commons Zero v1.0 Universal
143 stars 71 forks source link

What to set `ESP_ROM_ELF_DIR` #62

Open jr1221 opened 2 months ago

jr1221 commented 2 months ago

Hi,

ESP_ROM_ELF_DIR is not set, which results in failed gdb commands.

Can you please advise what to set it to?

jr1221 commented 2 months ago

I got good results with this export ESP_ROM_ELF_DIR=/nix/store/16d6gy5clh0ri2z5wkcnzdj3l1cbmadq-xtensa-esp-elf-gdb-esp-idf-v5.3

mirrexagon commented 1 month ago

According to ESP-IDF v5.3.1's tools.json, it should be set to the esp-rom-elfs directory. I assume this is to look up debugging information for the burned-in boot ROM if you ever step into it. I will have to install that as a tool, and get exported vars working at the idf.py level (as in #61).