ESP-IDF can't work with Connectedhomeip: "Please use idf.py only in an ESP-IDF shell enviroment"

hoanganhhao
Posts: 1
Joined: Mon Jul 17, 2023 7:38 am

ESP-IDF can't work with Connectedhomeip: "Please use idf.py only in an ESP-IDF shell enviroment"

Postby hoanganhhao » Mon Jul 17, 2023 9:38 am

Hi everyone
Recently I start developing Matter products with ESP chips. Problems appear when I tried using ESP-IDF v5.1 (the version support ESP-C6) to build Matter example in Connectedhomeip (v1.1.0.1).
In the first command using idf.py, the error says: "Please use idf.py only in an ESP-IDF shell enviroment" (image attached)
With all the same steps using ESP-IDF v4.4, I didn't encounter the error log above.
In specific, I take steps below:
1. Install ESP-IDF (after cloning):
cd esp-idf
./install.sh
2. Set up enviroment:
cd connectedhomeip
source scripts/bootstrap.sh
cd esp-idf
source export.sh
3. Build example:
cd connectedhomeip
source scripts/activate.sh
cd examples/lighting-app/esp32
idf.py set-target esp32c3
So does anyone encounter this error too? And what's the solution for it?
Hope it can be fixed soon.
Best regards.
Attachments
Screenshot from 2023-07-04 22-33-49.jpg
Screenshot from 2023-07-04 22-33-49.jpg (313.05 KiB) Viewed 950 times

Who is online

Users browsing this forum: Google [Bot] and 101 guests