Hi every one.
It might be a stupid quetsion but you know what people say. There is no stupid questions.
Anyway I can't remember which of my boards have which code on it.
I don't want to look at all my programs and guess which one is the right one and then overwrite the precious code on the board.
So is it possible to download ( decompile? ) the code from the board to the arduino software. Maybe there is a anti-Arduino that transform machine code to Human code.
to read the flash on your ATmega168 and write it to a file on your computer
You'll have to adjust the settings for your system
I'm not sure if there's a decompiler but you can save your .hex files and corresponding binaries and keep track of their checksums to figure out which program is loaded on a chip.
I looked for a "how to install avrdude" on mac and that looks complicate. I've put the avrDude folder in my home directory and tried your command line but that didn't work. I added sudo but it gave me a warning, so I am not really sure if I should do this.
I am going to try it on linux tomorrow as it might be simpler and I don't mind messing around the linux computer as I have nothing on it.
I am not sure about the Mac but you can easily install avrdude on most Linux systems.
On yum systems => yum install avrdude
On apt-get systems => apt-get install avrdude
This usually takes just a couple of minutes.
Ubuntu and Fedora both have avrdude and avr-gcc packages and since they offer live CDs you can install it on just about any computer with internet access without having to install the OS.