ESP32S2 Wroom

vishalkwaghmare
Posts: 7
Joined: Sun Dec 27, 2020 6:23 pm

ESP32S2 Wroom

Postby vishalkwaghmare » Mon Dec 28, 2020 6:06 am

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 5643 times

User avatar
ESP_Roland
Posts: 265
Joined: Tue Oct 09, 2018 10:28 am

Re: ESP32S2 Wroom

Postby ESP_Roland » Mon Dec 28, 2020 7:48 am

Hi vishalkwaghmare,

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

vishalkwaghmare
Posts: 7
Joined: Sun Dec 27, 2020 6:23 pm

Re: ESP32S2 Wroom

Postby vishalkwaghmare » Mon Dec 28, 2020 10:45 am

Hi Sir,
Thank you for your response, but I'm already using version 4.2.

User avatar
ESP_Roland
Posts: 265
Joined: Tue Oct 09, 2018 10:28 am

Re: ESP32S2 Wroom

Postby ESP_Roland » Mon Dec 28, 2020 1:49 pm

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.

chegewara
Posts: 2364
Joined: Wed Jun 14, 2017 9:00 pm

Re: ESP32S2 Wroom

Postby chegewara » Mon Dec 28, 2020 4:33 pm

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]

vishalkwaghmare
Posts: 7
Joined: Sun Dec 27, 2020 6:23 pm

Re: ESP32S2 Wroom

Postby vishalkwaghmare » Tue Dec 29, 2020 11:06 am

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 5540 times

vishalkwaghmare
Posts: 7
Joined: Sun Dec 27, 2020 6:23 pm

Re: ESP32S2 Wroom

Postby vishalkwaghmare » Tue Dec 29, 2020 11:12 am

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!

Who is online

Users browsing this forum: No registered users and 76 guests