Hello!
I am having problems reading the SIPINFO on the SoC. I started with the TFM sample and added some lines to read the silicon version.
added lines:
printk("FICR->INFO.VARIANT: 0x%08x\n",
secure_read_word((intptr_t)&NRF_FICR_S->INFO.VARIANT));
printk("FICR->INFO.DEVICEID: 0x%08x\n",
secure_read_word((intptr_t)&NRF_FICR_S->INFO.DEVICEID));
uint32_t partno = secure_read_word(0x00FF0000UL + 0x140); /* SIPINFO.PARTNO */
printk("Partno: 0x%08x\n", partno);
And i get error when coming to the SIPINFO.
00> *** Booting nRF Connect SDK v3.1.1-e2a97fe2578a ***
00> *** Using Zephyr OS v4.1.99-ff8f0c579eeb ***
00> Hello World! nrf9151dk/nrf9151/ns
00> Reading some secure memory that NS is allowed to read
00> Approximate IPC overhead us: 75
00> FICR->INFO.FLASH: 0x00000400
00> FICR->INFO.VARIANT: 0x41414330
00> FICR->INFO.DEVICEID: 0xacc24eda
00> tfm_..._mem_read failed: plt_err: 0x2, err: 0xffffffff
00> Partno: 0xffffffff
00> Generating random number
00> 0xe0353d1ea3fc633048f852b4efaa6fdbe61274984a3aa07495197def91343614
00> Example finished successfully!
Sample:
The TF-M Hello World sample is based on Hello World that demonstrates adding Trusted Firmware-M (TF-M) to an application.