Page 1 of 1

ESP32S2 Wroom

Posted: Mon Dec 28, 2020 6:06 am
by vishalkwaghmare
Hi guys,
I'm facing this error after build. I'm not able to flash.
Can anyone help me in this regard?


esptool: error: argument --chip/-c: invalid choice: 'esp32s2beta' (choose from 'auto', 'esp8266', 'esp32', 'esp32s2', 'esp32s3beta2', 'esp32c3')
ninja: build stopped: subcommand failed.
[618/887] Building C object esp-idf/expat/CMakeFiles/__idf_expat.dir/expat/expat/lib/xmltok.c.obj
ninja: build stopped: subcommand failed.
ninja failed with exit code 1


Any suggestions?
Thanks in advance!
to be uplaod.PNG
to be uplaod.PNG (88.56 KiB) Viewed 5647 times

Re: ESP32S2 Wroom

Posted: Mon Dec 28, 2020 7:48 am
by ESP_Roland
Hi vishalkwaghmare,

ESP32-S2 is supported from IDF v4.2. You are using IDF v4.1.

Re: ESP32S2 Wroom

Posted: Mon Dec 28, 2020 10:45 am
by vishalkwaghmare
Hi Sir,
Thank you for your response, but I'm already using version 4.2.

Re: ESP32S2 Wroom

Posted: Mon Dec 28, 2020 1:49 pm
by ESP_Roland
According to the screenshot, you have probably downloaded IDF v4.2 and using the project from there but you are still building with IDF v4.1. Please examine the value of environment variable IDF_PATH.

Re: ESP32S2 Wroom

Posted: Mon Dec 28, 2020 4:33 pm
by chegewara
Here is set of options for set-target in v4.2, you can compare with yours:

Code: Select all

Usage: idf.py set-target [OPTIONS] [esp32|esp32s2]

Re: ESP32S2 Wroom

Posted: Tue Dec 29, 2020 11:06 am
by vishalkwaghmare
Hi Sir,

Yes, you are right I was using the codebase from v4.2 but the ESP-IDF is of v4.1. I tried with v4.2 but it is showing some error in installation.
However, I'm able to run it with the master branch of ESP-IDF, here is the screenshot attached.

Thank you again for your support.
Hello_world.PNG
Hello_world.PNG (87.19 KiB) Viewed 5544 times

Re: ESP32S2 Wroom

Posted: Tue Dec 29, 2020 11:12 am
by vishalkwaghmare
Hi Sir,

Actually, I wanna send a data in Text, or any form over WiFi with the help of ESP32S2 to another computer. How can I proceed for it, could you please suggest.

Any suggestions?

Thanks in advance!