Hi ,
When i run samples/keys/hw_unique_key app and select nrf9160dk_nrf9160_ns board . The app can not run into main function instead run into system_halt.
Why is this happening please help.
Hi ,
When i run samples/keys/hw_unique_key app and select nrf9160dk_nrf9160_ns board . The app can not run into main function instead run into system_halt.
Hi,
I am not able to reproduce this on my end (using nRF Connect SDK 2.1.1). Which nRF Connect SDK version are you using?
The sdk version I am using is also 2.1.0
Yes, hw_unique_key in sdk select nrf9160dk_nrf9160 and nrf9160dk_nrf9160_ns boards both work fine on my end.
Selecting the nrf9160dk_nrf9160_ns board will set
CONFIG_BUILD_WITH_TFM=y
CONFIG_TFM_PROFILE_TYPE_NOT_SET=y
Selecting the nrf9160dk_nrf9160 board will set
CONFIG_MBEDTLS_PSA_CRYPTO_C=y
CONFIG_MAIN_STACK_SIZE=4096
CONFIG_MBEDTLS_ENABLE_HEAP=y
CONFIG_HW_UNIQUE_KEY=y
CONFIG_HW_UNIQUE_KEY_RANDOM=y
But we need to do it, our application runs in a non-secure program, hw_unique_key and crypto(ecdsa) in a secure program. In no-secure, the application calls hw_unique_key and crypto through the TF-M IOCTL interface.
I have tried both configurations of nrf9160dk_nrf9160 and nrf9160dk_nrf9160_ns above, hw_unique_key is not working properly in secure application.
Hi,
Just to be clear, did the unmodified hw_uneque_key run well in both secure and non-secure on your end? It should, and does for me.
Is the problem that you have problems with your custom application? If so, can you provide a minimal failing project or explain in more detail how I can reproduce this on my end? Or clarify in detail what you do and what you see when debugging (including logs etc) so that we can get some idea about what could be the problem in your application?
Just to be clear, did the unmodified hw_uneque_key run well in both secure and non-secure on your end? It should, and does for me.
yes, the unmodified hw_uneque_key run well in both secure and non-secure on my end.I'll share my custom code with you.
Hi,
Can you provide an email address? I will send you the custom code.
Hi,
Please open a private support case and upload the code there and refer to this thread. That way the code is handled in confidentiality and only accessible for the Nordic technical support team.
Hi,
Please open a private support case and upload the code there and refer to this thread. That way the code is handled in confidentiality and only accessible for the Nordic technical support team.
ok
I have opened a private support case. Case ID: 298438
Thanks,
We will continue there for now.