使用ESP-IDF出现A fatal error occurred: This chip is ESP32-S3 not ESP32. Wrong --chip argument?的问题是因为没有把芯片设为目标。
在将环境设置为esp-idf,就是需要export.sh一下,这个不做解释。
之后我们在terminal中逐个输入以下代码
idf.py set-target #我的是esp32s3,这里填写你的芯片#
idf.py fullclean
idf.py build
idf.py -p #你的ESP32的挂载地址# flash monitor
就可以开始烧录!!!