Hello. For some reason I have a lot of troubles debugging my code using breakpoints on Thingy 91 board.
My setup:
Thingy 91 board
VSCode with NCS v2.5.0
J-Link Compact Plus debugger
The code that I am trying to debug:
/* * Copyright (c) 2012-2014 Wind River Systems, Inc. * * SPDX-License-Identifier: Apache-2.0 */ #include <stdio.h> #include <zephyr/kernel.h> int main(void) { while(1){ printf("Hello World! %s\n", CONFIG_BOARD); k_msleep(1000); } return 0; }
All I did was place a breakpoint:
and launch a debug session:
Once the debug session started, the following screen is opened:
after I click F5 to continue:
After I click F5 again, nothing happens. The code does not stop at the breakpoint that I have placed. I cannot wrap my head around what could be an issue. Why does it seem so complicated? I would appreciate if someone could point me in the right direction to understand how to properly stop the code at a breakpoint and what is the cause why it does not do it now?
Am I doing something wrong or its just not working as intended?