For study purpose, I try to change bootloader to move APP offset by
- change APP start address to 0x20000
- change start_addr in nrf_dfu_mbr_irq_forward_address_set() and nrf_bootloader_app_start() from MBR_SIZE to 0x20000, and I can see the main function is be executed. But the SW is not running correctly. After checked, I found two issues:
(1) After RTC initialized, no RTC INT handler be executed;
(2) When enable Soft device, it is not returned from SVC instruction;
The same APP if move back to 0x1C000, and change start_addr to MBR_SIZE, then it can work correctly.
Which means the issue is due to bootloader? Is anything I need to check?