Flash Arduino Due via UART

That's pretty much the exact process that happens when you use the programming port.