This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
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

Bootloader debugging

I want my application to cooperate with DFU. I am using example DFU project from SDK (6.1) (from nrf6310 folder, i simplified it so it could work on PCA10000), but i need some bigger changes.

My problem is that i cannot start debug session in keil. Is bootloader debugging the same as normal application debugging? I can start application, but i cannot set traps and check where the program is at the moment. Should i do some extra settings in keil?

What i do is: erase chip -> flash s110 SD (v7) -> load bootloader by keil -> start debugging -> no profit :(

  • @Questchin: You may need to erase the whole chip when you change the address of the bootloader because the address of the (old) bootloader is written in UICR and an chip Erase All is needed to change that.

  • Hi, Hung Bui. Thank you for the input! I found that the issue is my dfu_dual_bank.c and some other files are linking to the library file "dfu_type.h" and even if I erase all the chip it still starts from 0x3C000. Writing UICR using nrfjprog will resolve the problem. But I think the linking issue is really confusing regarding this problem.

Related