Can you reverse compile code from arduino boards?

Before you upload the code to an Arduino it is compiled to a binary file. The sketch itself does not get uploaded to the Arduino

It is possible to download the binary file from the Arduino but it is not a trivial task to turn it back into a sketch if that is what you are worried about. Possible but not likely. Certainly, things like variable names will not be the originals and, of course, there will be no comments

1 Like