debugging a non-secure app (with tfm)

Hi,

I was wondering what I need to do, or if it is even possible, to debug a non-secure app which uses TFM.

Running 'west debug' on e.g. the blinky sample works regardless if I built it with secure or non-secure board type on an nrf9160dk. However, on an app that uses modem/crypto/tfm functionality, like the psa_crypto sample from the zephyr repository, that will result in a debugging session that is unable to get to the main function of the app.

This feels like I'm missing something really obvious, but I can't tell what it is. Anyone here willing to push me in the right direction?

Cheers!

Related