5 weeks ago I powered up my first electron (after experience with the photon) and all was good. Flashing over cellular, flashing over usb,publishing events, all was good.
Then, this week, flashes over usb were not working. They would send the device into safe mode however simple the program. Flashes over the air still worked. I suspected I was building bad bins somehow but could not figure that out. My method was:
particle compile electron hello_world.ino particle flash --usb <electron...bin> # i removed all old bins, triple checked the file, etc...
I really didn’t want to do all my flashing over cellular, so this morning I decided to try other things
That looked promising – I figured it might be a firmware mismatch or something, and this looked harmless. Got it from the docs.
Now my electron is in a mode I don’t see documented.
- flashing cyan (1 sec), rapid flash cyan (2sec), rapid flash red(<1sec), flashing cyan (2sec) repeat…
- I can not get it into safe mode. When I try, I release the reset button, I get blinking purple, I release mode button, I get one breath of white, followed by the sequence in #1
- I can get it into dfu-mode, and have retried the “particle update” – no change
- If i do a reset, it goes right to pattern #1 above
- If i remove power, it blinks green for a while, then goes to #1 pattern
- I am still able to do all expected activities with a photon, same computer, etc… yes, I’m carful to check that I am compiling for the right target device.
$ dfu-util -V 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 email@example.com $ particle --version 1.8.16 $ particle compile electron hello_world.ino Compiling code for electron Including: hello_world.ino attempting to compile firmware pushing file: hello_world.ino Memory use: text data bss dec hex filename 4972 8 1532 6512 1970 grabbing binary from: https://api.particle.io/v1/binaries/5842f32c899efe67032d431a Compile succeeded. Saved firmware to: /Users/dandixon/spark/interlock/electron_firmware_1480782634530.bin $ particle flash --usb ./electron_firmware_1480782634530.bin Found DFU device 2b04:d00a checking file ./electron_firmware_1480782634530.bin spawning dfu-util -d 2b04:d00a -a 0 -i 0 -s 0x08080000:leave -D ./electron_firmware_1480782634530.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 firstname.lastname@example.org 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:d00a 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 = 0x08080000, size = 4980 Download [=========================] 100% 4980 bytes Download done. File downloaded successfully Flash success!