Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for security register and SBULK command on Macronix chips. #77

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

VladimirSkokov
Copy link

Change-Id: I49649e3668ca5a0d33e26a9405b1265dce544e2c
Signed-off-by: Vladimir Skokov vl_sk@mail.ru

Change-Id: I49649e3668ca5a0d33e26a9405b1265dce544e2c
Signed-off-by: Vladimir Skokov <vl_sk@mail.ru>
@TrexaSolutions
Copy link

Hi Vladimir, I'm having a probelm when I try to write my Macronix MX25L6473F and it looks like Write Enable Latch (WEL) bit is the issue. Apparently, it must be set to 1 and it is set to 0. Reading a bit about this, I've realized that some macronix comes with write protection and I found some comments that SBULK must be used right after WREN.

Due so and based on the title of your commit, I though your flashrom branch could might help me but when I downloaded, compiled and tested it, I got the same writing error.

Could you confirm if your flashrom branch is related to this kind of issues and if there is anything else I should use in the command line to trigger SBULK command? Thanks

The error I get is:

Found Macronix flash chip "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E/MX25L6473F" (8192 kB, SPI) on serprog.
Chip status register is 0x40.
Chip status register: Status Register Write Disable (SRWD, SRP, ...) is not set
Chip status register: Bit 6 is set
Chip status register: Block Protect 3 (BP3) is not set
Chip status register: Block Protect 2 (BP2) is not set
Chip status register: Block Protect 1 (BP1) is not set
Chip status register: Block Protect 0 (BP0) is not set
Chip status register: Write Enable Latch (WEL) is not set
Chip status register: Write In Progress (WIP/BUSY) is not set
This chip may contain one-time programmable memory. flashrom cannot read
and may never be able to write it, hence it may not be able to completely
clone the contents of this chip (see man page for details).

I was using ArduinoUno with frser-duino and Flashrom 1.2 on Ubuntu 20.04

@ln2max
Copy link

ln2max commented Mar 3, 2021

Hi Vladimir, is this relevant to #185 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants