Page 1 of 2
ESP32-S2 module custom programming
Posted: Wed Jan 13, 2021 6:36 am
by roshan.r
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.
Re: ESP32-S2 module custom programming
Posted: Wed Jan 13, 2021 8:10 am
by ESP_Sprite
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.
Re: ESP32-S2 module custom programming
Posted: Wed Jan 13, 2021 12:48 pm
by Miraculix
What custom chip?
Re: ESP32-S2 module custom programming
Posted: Mon Jan 18, 2021 12:55 pm
by roshan.r
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.
Re: ESP32-S2 module custom programming
Posted: Tue Jan 19, 2021 1:31 am
by ESP_Sprite
There is enough information out there in datasheets and schematics. What specifically do you have problems with?
Re: ESP32-S2 module custom programming
Posted: Tue Jan 19, 2021 6:51 am
by roshan.r
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
Re: ESP32-S2 module custom programming
Posted: Tue Jan 19, 2021 7:50 am
by ESP_Sprite
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?
Re: ESP32-S2 module custom programming
Posted: Tue Jan 19, 2021 10:03 am
by roshan.r
Hi,
Find the attached file of schematic view. please, ignore the imperfection.
Re: ESP32-S2 module custom programming
Posted: Tue Jan 19, 2021 7:20 pm
by mgsecord62
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?
Re: ESP32-S2 module custom programming
Posted: Wed Jan 20, 2021 4:41 am
by ESP_Sprite
Also, what specifically is that block labeled 'ESP32-S2'? The chip? A module (if so, which)? A devboard (if so, which)?