This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

armgcc build hex file always jump to boot after reset

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
}

Parents Reply
  • Hi,

    Which SDK version and Softdevice version are you using? It seems that you have changed the memory setting when I compare the standard example from the SDK with yours. I also see that you haven't defined the mbr_params_page memory region. Could you try changing it back to the original setting? If that doesn't work, could you try changing it to as in Keil? 

    regards
    Jared 

Children
No Data
Related