Hello Nordic Support Team,
I am testing nRF9151-DK board. I wanted to debug an application that is created when "Create a blank application" option is chosen from nRF Connect's "Create a new application" menu.
After setting up a build configuration to target "nrf9151dk/nrf9151" board and an optimization level to "Optimize for debugging" everything works fine. Debug process stops at the first line of the main function and it is possible to debug program in step by step mode. On the other hand, when target is set to "nrf9151dk/nrf9151/ns" the debug process never stops at main function and using pause option terminates it.
I have tried turning on CONFIG_TFM_CMAKE_BUILD_TYPE_RELWITHDEBINFO option as linked page says:
https://nrfconnectdocs.nordicsemi.com/ncs/latest/nrf/test_and_optimize/debugging.html#debugging_secure_and_non-secure_firmware
But it did not resolve my problem.
What is proper way of setting up project to be able to debug Non Secure projects? I am asking for step by step instruction for dummy.
My enviroment setup:
OS - Windows 11,
IDE - Visual Studio Code v1.109.5
SDK - nRF Connect SDK v3.4.0
Best regards,
Wojciech