Pages: [1]   Go Down
Author Topic: Dumping sketch and re-uploading the dump  (Read 680 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I am new to this board so excuse me if I picked the wrong section for my question.

I would like to know if its possible to download the executable code for the current sketch on a diecimila, and upload that back again.
The reason is that I'm not sure if a sketch I have is the same or an older version of what's uploaded, and I don't want to lose the functionality of the uploaded version if my sketch is old.
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 212
Posts: 13531
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

you have to check AVRdude.exe and then the -D option (from my head) , check the manpages to be sure. Avrdude.exe and its manpage is part of the arduino download.
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,
I had a look at avrdude.exe the -D parameter is 'disable auto erase for flash memory'. I don't see anything about dumping the contents or flashing them back on.
Logged

Global Moderator
Dallas
Offline Offline
Shannon Member
*****
Karma: 198
Posts: 12753
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Do you want the bootloader preserved?

Do you have a second Arduino or an ICSP?
Logged

nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 126
Posts: 8472
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

There is an avrdude option (-U) to read memory, try "avrdude -?" to see the options.

______
Rob
« Last Edit: March 12, 2011, 01:40:14 am by Graynomad » Logged

Rob Gray aka the GRAYnomad www.robgray.com

Pages: [1]   Go Up
Jump to: