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

Secure DFU Bootloader debugging for nRF51822_xxAA

I am using example DFU project (bootloader_secure) from SDK (12.3). Chip 51822QFAA. My problem is that I cannot start to debug session in Keil5. Use JLink. I can program target(through J-Link interface) and start the application, but I cannot set traps and check where the program is at the moment in sources (only in disassembly). Should I do some extra settings in Keil? Before debugging I erase chip, flash s130 SD (2.0.1)

image description

Parents
  • Hi,

    Have you updated the linker configuration to ensure RAM usage is within 16K? The SDK examples are configured for the xxAC part which has 32K of RAM.

    Linker configuration for xxAA part:

    image description

    Also, the nRF51 programming algorithm used by Keil does not support writing the UICR where the bootloader start address is stored (@0x10001014). This may explain way the program never reaches main. Have you tried to load the FW with nrfjprog / nrfgo studio first?

    image description

    image description

    Edit 12.12 Are you able to place breakpoints in the code? I'm wondering if the debug information is included in your executable. Please make sure that this option is enabled as shown in screenshot above.

    image description

    Attachment:

  • I'm afraid I'm not aware of any project configuration that can cause that. Suggest that you download a new copy of SDK 12.3.0 and only modify the linker settings, then see if you get the same result. Another alternative is if you can send me your project so I can try it here.

Reply Children
No Data
Related