Atsamd21g18a not recognized on USB

I want to upload code in my new atsamd21g18 (custom board), but the pc dont recognize the usb port.
Im using a Stlink-v2 and used Openocd to flash the bootloader from arduinozero
From this link:

Used this Adafruit tutorial aswell:

I did it correctly i think because it seems in the terminal that everything runned correctly:


Usb code 43 error


Checked board for pinout errors but its all ok.

I have no experience with the processor on your board.

Is your board recognised if you double tap the reset button (or whatever you have available for that purpose)?

I suspect that your board needs to have a sketch loaded before it will be recognised as a (normal) board. That's the case with AVR based boards like Leonardo or Micro.

So try to upload an empty sketch or blink. When the IDE reports the memory usage you can double tap the reset button and upload should succeed.

I don't think that the Arduino zero has a bootloader (since it has that debug chip on-board.) Which .hex file are you using, exactly?

You might have better luck using the bootloader from one of the Adafruit SAMD21 boards...

The infrastructure for the Arduino MKR Zero board is also a good choice to leverage for boards that are a simple ATSAMD21G18 breakout (as is the MKR Zero).