Hi!
I am trying to write a custom board definition for my SAMD21G based board (very similar to Arduino Zero), however, I am having some issues with my configuration.
When I upload a sketch to the board, it hangs, and then eventually comes back on (runs blink.ino) but does not create any serial ports. Windows reports it as a malfunctioning device.
"Unknown USB Device (Device Descriptor Request Failed)"
Windows has stopped this device because it has reported problems. (Code 43)
A request for the USB device descriptor failed.
The hanging is strange behaviour. I have to touch the board to trigger it to come back (like something is floating).
I could only find one tutorial on the internet for how to create custom boards: https://forum.arduino.cc/index.php?topic=409715.0 . It is really good, however, is lacking in the finer details regarding serial port configurations.
Any assistance with explaining how to make this custom board have a serial port over USB (like normal Arduinos) and register correctly in Windows would be very very much appreciated.
My current code is stored here, and for briefity, I have only referenced the directories that I believe are relevant below:
Main GitHub: https://github.com/robotics-masters/mm1-hat-arduino
Custom Board Definitions: https://github.com/robotics-masters/mm1-hat-arduino/tree/master/custom_board/RoboHat-0.0.3/variants/robohat
I am really interested in learning how to do this correctly, not just making it work. Please help if you can.