Debug cannot go to the breakpoint for the hello world sample app

Hi,

I am new to NCS and visual studio. I created an app based on the hello world sample app. And set the break point to the line of the printk in main.c. However, when I run the debugger, it cannot go to that line. Instead, it seems to loop on some line of the file cpu_idle.S. I am using NCS 1.7.0. Could you help?

Parents
  • Hi sokui,

    It's normal behaviour if the debug entry point is not inside the actual main function. That's because your actual firmware is just a part of the whole OS.

    If you set a breakpoint as you did on line 12 and just press the proceed button  you should end up where your breakpoint is.

    If not: What hardware are you using and how did you set up the build configuration?

    Best wishes,

    Simon

Reply
  • Hi sokui,

    It's normal behaviour if the debug entry point is not inside the actual main function. That's because your actual firmware is just a part of the whole OS.

    If you set a breakpoint as you did on line 12 and just press the proceed button  you should end up where your breakpoint is.

    If not: What hardware are you using and how did you set up the build configuration?

    Best wishes,

    Simon

Children
Related