You can force the electron into DFU mode by setting the baud rate of the serial interface. Check out the Serial tutorial. For the issue with log interface vs. Programming interface, you could use a uart to ttl serial adapter and output your logs to the serial or serial1 ports. The advantage to that adapter is that the serial interface would not drop during a device reboot.
1 Like