Hi. I’m very new to particle but have this problem. The previous developer did not leave a copy of the source code for us and we only have the compiled code on the device. I have access (claimed) to the device but want to download its compiled bin so that I can flash it to another device. Any help will be appreciated.
Amien
Cape Town
You can copy the compiled firmware off a device using DFU mode. Install the Particle CLI if you haven’t already done so.
Put the Photon with the code in DFU mode (blinking yellow) by holding down the SETUP button and tapping reset. Continue to hold down SETUP while the status LED blinks magenta (red and blue at the same time) until it blinks yellow then release.
dfu-util -d 2b04:d006 -a 0 -s 0x80A0000:0x20000 -U firmware.bin
That should save the file firmware.bin which you can then flash to another device. This command is specific to the Photon.
Hi Rick
Thanks. I will do it later but thanks a lot.
So I would presume that I can use the Web IDE to flash the bin file by adding it in the IDE ?
No, you won’t have the source code, only the binary, so from the Particle CLI, once you’ve connected the new device by USB and put it in DFU mode:
particle flash --usb firmware.bin
Hi Rick
I did the the procedure but when I run
dfu-util -d 2b04:d006 -a 0 -s 0x80A0000:0x20000 -U firmware.bin
Did you mean to say something with this unfinished sentence?
I did the the procedure but when I run
dfu-util -d 2b04:d006 -a 0 -s 0x80A0000:0x20000 -U firmware.bin
I get the following:
dfu-util 0.11
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2021 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util / Tickets
dfu-util: No DFU capable USB device available
So I’m stuck in getting the firmware to run…
Thanks
Amien
Is the device blinking yellow when you do that?
In case you are using Windows, can you see the device in Device Manager?
Yes the device is blinking yellow.
I’m using Ubuntu 22.04
Hi…fortunately I found the source code for our devices… thanks for the help
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.