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

nrf52840 debug

Hi team, I developed own project based on /examples/dfu/secure_bootloader/pca10056e_ble/ses/. In the original project there was only Release config (no Debug). I modified the project and try to debug step-by-step (using breakpoints + F5), but I can't put breakpoints on some lines (No code for breakpoint). What is the problem? Is it related to Release config (was it a mistake to use Release instead of Debug version)?  I used sdk 15.3 and softdevice s140 Thanks.

Parents
  • Hi,

    When you use optimization then there is no longer a "direct translation" between the c-code and assembly code, so thereby in many case it is not possible to set a breakpoints exactly where you want in such case. Typically reduce or disable optimization will help in such case.

    Kenneth

Reply
  • Hi,

    When you use optimization then there is no longer a "direct translation" between the c-code and assembly code, so thereby in many case it is not possible to set a breakpoints exactly where you want in such case. Typically reduce or disable optimization will help in such case.

    Kenneth

Children
No Data