Debugging TFM application on nrf9151

I'm not able to debug any of example applications that uses non secure build. Non ns versions works fine. I have added CONFIG_TFM_CMAKE_BUILD_TYPE_RELWITHDEBINFO=y  to my prj.conf. Debugger connects but I'm not able to pause it, place breakpoints or checking any of program variables. I'm using nrf connect with vscode.

Thank you for your help.

Parents
  • Hi,
    There was someone with a similar issue you could check out. In short you could try to set debug level in the .config file under build/{app_name}/zephyr/

    This exercise is also great to check if you are new to debugging in NCS on VSCode.

    The CONFIG_TFM_CMAKE_BUILD_TYPE_RELWITHDEBINFO symbol is for debugging the code in the Secure Processing Environment. Applications are running in the Non-secure Processing Environment and this Kconfig symbol should not matter.

Reply
  • Hi,
    There was someone with a similar issue you could check out. In short you could try to set debug level in the .config file under build/{app_name}/zephyr/

    This exercise is also great to check if you are new to debugging in NCS on VSCode.

    The CONFIG_TFM_CMAKE_BUILD_TYPE_RELWITHDEBINFO symbol is for debugging the code in the Secure Processing Environment. Applications are running in the Non-secure Processing Environment and this Kconfig symbol should not matter.

Children
No Data
Related