If I have an older Electron, that I am not able to connect to the Cloud IDE or Internet/GPS, is there a way to get the code off? I used an old Electron years ago, then lost it and recently found it. I have some code that I would like to get from the device. Is there a way to connect via USB and retrieve that programming code? If so, what are the steps? I wasn’t the original owner of the device; however, I did write the code. Thanks in advance.
The original C/C++ source code is not stored on the device.
While you could extract the binary off the device in DFU mode (blinking yellow), there isn’t a good way to convert that back into anything near the original source code.
2 Likes
What would be the steps to extract the binary? Once in DFU mode while plugged into USB, how would I connect to get the information?
You need to use the dfu-util application. It is installed by the Particle CLI.
For the Electron it should be:
dfu-util -d 2b04:d00a -a 0 -s 0x8080000:0x20000 -U firmware.bin
1 Like