idf.py is missing

attonasi
Posts: 1
Joined: Sun Aug 12, 2018 10:24 pm

idf.py is missing

Postby attonasi » Sun Aug 12, 2018 10:32 pm

I used the ESP32 for a project through the arduino IDE and I want to get out of that so I have been going through the getting started docs here https://docs.espressif.com/projects/esp ... index.html.

When I got to the hello world section I found that idf.py is not in tools. I have idf_size.py and idf_monitor.py but no idf.py. I couldn't find it in the repository either.

Is this something I am supposed to build in a different step? Not sure what I am missing.

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: idf.py is missing

Postby ESP_Angus » Sun Aug 12, 2018 11:46 pm

Hi attonasi,

The docs at this link are for the cmake preview branch, so you have to have this branch checked out in order to use idf.py (which is a new tool, part of the cmake-based build system).

You can change into an IDF directory and run "git checkout feature/cmake" to get this branch.

Alternatively, documentation for master branch can be found here: https://docs.espressif.com/projects/esp-idf/en/latest/

(Or you can click the little versions pop-up in the bottom left corner of any documentation page, to switch versions.)

merenel
Posts: 1
Joined: Tue Jun 22, 2021 10:39 pm

Re: idf.py is missing

Postby merenel » Tue Jun 22, 2021 10:46 pm

Hello,

I was working on Raspberry Pi 4 and had the same problem. Read below to sort this out.

Make sure you install cmake
https://snapcraft.io/install/cmake/raspbian

Make sure you are in the principal folder (the one in which you are when you open the terminal)
and insert in the terminal:
. $HOME/esp/esp-idf/export.sh

you are basically pointing to export.sh file and if you do both these things
idf.py commands will work from now on

hope it helps.

If you close the terminal you have to rerun . $HOME/esp/esp-idf/export.sh every time

Hope this helps

Pietro

Who is online

Users browsing this forum: No registered users and 118 guests