
25 Sep
2015
25 Sep
'15
7:03 p.m.
Hello Jagan,
On Thu, Sep 24, 2015 at 5:03 PM, Jagan Teki jteki@openedev.com wrote: ...
"sf protect on off len" then based on the offset and len write the protected bits and skips the sectors which are protected by showing warning say "protected sectors will not be erased!" [1]"
What about creating commands doing like this instead?
"sf protect 000" ---> Write 000 to BP2 BP1 BP0 (do not protect any sector) "sf protect 001" ---> Write 001 to BP2 BP1 BP0 (protect the last 1/64 sectors) ... "sf protect 111" ---> Write 111 to BP2 BP1 BP0" (protect all sectors)
Would this method be acceptable? It much simpler.
I don't think that the proposed "sf protect on off len" would apply to the SPI NOR protection layout.
Please advise.
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750