-
Anyway, it may be a feature https://github.com/espruino/Espruino/blob/master/targets/nrf5x_dfu/main.c#L145 , not bug.
That's if you don't define a BTN1. Even so, the comment says it should exit DFU after a few seconds and boot properly... which is why I thought maybe I didn't have the right entry point defined somewhere?
-
That's if you don't define a BTN1. Even so, the comment says it should exit DFU after a few seconds and boot properly.
Yes, if it stays in DFU (= you see it in nrf connect for many minutes) then either the comment is not true in your combination of compile flags or you somehow has internal flash corruption happenning after cold boot which is very strange. Or maybe you somehow erased bootloader settings at the end of the flash? that would become effective at next E.reboot() or cold boot.
I think the bootloader code is not very well tested on device that is not Bangle/Puck/Pixl so I think I never used the code 'as is' without few patches here an there.
Anyway, it may be a feature https://github.com/espruino/Espruino/blob/master/targets/nrf5x_dfu/main.c#L145 , not bug.