Hello,
Is it possible to read the hardware ID of a nRF9160 from a non secure firmware?
Best regards,
Vlad
Hello,
Is it possible to read the hardware ID of a nRF9160 from a non secure firmware?
Best regards,
Vlad
Hi Vlad,
What do you mean by hardware ID?
If you mean the information you can get by issuing the AT command AT%HWVERSION, then yes that is possible to get.
Just open a AT socket and issue the command in your FW that runs in the non-secure area.
Hi Martin,
Thank you for your quick reply.
I want to read the DEVICEID register from the FICR peripheral. Unfortunately for me the ncs defines only a secure definition for the FICR registers so it can't be read by a non secure firmware.
Is there a way to get the information form DEVICEID? If not is there another unique id register that I can read?
Hi Vlad,
I would recommend using the IMEI instead, since that is also unique for each nRF9160 SiP.
This can be gathered from the AT command AT+CGSN.
Since the FICR structure (NRF_FICR_S) structure is secure only.
Any access to this region must be done using a trustzone call.
Add the CONFIG_SPM_SECURE_SERVICES=y into your prj.conf
and use the spm_request_read to read FICR.
You can use the Secure Services sample as reference.