What do I need to get a Photon binary from Web IDE? I didn’t understand what that “star” meant.
Also, what is the syntax for flashing code directly via dfu-util, again? Not system firmware, but any blinky-type code. Like: “dfu-util …” instead of “particle flash …”.
Is it:
dfu-util -d 2b04:d006 -a 0 -i 0 -s 0x080A0000:leave -D d7Blink.bin
During the Photon’s flashing yellow, DFU mode, the Device Manager has a heading of: “libusbK USB Devices” and “Photon DFU Mode” indented on the line below. Sorry, I don’t know how to get a screen shot of it. Of course, at other times, it just shows up on a com port (COM17).
Looking at the log, you’ll see I just did:
particle flash device_name --usb filename.bin
I’m not sure why, but the flash worked just now. I’m 99.9% sure that doing the same thing (flashing via --usb) didn’t work the previous 10-15 times on two different PCs. I’m on the Win 8.1 machine now.
So here’s the terminal log output from doing a “dfu-util -l” and then from flashing two different programs:
d7Blink.bin and d7Blink-lg.bin
C:\Particle>dfu-util -l
dfu-util 0.8
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2014 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org
Cannot open DFU device 2b04:d006
Found DFU: [2b04:d006] ver=0200, devnum=6, cfg=1, intf=0, alt=1, name="@DCT Flash /0x000
00000/01*016Kg", serial="00000000010C"
Found DFU: [2b04:d006] ver=0200, devnum=6, cfg=1, intf=0, alt=0, name="@Internal Flash /
0x08000000/03*016Ka,01*016Kg,01*064Kg,07*128Kg", serial="00000000010C"
C:\Particle>particle flash DH-Photon-01 --usb d7Blink.bin
Found DFU device 2b04:d006
Apparently I didn't find a DFU device? util said dfu-util 0.8
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2014 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org
Found DFU: [2b04:d006] ver=0200, devnum=6, cfg=1, intf=0, alt=1, name="@DCT Flash /0x000
00000/01*016Kg", serial="00000000010C"
Found DFU: [2b04:d006] ver=0200, devnum=6, cfg=1, intf=0, alt=0, name="@Internal Flash /
0x08000000/03*016Ka,01*016Kg,01*064Kg,07*128Kg", serial="00000000010C"
checking file d7Blink.bin
spawning dfu-util -d 2b04:d006 -a 0 -i 0 -s 0x080A0000:leave -D d7Blink.bin
dfu-util 0.8
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2014 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org
Invalid DFU suffix signature
A valid DFU suffix will be required in a future dfu-util release!!!
Cannot open DFU device 2b04:d006
Opening DFU capable USB device...
ID 2b04:d006
Run-time device DFU version 011a
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 4096
DfuSe interface name: "Internal Flash "
Downloading to address = 0x080a0000, size = 2204
Download [=========================] 100% 2204 bytes
Download done.
File downloaded successfully
Error during download get_status
Error writing firmware...
C:\Particle>particle flash DH-Photon-01 --usb d7Blink-lg.bin
Found DFU device 2b04:d006
Apparently I didn't find a DFU device? util said dfu-util 0.8
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2014 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org
Found DFU: [2b04:d006] ver=0200, devnum=6, cfg=1, intf=0, alt=1, name="@DCT Flash /0x000
00000/01*016Kg", serial="00000000010C"
Found DFU: [2b04:d006] ver=0200, devnum=6, cfg=1, intf=0, alt=0, name="@Internal Flash /
0x08000000/03*016Ka,01*016Kg,01*064Kg,07*128Kg", serial="00000000010C"
checking file d7Blink-lg.bin
spawning dfu-util -d 2b04:d006 -a 0 -i 0 -s 0x080A0000:leave -D d7Blink-lg.bin
dfu-util 0.8
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2014 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to dfu-util@lists.gnumonks.org
Invalid DFU suffix signature
A valid DFU suffix will be required in a future dfu-util release!!!
Cannot open DFU device 2b04:d006
Opening DFU capable USB device...
ID 2b04:d006
Run-time device DFU version 011a
Claiming USB DFU Interface...
Setting Alternate Setting #0 ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
DFU mode device DFU version 011a
Device returned transfer size 4096
DfuSe interface name: "Internal Flash "
Downloading to address = 0x080a0000, size = 2204
Download [=========================] 100% 2204 bytes
Download done.
File downloaded successfully
Error during download get_status
Error writing firmware...
C:\Particle>
Again, this time the flash worked, but I don’t know why. I’ll keep going and see if I have any other issues, but please let me know:
- How to get Photon binaries from Web IDE.
- What the syntax is for direct flashing via dfu-util.
Thank you.