Page 1 of 2
Is it possible to view the code that is already uploaded
Posted:
Mon Apr 08, 2019 8:40 am
by T-Orion
Is there a way to see and capture the code that was uploaded to a esp01 using Arduino IDE?
My Scenario, I uploaded a code to an ESP-01 a year ago and am not sure what code it was since I have several revisions. I need to know if there is any way to view the uploaded code to the micro controller?
Re: Is it possible to view the code that is already uploaded
Posted:
Mon Apr 08, 2019 2:05 pm
by Bonzo
It is probably possible but not easy. The code you write in the ide is compiled with the libraries etc. so you need some way to decompile it.
Out of interest I have problems keeping track of my programs as well - a tweek here and another there and all of a sudden it is not working and I do not have a working copy!
Re: Is it possible to view the code that is already uploaded
Posted:
Mon Apr 08, 2019 2:34 pm
by RichardS
Arduino IDE is poor for that...
Other IDE allow you to keep a constant snapshot of your code and you can view the history and changes as they occurred and you can go back to any snapshot at anytime....
Called Version Control.
The code that is currently on the ESP8266 is just a bunch of numbers that will not make sense to you.
RichardS
Re: Is it possible to view the code that is already uploaded
Posted:
Wed Apr 10, 2019 6:52 am
by Sum~guy
Even if the code is compiled into a binary, being able to download that binary from the 8266 would enable you to know *which* binary it was - assuming you keep copies of compiled binaries. That way you should be able to match a particular binary with a particular source code. I don't know if the original question was - can you pull the binary out of an 8266, or (if you can?) - can you decompile it into the original source code.