Problem with custom PCB with ESP32 WROOM E and sketch uploading
Posted: Wed Dec 04, 2024 12:57 pm
Hi guys,
I feel ashamed to ask such a question. I am trying to make a custom PCB design for a project. I made the schematics, ordered the board but when I solder all components, I am unable to upload my Arduino sketches to my ESP32.
Here are the components I am using : USB C (16 pins), CH340C (USB to Serial converter), AMS1117 (for 5V to 3.3V), transistors (2N2222), resistors and ESP32-WROOM-E.
Here is my schematic (simplified in order to only show connectivity between USB C, CH340C and ESP32 WROOM E).
When I saw that my sketches wont upload (It recognized the ESP32 module, but I got this error : "A fatal error occurred: Failed to connect to ESP32: Invalid head of packet (0x65): Possible serial noise or corruption."), I tried to create a small prototype just to upload sketches using an USB C and CH340C module, here is the schematic I got from Chat-GPT :
But when I try to upload my sketch, I get the same error as the first one. I can't find the documentation of the module "USB C and CH340C" so impossible to see if what I am doing is correct...
If you have any idea of what is going on and what can be the solution, I would appreciate you help.
I feel ashamed to ask such a question. I am trying to make a custom PCB design for a project. I made the schematics, ordered the board but when I solder all components, I am unable to upload my Arduino sketches to my ESP32.
Here are the components I am using : USB C (16 pins), CH340C (USB to Serial converter), AMS1117 (for 5V to 3.3V), transistors (2N2222), resistors and ESP32-WROOM-E.
Here is my schematic (simplified in order to only show connectivity between USB C, CH340C and ESP32 WROOM E).
When I saw that my sketches wont upload (It recognized the ESP32 module, but I got this error : "A fatal error occurred: Failed to connect to ESP32: Invalid head of packet (0x65): Possible serial noise or corruption."), I tried to create a small prototype just to upload sketches using an USB C and CH340C module, here is the schematic I got from Chat-GPT :
But when I try to upload my sketch, I get the same error as the first one. I can't find the documentation of the module "USB C and CH340C" so impossible to see if what I am doing is correct...
If you have any idea of what is going on and what can be the solution, I would appreciate you help.