My M0 Pro's Native USB port is no longer detected by my PC(tried it on different PCs and a Mac). I've used different USB cables as well. The programming port is detected.
The board is briefly detected(for about 1 sec) and then disappears.
I need to use the Native port as I am developing a custom board.
Connect the M0 Pro to your computer using the Programming port.
File > New
Sketch > Upload
Wait for the upload to finish.
Connect the M0 Pro to your computer using the Native USB port.
After doing that, does the Native USB port of the M0 Pro now show up? The tricky thing about the native USB is that it relies on some code that's added into your sketch. If something in your sketch causes that code to stop working, the native serial port stops working. Uploading a simple sketch through the programming port will put that USB code back on the board without any sketch code that will interfere with it and fix the issue.