not sure if this is going to help you but here is a discussion on using the jtag interface: Re-flash bootloader & firmware to bricked Photon
not sure if this is going to help you but here is a discussion on using the jtag interface: Re-flash bootloader & firmware to bricked Photon