Programming the new ESP32-S3 dev boards

zazas321
Posts: 231
Joined: Mon Feb 01, 2021 9:41 am

Programming the new ESP32-S3 dev boards

Postby zazas321 » Thu Oct 07, 2021 11:49 am

Hello. I have recently got my hands on the new ESP32-s3 boards and would like to try and program this device.

I have picked up hello world example from esp-idf and changed the target to ESP32-s3. The project built sucesfully but I am not able to flash the device.

. The error message:

Code: Select all

Terminal will be reused by tasks, press any key to close it.

> Executing task: C:\Users\petrikas.lu\.espressif\python_env\idf4.3_py3.8_env\Scripts\python.exe C:\Users\petrikas.lu\esp\esp-idf\components\esptool_py\esptool\esptool.py -p COM24 -b 460800 --before default_reset --after hard_reset --chip esp32s3 write_flash --flash_mode dio --flash_freq 40m --flash_size detect 0x10000 hello-world.bin 0x0 bootloader/bootloader.bin 0x8000 partition_table/partition-table.bin <

usage: esptool [-h] [--chip {auto,esp8266,esp32,esp32s2,esp32s3beta2,esp32s3beta3,esp32c3,esp32c6beta}] [--port PORT] [--baud BAUD]
               [--before {default_reset,no_reset,no_reset_no_sync}] [--after {hard_reset,soft_reset,no_reset,no_reset_stub}] [--no-stub]   
               [--trace] [--override-vddsdio [{1.8V,1.9V,OFF}]] [--connect-attempts CONNECT_ATTEMPTS]
               {load_ram,dump_mem,read_mem,write_mem,write_flash,run,image_info,make_image,elf2image,read_mac,chip_id,flash_id,read_flash_status,write_flash_status,read_flash,verify_flash,erase_flash,erase_region,merge_bin,version,get_security_info}
               ...
esptool: error: argument --chip/-c: invalid choice: 'esp32s3' (choose from 'auto', 'esp8266', 'esp32', 'esp32s2', 'esp32s3beta2', 'esp32s3beta3', 'esp32c3', 'esp32c6beta')
The terminal process "C:\Users\petrikas.lu\.espressif\python_env\idf4.3_py3.8_env\Scripts\python.exe 'C:\Users\petrikas.lu\esp\esp-idf\components\esptool_py\esptool\esptool.py', '-p', 'COM24', '-b', '460800', '--before', 'default_reset', '--after', 'hard_reset', '--chip', 'esp32s3', 'write_flash', '--flash_mode', 'dio', '--flash_freq', '40m', '--flash_size', 'detect', '0x10000', 'hello-world.bin', '0x0', 'bootloader/bootloader.bin', '0x8000', 'partition_table/partition-table.bin'" terminated with exit code: 2.

Terminal will be reused by tasks, press any key to close it.

I would also like to ask an additional questions. Why there are 2 USB ports on the device and how they are inteded to be used? Which one do I use to flash a program to the device and what is the other port being used for?

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

Re: Programming the new ESP32-S3 dev boards

Postby ESP_krzychb » Thu Oct 07, 2021 12:38 pm

Hello zazas321,

Have you tried the master (latest) branch? From the logs I see you are using ESP-IDF 4.3 (idf4.3). If you install the latest branch you will see idf4.4 instead, ref. https://github.com/espressif/esp-idf#es ... patibility
Use port labelled "UART" for flashing, see https://docs.espressif.com/projects/esp ... ware-setup

Jeevan
Posts: 3
Joined: Thu Mar 17, 2022 4:58 pm

Re: Programming the new ESP32-S3 dev boards

Postby Jeevan » Fri Mar 18, 2022 6:31 am

Hello!
I also just got my hands on the board. Currently using Vscode.
Can I check when would the ESP32s3 be supported on Arduino IDE?

allrobot
Posts: 17
Joined: Wed Nov 03, 2021 7:15 am

Re: Programming the new ESP32-S3 dev boards

Postby allrobot » Fri Mar 18, 2022 3:05 pm


ESP_Sprite
Posts: 9764
Joined: Thu Nov 26, 2015 4:08 am

Re: Programming the new ESP32-S3 dev boards

Postby ESP_Sprite » Mon Mar 21, 2022 1:18 am

allrobot wrote:
Fri Mar 18, 2022 3:05 pm
Using Arduino programming is recommended.......

https://randomnerdtutorials.com/install ... tructions/

https://randomnerdtutorials.com/getting ... ith-esp32/
By whom? Programming in ESP-IDF should work great as long as you use an ESP-IDF version that supports the chip.

allrobot
Posts: 17
Joined: Wed Nov 03, 2021 7:15 am

Re: Programming the new ESP32-S3 dev boards

Postby allrobot » Wed Mar 30, 2022 6:57 am

ESP_Sprite wrote:
Mon Mar 21, 2022 1:18 am
allrobot wrote:
Fri Mar 18, 2022 3:05 pm
Using Arduino programming is recommended.......

https://randomnerdtutorials.com/install ... tructions/

https://randomnerdtutorials.com/getting ... ith-esp32/
By whom? Programming in ESP-IDF should work great as long as you use an ESP-IDF version that supports the chip.
Arduino allows you not to download ESP-IDF for Bluetooth debugging, but only download the ESP development board library. Of course, this is my personal opinion

Who is online

Users browsing this forum: No registered users and 169 guests