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

Debugging Serial UART Bootloader SDK 15.3

Hi,

I am currently working on a project for which I use the Secure Serial UART Bootloader from SDK 15.3 (nRF5_SDK_15.3.0_59ac345\examples\dfu\secure_bootloader\pca10040_uart), slightly modified to fit my custom board embedding a nRF52832 chip (pinout, RX buffer size...).

My problem is, after having erased non-volatile memory and program SoftDevice 6.1.1 with nrfjprog, I can't seem to debug the bootloader with Keil. I have the error:

Error: Flash Download failed  -  "Cortex-M4"

when trying to download firmware or debug.

Settings are as follow:

- Defined "DEBUG"  as preprocessor symbol.

- Optimization level 0.

- IROM1 start address: 0x69000, size: 0xD100 (I added some files hence the size).

- Using J-LINK / J-TRACE Cortex to debug.

Thank you for your help.