I have done my development in arduino IDE. I am importing the code into Atmel Studio 7, using their “Create Project from Arduino Sketch”. This loads and builds fine. I can then use Atmel Studio 7 and my atmel ICE to load the HEX file (produced from imported arduino sketch) to the ATSAMD21G18A chip. The code runs great.
My problem is that I want to double check that in the future, when I dont have access to the SWD pins, that I can load updates to the code via USB. I am testing loading the code via USB using the arduino IDE. I set my board to Arduino Zero (Native USB Port) and I can see the board on COM 3 in the IDE. I click to upload and it compiles but I get an error saying it cant see the board and when I look again, the IDE cant see anything on its ports.
If I load code in the first place from arduino IDE using the atmel ICE and then try and load code via the USB I can get it to work. The issue is if I do the initial programming with the HEX file from Atmel Studio 7.
When I import the arduino file into Atmel Studio I use the settings in the attached picture.
Any help would be much appreciated.