Download hex file from DUE

Hi all!

I know hot to download hex file from Arduino using avrdude (in my case I use sublimetext with stino, and this functionallity is included), but it doesn't work with DUE. Is there any way to download hex file from Arduino DUE?

I really need it, because I have lost my source code, and I want to have a copy of it.

Hi!

Did you try bossac tool? It's usually in this directory:
C:\Users[your username]\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.6.1-arduino\bossac.exe

Try this command on your Due BOSSA PROGRAMMING PORT (USB Native):

C:\Users[your username]\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.6.1-arduino\bossac.exe --port=COMXX -r image.bin

It downloads whole Flash into image.bin

Good luck!