ESP-IDF can't work with Connectedhomeip: "Please use idf.py only in an ESP-IDF shell enviroment"
Posted: 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:
Hope it can be fixed soon.
Best regards.
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:
So does anyone encounter this error too? And what's the solution for it?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
Hope it can be fixed soon.
Best regards.