Try to use esp-prog: "GDB connection rejected"

I’ve experienced a similar debugger behavior in the past. The problem was that I had misread a pin name on the silk screen and configured a pin that is wired to the flash…

Debugging an MCU involves many pieces that can go wrong. So I really recommend you try uploading and debugging with a blink sketch first and rule out as many problems as possible.

Initially, you will need upload the blink sketch without ESP-Prog.

1 Like