I am using my own board with an ESP32E_WROOM with the initial configuration for the strapping pins corresponding to the datasheet (PD or PU). I am using a micro USB to power up my ESP and sending code. Everything worked very good but recently I tried something on the board because I made a mistake on the schematic. The wire (connected to GND) has been left floating and might touch the RX or TX pins from the USB UART driver that i am using FT231XS. Since now, i have this kind of logs when I try running my ESP32 :
Code: Select all
C:\Users\CorentinLEROY\esp\v5.0.6\esp-idf\examples\get-started\blink>idf.py -p COM10 flash monitor
Executing action: flash
Running ninja in directory C:\Users\CorentinLEROY\esp\v5.0.6\esp-idf\examples\get-started\blink\build
Executing "ninja flash"...
[1/5] cmd.exe /C "cd /D C:\Users\CorentinLEROY\esp\v5.0.6\esp-idf\examples\get-started\blink\build\esp-idf\esptool_py && C:\Users\CorentinLEROY\.espressif\python_env\idf5.0_py3.9_env\Scripts\python.exe C:/Users/CorentinLEROY/esp/v5.0.6/esp-idf/components/partition_table/check_sizes.py --offset 0x8000 partition --type app C:/Users/CorentinLEROY/esp/v5.0.6/esp-idf/examples/get-started/blink/build/partition_table/partition-table.bin C:/Users/CorentinLEROY/esp/v5.0.6/esp-idf/examples/get-started/blink/build/blink.bin"
blink.bin binary size 0x2ddf0 bytes. Smallest app partition is 0x100000 bytes. 0xd2210 bytes (82%) free.
[2/5] Performing build step for 'bootloader'
[1/1] cmd.exe /C "cd /D C:\Users\CorentinLEROY\esp\v5.0.6\esp-idf\examples\get-started\blink\build\bootloader\esp-idf\esptool_py && C:\Users\CorentinLEROY\.espressif\python_env\idf5.0_py3.9_env\Scripts\python.exe C:/Users/CorentinLEROY/esp/v5.0.6/esp-idf/components/partition_table/check_sizes.py --offset
0x8000 bootloader 0x1000 C:/Users/CorentinLEROY/esp/v5.0.6/esp-idf/examples/get-started/blink/build/bootloader/bootloader.bin"
Bootloader binary size 0x6760 bytes. 0x8a0 bytes (8%) free.
[2/3] cmd.exe /C "cd /D C:\Users\CorentinLEROY\esp\v5.0.6\esp-idf\components\esptool_py && C:\Users\CorentinLEROY\.espressif\tools\cmake\3.24.0\bin\cmake.exe -D IDF_PATH=C:/Users/CorentinLEROY/esp/v5.0.6/esp-idf -D SERIAL_TOOL=C:/Users/CorentinLEROY/.espressif/python_env/idf5.0_py3.9_env/Scripts/python.exe;;C:/Users/CorentinLEROY/esp/v5.0.6/esp-idf/components/esptool_py/esptool/esptool.py;--chip;esp32 -D SERIAL_TOOL_ARGS=--before=default_reset;--after=hard_reset;write_flash;@flash_args -D WORKING_DIRECTORY=C:/Users/CorentinLEROY/esp/v5.0.6/esp-idf/examples/get-started/blink/build -P C:/Users/CorentinLEROY/esp/v5.0.6/esp-idf/components/esptool_py/run_serial_tool.cmake"
esptool.py --chip esp32 -p COM10 -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 40m --flash_size 2MB 0x1000 bootloader/bootloader.bin 0x10000 blink.bin 0x8000 partition_table/partition-table.bin
esptool.py v4.7.0
Serial port COM10
Connecting....
Chip is ESP32-D0WD-V3 (revision v3.0)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: b4:8a:0a:89:44:7c
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Flash will be erased from 0x00001000 to 0x00007fff...
Flash will be erased from 0x00010000 to 0x0003dfff...
Flash will be erased from 0x00008000 to 0x00008fff...
Compressed 26464 bytes to 16486...
Writing at 0x00001000... (50 %)
Writing at 0x000076cc... (100 %)
Wrote 26464 bytes (16486 compressed) at 0x00001000 in 0.8 seconds (effective 281.1 kbit/s)...
Hash of data verified.
Compressed 187888 bytes to 98470...
Writing at 0x00010000... (14 %)
Writing at 0x0001c19d... (28 %)
Writing at 0x00021a2d... (42 %)
Writing at 0x00027610... (57 %)
Writing at 0x000300d2... (71 %)
Writing at 0x00037e2d... (85 %)
Writing at 0x0003dd2a... (100 %)
Wrote 187888 bytes (98470 compressed) at 0x00010000 in 2.8 seconds (effective 527.6 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 103...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (103 compressed) at 0x00008000 in 0.1 seconds (effective 384.2 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
Executing action: monitor
Running idf_monitor in directory C:\Users\CorentinLEROY\esp\v5.0.6\esp-idf\examples\get-started\blink
Executing "C:\Users\CorentinLEROY\.espressif\python_env\idf5.0_py3.9_env\Scripts\python.exe C:\Users\CorentinLEROY\esp\v5.0.6\esp-idf\tools/idf_monitor.py -p COM10 -b 115200 --toolchain-prefix xtensa-esp32-elf- --target esp32 --revision 0 C:\Users\CorentinLEROY\esp\v5.0.6\esp-idf\examples\get-started\blink\build\blink.elf --force-color -m 'C:\Users\CorentinLEROY\.espressif\python_env\idf5.0_py3.9_env\Scripts\python.exe' 'C:\Users\CorentinLEROY\esp\v5.0.6\esp-idf\tools\idf.py' '-p' 'COM10'"...
--- WARNING: GDB cannot open serial ports accessed as COMx
--- Using \\.\COM10 instead...
--- idf_monitor on \\.\COM10 115200 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
inv����ets Jul 29 2019 12:21:46
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
ets Jul 29 2019 12:21:46
rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
ets Jul 29 2019 12:21:46
rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
ets Jul 29 2019 12:21:46
rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
ets Jul 29 2019 12:21:46
rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
ets Jul 29 2019 12:21:46
rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
ets Jul 29 2019 12:21:46
rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
ets Jul 29 2019 12:21:46
rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
ets Jul 29 2019 12:21:46
rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
ets Jul 29 2019 12:21:46
rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
ets Jul 29 2019 12:21:46
rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
ets Jul 29 2019 12:21:46
rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
ets Jul 29 2019 12:21:46
rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
ets Jul 29 2019 12:21:46
rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
ets Jul 29 2019 12:21:46
rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
ets Jul 29 2019 12:21:46
rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
ets Jul 29 2019 12:21:46
rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
invalid header: 0x52686f32
ets Jul 29 2019 12:21:46
rst:0x10 (RTCWDT_RTC_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
invalid header: 0x52686f32
Done
PS, I measured the current and the voltage coming from the USB port and I got 20mA on the VCC pin with +3V3, can it be the reason?