This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

IAR IDE Flash loader reported an error

I am seeing the error below when I try to launch a debug session inside the IAR IDE.

I am working on the nRF52840DK and am seeing this error on the DFU example in the SDK v15.3 only. I tried the DFU examples on the SDK v15.0 and SDK v16.0 and do not see this issue.

Is this a known issue in SDK v15.3? The IAR version is below.

  • Hi,

    Do you get more information in the log?

    With SDK 15.3 the bootloader start address is written to the end of the MBR page (address 0xFF8 to be specific). In SDK 15.0.0 and also in SDK 16.0.0 and later this is written to the UICR instead. The flash load configuration in IAR 8 seems to have problems with this (the SDK was tested with IAR 7), where writing to a page that is not fully erased (contains the MBR). If this is the problem then it can be worked around by changing NRF_UICR_BOOTLOADER_START_ADDRESS in components\libraries\bootloader\nrf_bootloader_info.h so that it points to (NRF_UICR_BASE + 0x14) instead (which is 0x10001014). And similar for NRF_UICR_MBR_PARAMS_PAGE_ADDRESS, that should be (NRF_UICR_BASE + 0x18) in components\libraries\bootloader\dfu\nrf_dfu_types.h.

Related