Repository navigation
Macronix SPI NOR: one status register everywhere; two-byte WRSR for CMP and SRP1 - #58
Conversation
A Macronix SPI NOR has one status register. The page and the app showed what 0x35 and 0x15 read as SR2 and SR3 with the bits of Winbond. They now show SR1 alone, with the bits of Macronix (SRWD, QE, BP3, BP2, BP1, BP0, WEL, WIP) and their own note. Version 1.21.2. [skip ci]
-i prints SR1 alone for them. -t reads their protection right: BP3 counts, there is no TB and no CMP. [skip ci]
A chip that does not know WRSR2 kept them, and -u, -uu, erases and writes failed with the register as it was. The two-byte write now follows, as it does for QE, and keeps QE. Its function moves up in the file for that.
PR Summary by QodoHandle Macronix SR1 correctly and clear SR2 protection without WRSR2
AI Description
Diagram
High-Level Assessment
Files changed (19)
|
Code Review by Qodo
1. Failed Macronix self-tests appear to pass
|
|
Qodo finding "Failed Macronix self-tests appear to pass" is left for the next change: it is in |
A Macronix SPI NOR has one status register. The page and the app showed what 0x35 and 0x15 read on it (
ff,07on the MX25L12805D) as SR2 and SR3, with the bits of Winbond, so a WPS lamp was lit on a chip that has no such bit.ms_chiptellssr_macronix; the web state hassr_macronix, the app gets bit 24 ofsr.The page and the app show SR1 alone with SRWD, QE, BP3, BP2, BP1, BP0, WEL, WIP, BP3 and SRWD as protection bits, and a note of their own. Other chips do not change.
-u, erases and writes clear CMP and SRP1 with the two-byte WRSR too, for the chips that do not know WRSR2; QE stays.Version 1.21.2.
-iprints SR1 alone for these chips, and-treads their protection right: BP3 counts, there is no TB and no CMP.Tests:
websimchecks the state and the page,stubthe protection line of-t. Hardware: two chips with the ID of the MX25L12805D, on CH341A and CH347T: the web mode,-i, and with SR1 written by hand,-tsays PROTECTED for BP3 alone (0x20),-uclears it, keeps QE (0x40), and-uuclears QE. The Android app on a TV box with the CH341A: Detect and Registers show one register with the bits of Macronix. The two-byte WRSR for CMP and SRP1 is checked innorsimonly: no such chip at hand.