Page 1 of 1

Cannot program the board second time

Posted: Mon Sep 12, 2022 12:38 pm
by Ceranthor
Hi,
I designed custom board using ESP32-WROOM-32U-N16. I connected UART communication to the external programmers (to save space on the board) I also connected IO0 to switch to pull it to the GND (as said in data sheet). I also made EN pin high with 10 k resistor and 0.1 uF capacitor. I can successfully connect it and program it first time (I am using esp-mdf) and after that I can just open serial monitor and check logs etc but I just cannot program it again. I get this: "A fatal error occurred: Failed to connect to ESP32: Invalid head of packet (0x49)" and head of packet is always different and I still push IO0 to the GND to enable UART programming but it just do not work. I do not know what am I doing wrong.

Re: Cannot program the board second time

Posted: Tue Sep 13, 2022 12:03 am
by ESP_Sprite
Do you have a schematic? Reverse engineering a PCB layout is a bit complicated...

Re: Cannot program the board second time

Posted: Tue Sep 13, 2022 6:15 am
by ESP_LJH
Please send us UART0 log when you connect GPIO0 to 0, I want to check which mode ESP32 boots.

Re: Cannot program the board second time

Posted: Wed Sep 14, 2022 8:17 am
by Ceranthor
Problem solved I need to turn device on while holding boot0 button on my board not while uploading the sketch and second problem FTDI did not have enough power to power the device with sensors attached