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

Unable to debug the application with bootloader

Board: nRF52810

SoftDevice: s112

SDK version: 17.0.2

I've tried to debug my application in segger embedded studio, I'm getting "No Bootloader was found" error message. Then I've added the bootloader file in the loader and tried debugging the application. Now my debug terminal doesn't work. 

How can I debug my application with the bootloader on? How can I solve this issue? 

Thanks in advance. 

Parents
  • Hi,

    The nRF5 SDK bootloader will do a CRC check of the application, and only start it if the application is valid. So in order to make the application start (also when debugging) you need to generate and flash a valid bootloader settings page. That quickly becomes tedious during development, so I suggest you slightly modify the bootloader while developing, so that app_is_valid() in components\libraries\bootloader\nrf_bootloader.c always returns true. That way the bootloader will start the app regardless of the content of the bootloader settings page. And with that, you can program and debug the application from Segger Embedded Studio without any problems.

Reply
  • Hi,

    The nRF5 SDK bootloader will do a CRC check of the application, and only start it if the application is valid. So in order to make the application start (also when debugging) you need to generate and flash a valid bootloader settings page. That quickly becomes tedious during development, so I suggest you slightly modify the bootloader while developing, so that app_is_valid() in components\libraries\bootloader\nrf_bootloader.c always returns true. That way the bootloader will start the app regardless of the content of the bootloader settings page. And with that, you can program and debug the application from Segger Embedded Studio without any problems.

Children
Related