Hi support team.
My project build using keil IDE working stable. But when I change to build using makefile, although build success with hex file output and and everything still works but after mydevice reset (hard reset by power or softreset) it's alway jump to boot program. In my app, only when i send command via BLE, i set NRF_POWER->GPREGRET = 0xB1 and call NVIC_SystemReset() to jump to boot. In boot program i see function dfu_enter_flags_clear() was called before start timmer timeout and after check dfu_enter to clear GPREGRET register so i try to clear it to 0 in main program but it can't resolve.
Here is some config detail i used follow as dfu/secure_bootloader
MEMORY { FLASH (rx) : ORIGIN = 0x26000, LENGTH = 0x5a000 RAM (rwx) : ORIGIN = 0x20002a98, LENGTH = 0xd568 bootloader_settings_page (r) : ORIGIN = 0x0007F000, LENGTH = 0x1000 uicr_mbr_params_page (r) : ORIGIN = 0x10001018, LENGTH = 0x4 uicr_bootloader_start_address (r) : ORIGIN = 0x10001014, LENGTH = 0x4 }