Page 1 of 1

esptool not recognizing esp32-S2 chip

Posted: Wed Dec 09, 2020 7:55 am
by marrmaddox
I'm on Win10, Arduino, trying to write a file to an esp32-s2 and get the message below. It also fails when using the command line esptool.py.

esptool.py v3.0-dev
Serial port COM3
Connecting.....

A fatal error occurred: This chip is ESP32-S2 not ESP32. Wrong --chip argument?
SPIFFS Upload failed!

Re: esptool not recognizing esp32-S2 chip

Posted: Wed Dec 09, 2020 8:06 am
by ESP_Angus
This error means that esptool.py was passed the "--chip esp32" command line argument, but the chip is actually ESP32-S2.

Are you sure the Arduino settings are correct for an ESP32-S2 target?

Re: esptool not recognizing esp32-S2 chip

Posted: Wed Dec 09, 2020 6:13 pm
by lbernstone
Are you using the fs plugin from @me-no-dev or @lorol? https://github.com/lorol/arduino-esp32fs-plugin library has been updated to support esp32-s2

Re: esptool not recognizing esp32-S2 chip

Posted: Fri Dec 11, 2020 10:10 am
by marrmaddox
I was using me-no-dev, but lorol worked! Thank you so much, I 'wasted' two days on this and was dreading going back to the ESP32 and shift registers due to lack of usable ports with wifi.

Much appreciated! Happy holiday to you.

Re: esptool not recognizing esp32-S2 chip

Posted: Wed Apr 27, 2022 6:34 am
by Mrunmai Dahare
I also got same error message may I please know hoe to fix this? How to change chip to ESP32 S2 in configuration? This is my error message:

Code: Select all

A fatal error occurred: This chip is ESP32-S2 not ESP32. Wrong --chip argument?
CMake Error at run_serial_tool.cmake:56 (message):
  C:/Espressif/python_env/idf4.4_py3.8_env/Scripts/python.exe
  C:/Espressif/frameworks/esp-idf-v4.4/components/esptool_py/esptool/esptool.py
  --chip esp32 failed

Re: esptool not recognizing esp32-S2 chip

Posted: Wed Apr 27, 2022 7:35 am
by ESP_Sprite
Did you select the S2 as your target?

Code: Select all

idf.py set-target esp32s2