Given the following,and the fact that the flash succeeds, what could be the cause for it not detecting flash size and timing out? There is obviously communication between the ESP32 Wrover module and the PC. Also, I can run the monitor and observe the output from the Wrover.
An important note is that I'm flashing (via UART) using a Wrover Kit v3 to a Wrover module on a custom PCB. So far only the power supply part and the Wrover itself are mounted on the PCB. Flashing the Wrover module on the kit itself works fine.Running esptool.py in directory /home/permal/esp/esp-idf/examples/get-started/hello_world/build
Executing "/usr/bin/python /home/permal/esp/esp-idf/components/esptool_py/esptool/esptool.py -p /dev/ttyUSB1 -b 115200 write_flash @flash_project_args"...
esptool.py -p /dev/ttyUSB1 -b 115200 write_flash --flash_mode dio --flash_size detect --flash_freq 40m 0x1000 bootloader/bootloader.bin 0x8000 partition_table/partition-table.bin 0x10000 hello-world.bin
Serial port /dev/ttyUSB1
Detecting chip type... ESP32
Chip is ESP32D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse
Configuring flash size...
Warning: Could not auto-detect Flash size (FlashID=0x0, SizeID=0x0), defaulting to 4MB
Flash params set to 0x0220
Compressed 22784 bytes to 13490...
Wrote 22784 bytes (13490 compressed) at 0x00001000 in 1.2 seconds (effective 151.9 kbit/s)...
A fatal error occurred: Timed out waiting for packet header
esptool.py failed with exit code 2
The wires that are connected between the kit and the PCB are these:
GND, RX-TX, TX-RX, IO0-GPIO0, nSRST-CH_EN.
I've got a flat cable of ~3dm between the kit and the PCB.
Any thoughts are welcome.
Edit: Seems flashing does not actually succeed. At least, erasing the flash ends in timeout and the program in the chip remains.
Edit2: Is it safe to assume that there a working two-way communication based on the above output? My scope shows me data both ways, but there is some noise on the 1's and 0's, i.e. fluctuating voltage levels by some 100mV, not sure if that can result in these issues.