I want to copy the written program on "arduino due" to another "arduino due"

I have a problem I have an "arduino due" device which was working perfectly, but I have updated my program and unfortunately it's not working any more. Now my problem is I want to copy the written program on "arduino due" to another "arduino due" device Is it possible? If yes, what is the way?

Thankful

(deleted)

narmolak: I have an "arduino due" device which was working perfectly, but I have updated my program and unfortunately it's not working any more.

Now my problem is I want to copy the written program on "arduino due" to another "arduino due" device Is it possible?

What is the logical link between "I have updated my program and unfortunately it's not working any more." and "Now my problem is I want to copy the written program on "arduino due" to another "arduino due" device" ?

There is a possibility to copy a binary prog from an arduino DUE flash memory to your PC, then copy this binary file from the PC to another arduino DUE.

(deleted)

Use bossac.exe spycatcher2k !

To read a .bin file inside the DUE:

AppData\Local\Arduino15\packages\arduino\tools\bossac\1.6.1-arduino\bossac.exe --port=COM9 -r image.bin

To upload to the DUE a .bin file:

AppData\Local\Arduino15\packages\arduino\tools\bossac\1.6.1-arduino\bossac.exe --port=COM9 –e –w –b image.bin

Of course, the COM port number depends on your PC.

(deleted)

I really appreciate your comments
again i need your helpful ideas

as soon as I run this command in order to read from device

C: \Arduino15\packages\arduino\tools\bossac\1.6.1-arduino> bossac.exe --port=COM6 -r image.bin

I receive this error

No device found on COM6

As you can see in the following image my device is connected to port COM6

Therefore I try to surf the net to fix problem I have found a solution in this link

mode com6:1200

but when I tried to run this command the program on device is not working like before

and the system doesn’t show the previous error( No device found on COM6 )

also I have tried your commend

bossac.exe --port=COM6 -r image.bin

and I have received this result

Device found on COM6
Atmel SMART device 0x285e0a60 found

Read 65536 bytes from flash
[==============================] 100% (256/256 pages)
done in 13.168 seconds

but unfortunately file image.bin is not the result that I’m looking for

I really need your help
thanks for all of your help and kindness

(deleted)

I want to copy the written program on "arduino due" to another "arduino due"

(deleted)

my friend I told you before when I run this command

bossac.exe --port=COM6 -r image.bin

to make "image.bin" got error "No device found on COM6"

to fix this error use this command

mode com6:1200

in the moment program on device is not working (program on arduino due is corrupted ) and now "No device found on COM6" is my problem