Hi Team Nordic,
I know this question has been answered in several threads but the responses seem quite old now. I am using nrf52840 and SDK 15.3.0 and I want to flash the application using nrfjprog command after I flash the bootloader but as soon as I flash the bootloader, it enters in the update mode (DFUTarg). What should be the best way now to do so?
I have seen responses to change the bootloader settings page in order to skip the CRC and validation steps. But in SDK version I am using, I think its already implemented in the config file:
Do I still need to change the bootloader settings page, if yes then can you please explain a little on the procedure to edit the bootloader settings page as I am only aware on how to generate one.
// <q> NRF_BL_APP_CRC_CHECK_SKIPPED_ON_GPREGRET2 - Skip integrity check of the application when bit 1 (0-indexed) is set in the GPREGRET2 register.
#ifndef NRF_BL_APP_CRC_CHECK_SKIPPED_ON_GPREGRET2
#define NRF_BL_APP_CRC_CHECK_SKIPPED_ON_GPREGRET2 1
#endif
// <q> NRF_BL_APP_CRC_CHECK_SKIPPED_ON_SYSTEMOFF_RESET - Skip integrity check of the application when waking up from the System Off state.
#ifndef NRF_BL_APP_CRC_CHECK_SKIPPED_ON_SYSTEMOFF_RESET
#define NRF_BL_APP_CRC_CHECK_SKIPPED_ON_SYSTEMOFF_RESET 1
#endif
// </h>
#ifndef NRF_BL_DFU_ENTER_METHOD_BUTTON_PIN
#define NRF_BL_DFU_ENTER_METHOD_BUTTON_PIN 18
#endif
// </e>
// <q> NRF_BL_DFU_ENTER_METHOD_PINRESET - Enter DFU mode on pin reset.
#ifndef NRF_BL_DFU_ENTER_METHOD_PINRESET
#define NRF_BL_DFU_ENTER_METHOD_PINRESET 0
#endif
// <q> NRF_BL_DFU_ENTER_METHOD_GPREGRET - Enter DFU mode when bit 1 (0-indexed) is set in the NRF_POWER_GPREGRET register.
#ifndef NRF_BL_DFU_ENTER_METHOD_GPREGRET
#define NRF_BL_DFU_ENTER_METHOD_GPREGRET 1
#endif
// <q> NRF_BL_DFU_ENTER_METHOD_BUTTONLESS - Enter DFU mode when the Boolean enter_buttonless_dfu in DFU settings is true.
#ifndef NRF_BL_DFU_ENTER_METHOD_BUTTONLESS
#define NRF_BL_DFU_ENTER_METHOD_BUTTONLESS 0
#endif
Thanks,
Arshdeep