Reference the sm_test.c example, I test the Secure memory. But I find when I reboot the SOC(i.mx6q),power down and then on.
I can not read data from the slot ( sm_keystore_slot_read ), So can not store the cipher code in CAAM secure Memory.
Add some information:
We have not battery power supply (SNVS) active,Because there are not battery design in our PCB Board. @Yuri Muhin
Hello,
Please apply battery (coin cell) supply to i.MX6 VDD_SNVS_IN.
From hardware point of view it is recommended to follow i.MX6 Reference design
for it. In particular : "A schottky diode may be required between VDDHIGH_IN and
VDD_SNVS_IN. Connect the cathode to VDD_SNVS_IN."
Also, You may refer to the Security Reference Manual for i.MX 6 for more details
regarding the Security memory.
Have a great day,
Yuri
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thank you, I know that means we maybe should design the new PCB :(