I have a PCB I made about a year ago that was a failed project to make a digital clock with an RTC and using the Atmega32U4 as my MCU. Due to improper prototyping and incorrect pins for each segment it didn't show the time properly, however I was able to sucessfully bootload it with an ICSP header through USBasp on Arduino.
The schematic can be found here: Digital Clock.pdf | DocDroid, and the USB-C cable I'm trying to upload the code with can be found here: https://www.amazon.com/dp/B08W2129Z8?psc=1&ref=ppx_yo2ov_dt_b_product_details. The code itself was to just blink an on-board led I have connected to analog pin 5 (A5) of the Atmega, and uploads successfully when using the ICSP header via USBasp with the same COM port that I'm trying to use with the USB C cable.
The port, and board type were shown as Arduino Leonardo however anytime I tried uploading code via the USB C connector it would give the following error:
Arduino: 1.8.19 (Windows Store 1.8.57.0) (Windows 10), Board: "Arduino Leonardo"
Sketch uses 3968 bytes (13%) of program storage space. Maximum is 28672 bytes.
Global variables use 149 bytes (5%) of dynamic memory, leaving 2411 bytes for local variables. Maximum is 2560 bytes.
Forcing reset using 1200bps open/close on port COM5
PORTS {COM5, } / {} => {}
PORTS {} / {} => {}
PORTS {} / {} => {}
PORTS {} / {} => {}
PORTS {} / {} => {}
PORTS {} / {} => {}
PORTS {} / {} => {}
PORTS {} / {} => {}
PORTS {} / {} => {}
PORTS {} / {} => {}
PORTS {} / {} => {}
PORTS {} / {} => {}
PORTS {} / {} => {}
PORTS {} / {} => {}
PORTS {} / {} => {}
PORTS {} / {} => {}
PORTS {} / {} => {}
PORTS {} / {} => {}
PORTS {} / {} => {}
PORTS {} / {} => {}
PORTS {} / {} => {}
PORTS {} / {} => {}
PORTS {} / {} => {}
PORTS {} / {} => {}
PORTS {} / {} => {}
PORTS {} / {} => {}
PORTS {} / {} => {}
PORTS {} / {} => {}
PORTS {} / {} => {}
PORTS {} / {} => {}
PORTS {} / {} => {}
PORTS {} / {} => {}
PORTS {} / {} => {}
PORTS {} / {} => {}
PORTS {} / {} => {}
PORTS {} / {} => {}
PORTS {} / {} => {}
PORTS {} / {} => {}
PORTS {} / {} => {}
PORTS {} / {} => {}
Couldn't find a Board on the selected port. Check that you have the correct port selected. If it is correct, try pressing the board's reset button after initiating the upload.
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
I tried pressing and holding the reset button after pressing download but that didn't seem to fix the issue either. The track width of the Data + and Data - lines are 0.261112mm. Not sure if I used the wrong trace width or if they were routed incorrectly, I also checked that I soldered the USB-C connector, ESD protection, and MCU, and all points had continuity with a Multimeter.
Am I missing something in my schematic? Perhaps a UART IC? Wanted to reference this design for another project. Also attached are some pictures of the Arduino tool setting and the traces I routed for the D+ and D- lines.