ESP32-S2 module custom programming

roshan.r
Posts: 5
Joined: Tue Jan 12, 2021 2:50 pm

ESP32-S2 module custom programming

Postby roshan.r » Wed Jan 13, 2021 6:36 am

Hi,
We are developing a application with ESP32-S2 where I have to program the ESP32-S2 custom chip. May I know the best way to program the chip and let me know the procedure. kindly, do the needful.

Thanks & Regards,
Roshan.

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

Re: ESP32-S2 module custom programming

Postby ESP_Sprite » Wed Jan 13, 2021 8:10 am

Your post doesn't make much sense. Are you asking how to program the flash in an ESP32 module? You do that using the IO0, EN, TX and RX pins; see for instance the schematic of a devkit if you need a hardware example. On the software side you can use e.g. esptool.

Miraculix
Posts: 10
Joined: Wed Sep 16, 2020 9:43 am

Re: ESP32-S2 module custom programming

Postby Miraculix » Wed Jan 13, 2021 12:48 pm

What custom chip?

roshan.r
Posts: 5
Joined: Tue Jan 12, 2021 2:50 pm

Re: ESP32-S2 module custom programming

Postby roshan.r » Mon Jan 18, 2021 12:55 pm

I mean i have to flash the program into ESP32-S2 using USB to UART TTL. please, help me on this and also i want to know the boot button pin number in ESP32-S2 module. kindly, do the needful guys. thanks in advance.

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

Re: ESP32-S2 module custom programming

Postby ESP_Sprite » Tue Jan 19, 2021 1:31 am

There is enough information out there in datasheets and schematics. What specifically do you have problems with?

roshan.r
Posts: 5
Joined: Tue Jan 12, 2021 2:50 pm

Re: ESP32-S2 module custom programming

Postby roshan.r » Tue Jan 19, 2021 6:51 am

Actually, I am getting the below error when I am trying to program using USB to UART TTL.

Serial port COM13
Connecting........_____....._____....._____....._____....._____....._____....._____

A fatal error occurred: Failed to connect to ESP32-S2: Timed out waiting for packet header
CMake Error at run_cmd.cmake:14 (message):
esptool.py failed
Call Stack (most recent call first):
run_esptool.cmake:21 (include)



FAILED: CMakeFiles/flash
cmd.exe /C "cd /D C:\Users\rosv2c17090\Desktop\esp-idf-v4.2\components\esptool_py && C:\Users\rosv2c17090\.espressif\tools\cmake\3.16.4\bin\cmake.exe -D IDF_PATH="C:/Users/rosv2c17090/Desktop/esp-idf-v4.2" -D ESPTOOLPY="C:\Users\rosv2c17090\.espressif\python_env\idf4.2_py3.7_env\Scripts\python.exe C:/Users/rosv2c17090/Desktop/esp-idf-v4.2/components/esptool_py/esptool/esptool.py --chip esp32s2" -D ESPTOOL_ARGS="--before=default_reset --after=hard_reset write_flash @flash_args" -D WORKING_DIRECTORY="C:/Users/rosv2c17090/Desktop/venkat_installation/veetech_wifi_develop-2.0/build" -P C:/Users/rosv2c17090/Desktop/esp-idf-v4.2/components/esptool_py/run_esptool.cmake"
ninja: build stopped: subcommand failed.
Executing action: flash

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

Re: ESP32-S2 module custom programming

Postby ESP_Sprite » Tue Jan 19, 2021 7:50 am

That could be anything between the USB-to-serial chip and the ESP32, I'm afraid. Do you have a schematic of your current setup?

roshan.r
Posts: 5
Joined: Tue Jan 12, 2021 2:50 pm

Re: ESP32-S2 module custom programming

Postby roshan.r » Tue Jan 19, 2021 10:03 am

Hi,
Find the attached file of schematic view. please, ignore the imperfection.
Attachments
wifi_usb_uart.jpg
wifi_usb_uart.jpg (56.28 KiB) Viewed 115 times

mgsecord62
Posts: 4
Joined: Thu Nov 02, 2017 12:40 am

Re: ESP32-S2 module custom programming

Postby mgsecord62 » Tue Jan 19, 2021 7:20 pm

How much current can the USB to Serial device supply to the ESP32-S2 module? Many of the inexpensive USB to Serial devices can only supply ~50mA which is not enough for the ESP32-S2 module. Also I have purchased USB to Serial devices that had the RX and TX pins reverse labeled. Have you tried swapping the RX and TX connections?

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

Re: ESP32-S2 module custom programming

Postby ESP_Sprite » Wed Jan 20, 2021 4:41 am

Also, what specifically is that block labeled 'ESP32-S2'? The chip? A module (if so, which)? A devboard (if so, which)?

Who is online

Users browsing this forum: No registered users and 38 guests