ULINK: Loading nRF52 Softdevice "Error: Flash Download failed..."
Information in this knowledgebase article applies to:
I have succesfully downloaded the softdevice and then loaded the application code to the board. This setup uses the ULINKpro's 10-pin cable attached the board's P18 connector for serial wire debug. I have the following Flash Download options for the softdevice target:
For the application code's target, Erase Sectors is set. Now, the softdevice must be re-downloaded because there was an update to the library or we are switching over to use another library. When I try to load the softdevice, a second time, the message window appears "Error: Flash Download failed - "Cortex-M4", and the command window also shows "Programming Failed!".
A new flash algorithm (or some other method) is required to force a full chip erase from the nonvolatile memory controller (NVMC).
There are multiple ways to resolve issue.
_WDWORD( 0x4001E504, 0x00000002 ); _WDWORD( 0x4001E50C, 0x00000001 );
Then flash the hex file, and it will load successfully.
The following Discussion Forum threads may provide information related to this topic.
Last Reviewed: Wednesday, May 22, 2019
of your data.