Error while Uploading firmware to PCB : Invalid head of packet (0x78)

naitik
Posts: 19
Joined: Thu Apr 22, 2021 2:04 pm

Error while Uploading firmware to PCB : Invalid head of packet (0x78)

Postby naitik » Thu Jul 01, 2021 3:50 pm

We have ESP32 on Custom PCB Board. when it is powered up from Mains Supply of 230v/3.3v and Connect programming Header to PC to flash the firmware it fails with A fatal error occurred: Invalid head of packet (0x78) very frequently. Can someone please explain what can cause this error?

Programming header has : RX, TX, DTR, RTS pins to interface with external usb to uart bridge. program is uploaded by Automatic bootloader mode.

pratik2440
Posts: 25
Joined: Mon Jun 28, 2021 4:55 am

Re: Error while Uploading firmware to PCB : Invalid head of packet (0x78)

Postby pratik2440 » Fri Jul 02, 2021 6:37 am

Last time this happened with me, it was a ground loop or open ground problem.
Make sure that the GND of programmer is connected to the GND of the ESP32 board if you are using an ISOLATED power supply.
Also, maybe try to power the ESP via the programmer and not use the SMPS while flashing it - that lowers ground noise and also is safer.

If your SMPS is custom made, that could be the cause.
The Y class cap between high voltage and low voltage side can cause this issue if the capacitor value is incorrect by a huge margin.
Hobbyist and electronic design consultant! (https://PCBArtists.com/)

Who is online

Users browsing this forum: No registered users and 56 guests