I have been using PlatformIO for a while now to program and debug ESP32-WROOM-32U chips. As the programmer/debugger I am using the official ESP-Prog by espressif, which always worked great for me. However, I have recently started experimenting with ESP32-WROOM-32UE chips, which are now recommended by espressif for new projects. Flashing still works great through PlatformIO, but I can’t get the debugger to work anymore. I’m always seeing these two error messages:
In the console, I’m getting the following output (with the first 7 lines repeating a couple hundred times):
Error: xtensa_poll: Target failure
Error: xtensa_poll: Target failure
Error: xtensa_poll: Target failure
Error: xtensa_poll: Target failure
xtensa_poll: Target failure
xtensa_poll: Target failure
xtensa_poll: Target failure
.pioinit:13: Error in sourced command file:
Remote communication error. Target disconnected.: No error.
I don’t think there is anything wrong with my electrical connections, because the two U-chip works fine - just the UE doesn’t. And both chips should have an identical pinout, according to espressif. Could it be my platform.ini? I have set up the project like this:
[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
debug_tool = esp-prog
debug_init_break =
upload_port = COM4
monitor_speed = 115200
board_build.partitions = noota_3g.csv
I would be super grateful for any tips on how to get the debugger to work with the new chip!