ESP8266 / EPS32 more special tool to store the sourcecode in the flash-rom

Check how you program the part, you will probably lose your source code if not done properly as it will erase and then reprogram it. Why not put it on a thumb drive.