You are reading a single comment by @DanTheMan827 and its replies.
Click here to read the full conversation.
-
If it’s not enabled by default, I think it should definitely be behind an ifdef, or maybe enabled some other way. Maybe a DFU update that flips a byte flag somewhere?
It’s hard though, because you’re trying to secure functionality through a repl console that should ultimately be password protected by the user… I get what you’re saying though
Well, I proposed that previously but so far your argument was that it is dangerous - someone with access to console can remotely update your device so something physical (holding button) to enter DFU is safer.
Some watches uses also value 1 in GPREGRET to trigger DFU so in my custom builds I have one liner
but I agree that it is somewhat dangerous.
With that one liner in bootloader you enter DFU by
poke32(0x4000051c,1)
, with softdevice enabled it automatically reboots (into DFU)