I recently finished my first custom PCB referencing the Arduino Mega 2560 schematic. So far I have been able to power the device via 5V and GND pins running to their own isolated layers. I have bootloader burned the ATMEGA2560 MCU from another arduino without error. I have connected LEDs to the 5V plane to know if the device is receiving power. I've been able to measure the idle current draw to be about 40mA. This is also powering a few other devices. My problem is with the USB connection. I've connected the USB input to the 5V plane in the design and seen that the LED turns on but no activity from computer side. I then powered the device with both Arduino and the USB. Here the computers throws a USB device not recognized (error 43). This seems to tell me that the board isn't drawing enough power via USB connection. Following this, I have attempted to use FLIP by ATMEL to remedy the problem only to have windows tell me it has chosen the correct drive (Error 43). I should note that I am using windows 10. I have also attached a snip of my schematic. I've searched for a few different solutions and nothing has prevailed. I'll also go over the placement of the components and verify next time I get a chance. If anyone has experience in this I would greatly appreciate the help. Thank you.
No direct experience with this, but any RF transmission line (like a USB cable) has to be terminated correctly.
Otherwise attenuations and reflections can become a problem.
Leo..
Did you load firmware into the 16u2? Which firmware? Did you properly adjust the VID/PID to something recognizable by windows? (which would generally mean Arduino's VID, which you don't have permission to use, and should not use, for a custom board. Which is a real problem for people who make custom boards - you'd be better off using an FTDI or CH340G or something that is pre-loaded with known IDs.)
westfw:
Did you load firmware into the 16u2? Which firmware? Did you properly adjust the VID/PID to something recognizable by windows? (which would generally mean Arduino's VID, which you don't have permission to use, and should not use, for a custom board. Which is a real problem for people who make custom boards - you'd be better off using an FTDI or CH340G or something that is pre-loaded with known IDs.)
I have not loaded any firmware to the 16u2 nor taken any of your other recommended steps. I do have pin access to the 16u2, should I attempt to write this using another Arduino?
should I attempt to write this using another Arduino?
Yes. Or some other AVR device programmer.
Probably use .../hardware/arduino/avr/firmwares/atmegaxxu2/arduino-usbserial/Genuino-usbserial-atmega16u2-Mega2560-R3.hex
I'm not sure whether you ALSO need the DFU bootloader (for 16u2) that is "nearby", or whether the usbserial is sufficient. I'm not sure what the fuses should be set to.