How to config IDF for ESP32-S2 development?

scarecrowthere
Posts: 4
Joined: Thu Oct 15, 2020 5:59 am

How to config IDF for ESP32-S2 development?

Postby scarecrowthere » Sat Oct 17, 2020 7:08 pm

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!

User avatar
ESP_krzychb
Posts: 400
Joined: Sat Oct 01, 2016 9:05 am
Contact:

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

Postby ESP_krzychb » Sat Oct 17, 2020 8:55 pm

You may have missed:

Code: Select all

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

scarecrowthere
Posts: 4
Joined: Thu Oct 15, 2020 5:59 am

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

Postby scarecrowthere » Sun Oct 18, 2020 6:36 am

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?

Who is online

Users browsing this forum: No registered users and 66 guests