I did, this seems to have worked fine. It updated:
Simon-Kaisers-iMac:Desktop simonkaiser$ particle update
> Your device is ready for a system update.
> This process should take about 30 seconds. Here goes!
! System firmware update successfully completed!
> Your device should now restart automatically.
And then I was able to load the tinker firmware. This works everytime I tried it so far.
Simon-Kaisers-iMac:Desktop simonkaiser$ particle flash --usb tinker
Found DFU device 2b04:d006
spawning dfu-util -d 2b04:d006 -a 0 -i 0 -s 0x080A0000:leave -D /usr/local/lib/node_modules/particle-cli/binaries/photon_tinker.bin
dfu-util 0.9
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
dfu-util: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
Deducing device DFU version from functional descriptor length
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 = 3952
Download [=========================] 100% 3952 bytes
Download done.
File downloaded successfully
Flash success!
The Photon goes back to breathing cyan and is showing up in my Particle App in iOS as “Tinker” and can be tinkered with.
I have a file lying on my Desktop name blink.ino with the following contents:
// Copy me to blinky.ino
#define PIN D7
int state = 0;
void setup() {
//tell the device we want to write to this pin
pinMode(PIN, OUTPUT);
}
void loop() {
//alternate the PIN between high and low
digitalWrite(PIN, (state) ? HIGH : LOW);
//invert the state
state = !state;
//wait half a second
delay(500);
}
My next steps are:
Simon-Kaisers-iMac:Desktop simonkaiser$ particle compile photon blink.ino
Compiling code for photon
Including:
blink.ino
attempting to compile firmware
downloading binary from: /v1/binaries/5a5200c89cb7ea1486591ba1
saving to: photon_firmware_1515323588731.bin
Memory use:
text data bss dec hex filename
4860 8 1456 6324 18b4 /workspace/target/workspace.elf
Compile succeeded.
Saved firmware to: /Users/simonkaiser/Desktop/photon_firmware_1515323588731.bin
Simon-Kaisers-iMac:Desktop simonkaiser$ particle flash --usb photon_firmware_1515323588731.bin
Found DFU device 2b04:d006
spawning dfu-util -d 2b04:d006 -a 0 -i 0 -s 0x080A0000:leave -D photon_firmware_1515323588731.bin
dfu-util 0.9
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
dfu-util: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release!!!
Deducing device DFU version from functional descriptor length
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 = 4868
Download [=========================] 100% 4868 bytes
Download done.
File downloaded successfully
Flash success!
The Photon reboots multiple times, after a brief moment of green flashing and cyan flashing it starts to flash magenta “randomly”. It looks like an HDD led indicating read/write processes (sorry, I have no better description).
After some flashing magenta it starts again: brief white light, green flashing, cyan flashing, magenta random flashes.
In the iOS App the devices shows up breathing cyan, no “Tinker” label to be seen.
Going back to the tinker firmware by DFU is not an issue, it works.