Page 1 of 1

How to config IDF for ESP32-S2 development?

Posted: Sat Oct 17, 2020 7:08 pm
by scarecrowthere
I got a ESP32-S2-SAOLA-1R board and want to use IDF v4.2 for the development in Window 10 environment. The serial port is COM4. I used the default menuconfig settings. idf.py build was running OK and generated the .bin file. When I run idf.py -p COM4 flash, I got the error message "This chip is ESP32-S2 not ESP32. Wrong --chip argument?". It sounds like the SDK configuration is not right, but I couldn't find the settings for the chip type in menuconfig. Could anybody help me to find out the solution? Thanks!

Re: How to config IDF for ESP32-S2 development?

Posted: Sat Oct 17, 2020 8:55 pm
by ESP_krzychb
You may have missed:

Code: Select all

idf.py set-target esp32s2
See https://docs.espressif.com/projects/esp ... x.html#id9

Re: How to config IDF for ESP32-S2 development?

Posted: Sun Oct 18, 2020 6:36 am
by scarecrowthere
You are right. After setting the target to esp32s2, the s2 board can be flashed.
The pdf version of IDF programming guide doesn't mention about the target settings. Do you know when the document will be updated?