How to remove the program from arduino board which is already there in it.?And I need that program in my arduino IDE how to take it please help me?

  • 2
    You remove an existing sketch by uploading a new sketch. – Majenko Mar 22 '16 at 10:51
  • That's a somewhat advanced question. And you shouldn't be "stealing" code for no reason. But you can have a look at this: ucexperiment.wordpress.com/2015/01/04/… – Paul Mar 22 '16 at 14:56

You can retrieve the program currently in your Arduino with the avrdude tool. This tool comes with the Arduino installation. The way to call it is somewhat OS-dependent. On Ubuntu, for an Arduino Uno, I type:

avrdude -p atmega328p -c arduino -P /dev/ttyACM0 -b 115200 -D -U flash:r:prog.hex:i

This creates the file prog.hex with your program in Intel HEX format. You can save this file if you want to re-install it on the Arduino later. You can also turn this file into an assembly listing with avr-objdump:

avr-objdump -m avr -Dz prog.hex > prog.lst

You may be able to make some sense of this listing if

  1. you are well versed in AVR assembly language
  2. you have lots of spare time

As others have said, you cannot expect to get the original C++ source back.


You can't. The program in the Arduino IDE is compiled to machine code (bits and bytes basically) and that's what is uploaded to the Arduino.


It's a bit like baking a cake. Or brewing cider. Once you have baked your cake can you get the eggs, flour and sugar back again? Can you make apples from cider? No. And it's the same with compiling. Once you have compiled your source code you can't turn it back into source code again.

Not the answer you're looking for? Browse other questions tagged or ask your own question.