We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0989c67 commit a2fae4fCopy full SHA for a2fae4f
samples/nrf9160/secure_services/src/main.c
@@ -74,6 +74,17 @@ void main(void)
74
print_hex_number(buf, num_bytes_to_read);
75
#endif
76
77
+ u32_t info_part = 0;
78
+ u32_t ficr_addr = (u32_t)&NRF_FICR_S->INFO.PART;
79
+
80
+ printk("\nRead FICR, offset 0x20C (address 0x%08x):\n", ficr_addr);
81
+ ret = spm_request_read(&info_part, ficr_addr, sizeof(u32_t));
82
+ if (ret != 0) {
83
+ printk("Could not read FICR (err: %d)\n", ret);
84
+ } else {
85
+ printk("FICR.INFO.PART (+0x20C) = 0x%08X\n", info_part);
86
+ }
87
88
printk("\nReboot in %d seconds.\n", sleep_time_s);
89
k_sleep(K_SECONDS(5));
90
0 commit comments