ESP32-S2 module custom programming
ESP32-S2 module custom programming
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.
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.
-
- Posts: 9730
- Joined: Thu Nov 26, 2015 4:08 am
Re: ESP32-S2 module custom programming
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
What custom chip?
Re: ESP32-S2 module custom programming
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.
-
- Posts: 9730
- Joined: Thu Nov 26, 2015 4:08 am
Re: ESP32-S2 module custom programming
There is enough information out there in datasheets and schematics. What specifically do you have problems with?
Re: ESP32-S2 module custom programming
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
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
-
- Posts: 9730
- Joined: Thu Nov 26, 2015 4:08 am
Re: ESP32-S2 module custom programming
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
Hi,
Find the attached file of schematic view. please, ignore the imperfection.
Find the attached file of schematic view. please, ignore the imperfection.
- Attachments
-
- wifi_usb_uart.jpg (56.28 KiB) Viewed 10836 times
-
- Posts: 20
- Joined: Thu Nov 02, 2017 12:40 am
Re: ESP32-S2 module custom programming
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?
-
- Posts: 9730
- Joined: Thu Nov 26, 2015 4:08 am
Re: ESP32-S2 module custom programming
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 74 guests