Hi everyone,
I'm using SDK 12.2 on nRF51822. Trying to get the buttonless dfu app example to work. Here's what I do:
Compile buttonless dfu app.
Generate settings:
nrfutil settings generate --family NRF51 --application nrf51422_xxac.hex --application-version 0 --bootloader-version 0 --bl-settings-version 1 bootloader_setting_bl_dfu.hex
Compile secured bootloader (with my own private key, but AFAIK, it doesn't matter)
Merge bootloader and bootloader settings:
mergehex -m nrf51422_xxac_s130.hex bootloader_setting_bl_dfu.hex -o bootloader_for_bldfu.hex
Using nRFgo Studio, program softDevice, bootloader and app.
Then I start DFU from Android app, and get
Initializing Starting DFU Starting bootloader
And it hangs there. If I kill the app, I can connect again to "Nordic_Template" and try it all over again, same result.
Thanks for your help!
-- Edit
I've applied the changes suggested in Bjørn's comment. So now, when I try to use DFU, everything goes as before, but after "Starting bootloader", I get "Connecting" then a new tab to open on "DFUTARG", to which the nRF Connect app seems connected as I see a "Disconnect" and DFU buttons, which sounds normal as I guess it didn't disconnect at all, just the name changed. Howerver, after that, nothing happens, I can disconnect, but the device doesn't advertise anymore and I have to power-cycle it again. Comparing to what would happen when doing DFU on SDK 8, I'm missing the upload screen.