打印
[技术问答]

NUC980+W25Q256JV JFFS2 出现read only现象

[复制链接]
328|1
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
onlycook|  楼主 | 2022-10-14 15:38 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
NUC980+W25Q256JV JFFS2 出现read only现象,不但是jffs中,uboot,nuwriter都无法写和擦除

使用特权

评论回复
沙发
麻花油条| | 2022-10-14 17:06 | 只看该作者
Root cause:W25Q256 status register   2 CMP bit set to 1
The Complement Protect bit (CMP) is a non-volatile read/write bit in   the status register (S14). It is used in conjunction with TB, BP3, BP2, BP1   and BP0 bits to provide more flexibility for the array protection. Once CMP   is set to 1, previous array protection set by TB, BP3, BP2, BP1 and BP0 will   be reversed. For instance, when CMP=0, a top 64KB block can be protected   while the rest of the array is not; when CMP=1, the top 64KB block will   become unprotected while the rest of the array become read-only. The default   setting is CMP=0.
Solved by: clear the CMP bit, the flash turn to writable.



使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

435

主题

1620

帖子

3

粉丝