How to write programs for a custom SAMD21 board using Arduino IDE

@meghdadi Have you tried double tapping the reset button (two times in quick succession)?

This will normally place the board into bootloader mode. The bootloader's COM port should enumerate and be visible and selectable in the Arduino IDE (Tools->Port->COMx).