platformio / platform-espressif32

Espressif 32: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/espressif32
Apache License 2.0
855 stars 570 forks source link

How to run idf.py or coredump.py from Platformio cli? #1359

Open hitecSmartHome opened 2 months ago

hitecSmartHome commented 2 months ago

Environment

I want to decode my downloaded coredump bin file. I have installed ESP-IDF 5.2 PowerShell with all the tools for ESP IDF. I have cd-d into my project directory which uses Arduino as a component of IDF.

When i try these commands:

  1. idf.py coredump-info -c your-coredump.txt
  2. espcoredump.py info_corefile -c your-coredump.txt -t raw <your_app_elf_file_path>

They do not work. I assume it is because of the PIO IDF installation. The separate IDF installation is not happy with it.

Here is the relevant issue ticket on ESP IDF. They sent me there.

https://github.com/espressif/esp-idf/issues/13611

valeros commented 2 months ago

Hi @hitecSmartHome, I'm not sure if we can help you in any way because the issues you're describing are related to third-party tools which are not directly supported by PlatformIO. Just curious, since you've already installed IDF development environment, have you tried to compile your project there? Does it work as intended?

hitecSmartHome commented 2 months ago

I did not tried to compile. The only reason that I installed the IDF is that i wanted to decode my coredump bin file. I have no intention to use it for anything else. PIO inspect is broken so I might use the IDF code checker too. Since I use PIO's idf and Arduino as a component, is there any way to call it from pio?

valeros commented 2 months ago

Since I use PIO's idf and Arduino as a component, is there any way to call it from pio?

The tools you mentioned are not part of the PlatformIO integration, but it doesn't mean it shouldn't work. This behavior may be hiding an issue in our integration, so I'd kindly recommend testing the same project but within the IDF environment, so that we can figure out which part is causing this issue.