Hello,
After many searches online I have decided to ask for help as it has been two days that I am stuck with this issue.
- My board is ESP32 Sparkfun Thing plus 16MB of flash
- the debugger is ESP-PROG
Serial debugger works fine but I cannot make the hardware debugger work. I have done everything explained in the video
https://www.youtube.com/watch?v=E6GHjUAB1kY&list=LL&index=1.
I have installed the drivers on interface 0 with zadig-2.7.exe
I have checked many times the connections
https://www.visualmicro.com/pics/Debug-Help-ESP32-PROG-ALL-Connections.png (in my case 3V3 is connected)
I get the following errors (see also .txt logs attached)
Error: cpu0: xtensa_write_memory (line 802): DSR (FFFFFFFF) indicates target still busy!
Error during upload using programmer
The uploader process failed
The uploader process failed
Error: cpu0: xtensa_write_memory (line 802): DSR (FFFFFFFF) indicates DIR instruction generated an exception!
The uploader returned an error
# Copy build result to 'Project>Property Pages>Intermediate Directory'
# Destination: file:///C:/Users/Pietro/Documents/Arduino/TEIS/FWA3PAN_NEW_3_4_7_VM/Debug/
Error: cpu0: xtensa_write_memory (line 802): DSR (FFFFFFFF) indicates DIR instruction generated an overrun!
Warn : esp32: Failed writing 4 bytes at address 0x3ff48000, data - 00, 20, 49, 9c, 4c, 00, 00, 00
Error: xtensa_write_uint32_list: error writing to 3ff48000
Warn : esp32_soc_reset xtensa_write_uint32_list (reg_value_pairs_pre) err=-4
in procedure 'program'
embedded:startup.tcl:480: Error: ** Unable to reset target **
in procedure 'program'
in procedure 'program_error' called at file "embedded:startup.tcl", line 505
at file "embedded:startup.tcl", line 480
Warn : Flash driver of esp32.flash does not support free_driver_priv()
Warn : Flash driver of irom does not support free_driver_priv()
Warn : Flash driver of drom does not support free_driver_priv()
What I have already done,
- I have seen that the warning of the usb drivers are common but not to worry about (
https://community.platformio.org/t/uploading-sketch-using-jtag-interface-on-esp-...)
- I have updated FDTI drivers
- I have tried to change port
- I have tried with blink led example and I still have the same problem
- I have tried to change board from Sparkfun Esp thing Plus 16MB to ordinary ESP32 4MB development kit
- I have tried with an empty brand new ESP32 16MB
- I have tried to reduce the adapter speed adding the line command adapter_khz 10000
\interface\ftdi
file minimodule-lowcost.cfg
- I have tried with several speeds down to 2000khz
- I have tried to pressing the boot button while uploading