I am able to upload code now to the device. It still shows up as Bossa Program Port. After hitting erase or plugging it back in the comm port shows up as 6 or 7.
Read this article in the Wiki, to understand the identity change of the deviceAfter pressing ERASE everything is deleted, flash and gpnvm-bits. The device is in native SAM-BA mode. Only in that mode the device can be programmed.
As it has in SAM-BA mode a different VID/PID than in Arduino-compatible mode, it has in that mode a different COM-port associated!
When you are now uploading a program usually the
"-b" parameter is added to bossac, which sets the gpnvm-bit for booting the flash program.
After the next reset (which should be triggered through the IDE as well, but goes not everytime through) the device boots the uploaded sketch.
This sketch (depending how it was created, e.g. which board-selection was choosen) initializes the USB with a own VID/PID combination. That combination gets another COM-Port name assigned from Windows!
So one and the same DigiX connected to one and the same USB port will appear at least with two if not more COM-Port names.
VID : PID
03EB:6124 Atmel: SAM-BA activated device
2341:003E Arduino DUE native PORT selected, sketch is running
16d0:078a DigiX board selected, sketch is running
When there are problems in the non SAM-BA modes, its always recommended to ERASE the chip, so it is in SAM-BA mode.
The upload-process in the Arduino/DigiX modes are doing nothing else: They trigger an software erase followed by an reset. When that can't work, because the sketch hangs the cpu, upload stucks.
So pressing ERASE followed by RESET just eliminates that step and therefore one level of errors.