Cannot program the board second time

Ceranthor
Posts: 7
Joined: Tue Jul 12, 2022 9:51 am

Cannot program the board second time

Postby Ceranthor » Mon Sep 12, 2022 12:38 pm

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.
Attachments
Zrzut ekranu 2022-09-12 o 14.38.29.png
Zrzut ekranu 2022-09-12 o 14.38.29.png (195.11 KiB) Viewed 1724 times

ESP_Sprite
Posts: 9757
Joined: Thu Nov 26, 2015 4:08 am

Re: Cannot program the board second time

Postby ESP_Sprite » Tue Sep 13, 2022 12:03 am

Do you have a schematic? Reverse engineering a PCB layout is a bit complicated...

ESP_LJH
Posts: 387
Joined: Tue May 18, 2021 9:21 am

Re: Cannot program the board second time

Postby ESP_LJH » Tue Sep 13, 2022 6:15 am

Please send us UART0 log when you connect GPIO0 to 0, I want to check which mode ESP32 boots.

Ceranthor
Posts: 7
Joined: Tue Jul 12, 2022 9:51 am

Re: Cannot program the board second time

Postby Ceranthor » Wed Sep 14, 2022 8:17 am

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

Who is online

Users browsing this forum: pmi2410 and 114 guests