Infineon S25FL064L QSPI Flash: accessing the "secure regions" #97173
Unanswered
sjlongland
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
Silly question regarding the QSPI NOR flash driver. I have a custom board that uses a Infineon S25FL064L (SOIC-8 form factor) hooked up to a Nordic Semiconductor nRF52840 MCU. This chip has four 256kB "security regions" that can be programmed and kept separate from the main flash array.
Other chips like the ISSI IS25LP016D have the same feature (called "security rows" there).
In a previous project, I used one of these security regions to store a true-random generated blob of data that I then used to generate static tokens that had to be unique to each device. One example was the Thread joiner credential, which we then put on a label that gets fixed to the case of the device in question: this is something that I don't want to lose in a factory reset and the security rows are protected from such accidental erasure.
Question is, how do I access it in Zephyr? I have a
nordic,qspi-nor
device configured like so (minor nit, onlyfastread
seems to work properly as a read mode,read4o
sort-of works, but is intermittent, haven't figured out why):The datasheet tells me the opcodes for secure row access:
SECRR
(0x48
): Security Region ReadSECRP
(0x42
): Security Region ProgramSECRE
(0x40
): Security Region EraseWhere would I go to try sending such commands to the QSPI flash?
Beta Was this translation helpful? Give feedback.
All reactions