Page 1 of 1

ESP-IDF ninja: build stopped: subcommand failed. ninja failed with exit code 1

Posted: Wed Nov 30, 2022 6:39 am
by Sireesha
Hi,
I am trying start working with ESP-IDF. Using get started guide I am trying to execute the basic hello_world program in ESP-IDF CMD from examples but while flashing I am getting below error.I attached error image. Can anyone suggest me how to solve this error.
Thanks in Advance.

Re: ESP-IDF ninja: build stopped: subcommand failed. ninja failed with exit code 1

Posted: Thu Dec 01, 2022 12:46 am
by chegewara
1. you should post more logs, which are before the one on picture
2. thats good you want to protect you user name, but the name may be the issue (probably not the case here), like in other topic recently, where user name was "m&m) and arduino IDE did not accept & in it

Re: ESP-IDF ninja: build stopped: subcommand failed. ninja failed with exit code 1

Posted: Mon Feb 20, 2023 9:41 am
by Sireesha
Thanks for the reply.

Solution for the issue:
Go to your IDF install location, and run .\export.bat in a terminal. That should load everything you need to build the code inside that particular terminal.