Esp32s2 Build fails with: ninja: build stopped: subcommand failed (IDFGH-8327) #9804
Closed
3 tasks done
Labels
Resolution: Won't Do
This will not be worked on
Status: Done
Issue is done internally
Type: Bug
bugs in IDF
Answers checklist.
IDF version.
idf4.4
Operating System used.
macOS
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
No response
What is the expected behavior?
I am exactly following the setup documentation for MacOS and trying the default HelloWorld example.
I have an ESP32s2 chip plugged in and in flashing mode. When I run:
idf.py -p /dev/cu.usbmodem01 -b 460800 flash
I expect it to build and flash the helloworld example.
What is the actual behavior?
When I run the command, this is the end of the output:
`WARNING: ESP32-S2FNR2 chip was placed into download mode using GPIO0.
esptool.py can not exit the download mode over USB. To run the app, reset the chip manually.
To suppress this note, set --after option to 'no_reset'.
CMake Error at run_serial_tool.cmake:56 (message):
/Users/skicka/.espressif/python_env/idf4.4_py3.10_env/bin/python
/Users/skicka/esp/esp-idf/components/esptool_py/esptool/esptool.py --chip
esp32s2 failed
FAILED: CMakeFiles/flash /Users/skicka/esp/hello_world/build/CMakeFiles/flash
cd /Users/skicka/esp/esp-idf/components/esptool_py && /usr/local/Cellar/cmake/3.24.2/bin/cmake -D IDF_PATH="/Users/skicka/esp/esp-idf" -D SERIAL_TOOL="/Users/skicka/.espressif/python_env/idf4.4_py3.10_env/bin/python /Users/skicka/esp/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32s2" -D SERIAL_TOOL_ARGS="--before=default_reset --after=hard_reset write_flash @flash_args" -D WORKING_DIRECTORY="/Users/skicka/esp/hello_world/build" -P /Users/skicka/esp/esp-idf/components/esptool_py/run_serial_tool.cmake
ninja: build stopped: subcommand failed.
ninja failed with exit code 1`
To troubleshoot, I have also tried selecting "only most common certificates" in the menu, and disabling certificates entirely. There is no effect.
After the failed flashing, the esp32s2 will not show up as a serial device unless it's put into flash mode.
Steps to reproduce.
idf.py -p /dev/cu.usbmodem01 -b 460800 flash
ninja: build stopped: subcommand failed. ninja failed with exit code 1
Build or installation Logs.
More Information.
I've tried the fixes mentioned here: #5322 (comment)
It was not effective.
The text was updated successfully, but these errors were encountered: