Programming Bare SAM3X Chip

I would recommend you to try the firmware for DUE contained in the Arduino IDE 1.5.1r2

...\arduino-1.5.1r2-windows\arduino-1.5.1r2\hardware\arduino\sam\firmwares\atmega16u2