I am a little bit confused on the steps I need to follow to program the settings and the bootloader files. According to Secure DFU over Serial example instructions (https://infocenter.nordicsemi.com/index.jsp) I am supposed to program the settings hex file using the following cmd (nrfjprog --program --sectorerase settings.hex) but then in step 5 we are asked to program the bootloader which also asks us to erase the whole device deleting the settings page! Am I missing something? It would be great if someone lists the steps I need to follow to generate bootloader and settings files and how to program them.
Also according to nrfutil settings generate documentation, we could pass the application.hex file. Why would we do that and what would it use the file for?
Thanks!
Mustafa