Using nRF52832, SDK16, SD132.
I have a (background)bootloader which is derived from dfu "secure_bootloader" example.
When there is nothing to flash bootloader successfully calls the app and everything works.
But, when bootloader has some bootloading to do and I use sd_mbr_command with command SD_MBR_COMMAND_COMPARE I get a hard fault with address 0x2000FF74.
nRF52832 map does not show anything above 0x20000000 or I'm looking at the wrong or incomplete address map.
It would be good to mention that when I try to use sd_mbr_command with SD_MBR_COMMAND_COPY_BL I get error 9 (NRF_ERROR_INVALID_LENGTH) which is weird, the size I'm giving it is 15904 (in bytes).
This are the only 2 mbr calls I use (except "nrf_dfu_mbr_irq_forward_address_set" function which has SD_MBR_COMMAND_IRQ_FORWARD_ADDRESS_SET) and they both don't work.
Any ideas what to check?
Thanks!