3 dead photon particles

Just to be clear, the D7 led is dimmed and RGB led is off ? If so, would be a bootloader issue (as the support mentioned before). That happens to me mucho more frecuent that I wanted; I’ve perform the procedure as the documentation suggests and @rickkas7 (thanks man) gave me the proper commands to perform in order to unlock the “flash protection”.

I;m not quite sure if the procedure is exactly the same between electron and photon, but I use to perform the next steps (even today happened to me):

The connections has to be like :

JTAG ELECTRON
SWCLF D6
SWDIO D7
GND GND

The jtag usb connector has to be connected to the USB port on your PC (it would be obious but …). Also the photon has to be connected via usb charger as well and the GND is now “shared”.

I typed the next commands (I use mac, and you have to follow the steps to install openocd):

cd /usr/local/share/openocd/scripts
openocd -f interface/stlink-v2.cfg -f target/stm32f2x.cfg -c "telnet_port 4444"

In a separated command prompt type :

telnet localhost 4444
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Open On-Chip Debugger

and then :

init
reset halt
stm32f2x unlock 0
reset halt
program <route to your bootloader>/bootloader-electron.bin verify 0x08000000
flash protect 0 0 0 on
reset halt

At this point you have to get the next output :

target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0xfffffffe msp: 0xfffffffc
** Programming Started **
auto erase enabled
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x20000046 msp: 0xfffffffc
wrote 16384 bytes from file ./bootloader-electron.bin in 0.822450s (19.454 KiB/s)
** Programming Finished **
** Verify Started **
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x2000002e msp: 0xfffffffc
verified 16384 bytes in 0.138109s (115.851 KiB/s)
** Verified OK **

The last steps has to be flash the system firmware and the sketch as the documentation mentions.

Hope it helps.