mcuboot on nRF9160 custom board

I have written simple hello world code on nRF9160 custom board and enables the MCUBoot as bootloader using CONFIG_BOOTLOADER_MCUBOOT=y in prj.conf file.

Also, made some bootloader related configuration at mcuboot.conf file.

I have kept the break point on loader.c file but my program execution is not halting there.

my question is that. How to debug the mcuboot a bootloader code on nRF9160 custom board?

I am using Segger Embedded Studio IDE.

Parents
  • Hi,

    I am able to debug my custom board using ozone debug as per your suggestion.

    My issue is that mcuboot is unable to read/swap the image. So i want to debug loader.c file on nRF9160 DK board. When i do same process for DK board i unable to debug it (program execution didn't halt at breakpoints)?  

    Is there any settings to be enable for nRF9160DK board?

  • Hello! Sorry about the delay.

    MayurKumar said:
    program execution didn't halt at breakpoints

    I see, that is odd. And you do manage to set the breakpoints? Note that not every line gives you that option.

    What about at line 90 on loader.c? Place a breakpoint, then go to Debug --> Reset --> Reset & Run.

    MayurKumar said:
    Is there any settings to be enable for nRF9160DK board?

    Nothing you require for this to work, but speaking of which I believe CONFIG_DEBUG_OPTIMIZATIONS could be helpful.

    Best regards,

    Elfving

Reply
  • Hello! Sorry about the delay.

    MayurKumar said:
    program execution didn't halt at breakpoints

    I see, that is odd. And you do manage to set the breakpoints? Note that not every line gives you that option.

    What about at line 90 on loader.c? Place a breakpoint, then go to Debug --> Reset --> Reset & Run.

    MayurKumar said:
    Is there any settings to be enable for nRF9160DK board?

    Nothing you require for this to work, but speaking of which I believe CONFIG_DEBUG_OPTIMIZATIONS could be helpful.

    Best regards,

    Elfving

Children
No Data
Related