Get source from a built esp32-arduino file (saved as .bin)

ImGreen
Posts: 2
Joined: Fri Jul 08, 2022 7:44 pm

Get source from a built esp32-arduino file (saved as .bin)

Postby ImGreen » Fri Jul 08, 2022 7:54 pm

Hello! I have a bin I built using the esp32-arduino-lib-builder and I was wondering if I could get the source files from it?
I had the source on my pc until my external drive failed, loosing all data. I did though have the latest build on group chat of clients so I used this to still use the software.
Until now it was fine until I have realised a few bugs.

I hope for a good respones! :D

ImGreen
Posts: 2
Joined: Fri Jul 08, 2022 7:44 pm

Re: Get source from a built esp32-arduino file (saved as .bin)

Postby ImGreen » Fri Aug 19, 2022 10:15 pm

Would love something from this lol

ESP_Sprite
Posts: 8921
Joined: Thu Nov 26, 2015 4:08 am

Re: Get source from a built esp32-arduino file (saved as .bin)

Postby ESP_Sprite » Sat Aug 20, 2022 2:38 am

Not a chance. You could get some of the structure back using a decompiler like Ghidra, but you'll loose 99% of what makes your source the source: variable names, structures, any object-orientedness, the exact flow of your code etc. Suggest three things: 1. Backup your work. 2. Start over: the good thing is that writing code again tends to go very fast as you already know what it's supposed to look like. 3. Backup your work.

(On the 'backup your work' bit: suggest you learn how to use Git and push your projects to something like Github or Gitlab. That also allows you to 'roll back' a change if you messed up your code and want to undo it.)

Who is online

Users browsing this forum: No registered users and 63 guests