Go Down

Topic: I want to copy the written program on "arduino due" to another "arduino due" (Read 970 times) previous topic - next topic

narmolak

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

spycatcher2k

Use the backup you saved of the working code! You DO backup your working code, and save a new version when you make changes?  :o

I don't know of any way to transfer from DUE to DUE!
Mrs Drew
-=-
http://www.uk-pcb.co.uk - UK PCB Fab Company
I will design & code for you, but I will also charge you (PM me)
If you don't like my answers, realize : I'm not being cheeky, I'm Just trying to prompt you to use your own brain/google etc.

ard_newbie

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.

spycatcher2k

Quote
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.
Please show your evidence that this can be done!
Mrs Drew
-=-
http://www.uk-pcb.co.uk - UK PCB Fab Company
I will design & code for you, but I will also charge you (PM me)
If you don't like my answers, realize : I'm not being cheeky, I'm Just trying to prompt you to use your own brain/google etc.

ard_newbie

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.

spycatcher2k

Mrs Drew
-=-
http://www.uk-pcb.co.uk - UK PCB Fab Company
I will design & code for you, but I will also charge you (PM me)
If you don't like my answers, realize : I'm not being cheeky, I'm Just trying to prompt you to use your own brain/google etc.

narmolak

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


spycatcher2k

Quote
but unfortunately file image.bin  is not the result that I'm looking for
What result are you looking for.
Mrs Drew
-=-
http://www.uk-pcb.co.uk - UK PCB Fab Company
I will design & code for you, but I will also charge you (PM me)
If you don't like my answers, realize : I'm not being cheeky, I'm Just trying to prompt you to use your own brain/google etc.

narmolak

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

spycatcher2k

So write out the image.bin the the other DUE.

Quote
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
from ard_newbie
Mrs Drew
-=-
http://www.uk-pcb.co.uk - UK PCB Fab Company
I will design & code for you, but I will also charge you (PM me)
If you don't like my answers, realize : I'm not being cheeky, I'm Just trying to prompt you to use your own brain/google etc.

narmolak

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

Go Up