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

flashchips: Added MX25U12873F #114

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

Conversation

0xDouze
Copy link

@0xDouze 0xDouze commented Dec 11, 2019

This commit adds support for the Macronix MX25U12873F spi flash chip.
It is similar to the MX25U12835E and shares its RDID, but has no WP# pin.
Probe, read, write and erase have been tested on hardware.

Datasheet is available at the following URL:
https://www.macronix.com/Lists/Datasheet/Attachments/7446/MX25U12873F,%201.8V,%20128Mb,%20v1.2.pdf

Change-Id: I3047b3eda389d4c535376f6747e67de62995e82d
Signed-off-by: Kevin Tavukciyan kevintavukciyan@gmail.com

This commit adds support for the Macronix MX25U12873F spi flash chip.
It is similar to the MX25U12835E and shares its RDID, but has no WP# pin.
Probe, read, write and erase have been tested on hardware.

Datasheet is available at the following URL:
https://www.macronix.com/Lists/Datasheet/Attachments/7446/MX25U12873F,%201.8V,%20128Mb,%20v1.2.pdf

Change-Id: I3047b3eda389d4c535376f6747e67de62995e82d
Signed-off-by: Kevin Tavukciyan <kevintavukciyan@gmail.com>
@YeaTheMen
Copy link

Hi, I was wondering if you could possibly tell me the desired configuration for this chip is as my MSI B350M Mortar Arctic has the MX25U12837F flash chip and I am trying to read/write to it using flashrom on my Raspberry Pi 4B. But whenever I try flashrom does detect the chip as Generic flash chip "unknown SPI chip (RDID)" (0 kB, SPI) on linux_spi. I have it set to the default 2000Khz clock and the following = MISO->SO, MOSI->SI, CLK->SCLK, CS0#->CS#, VCC(1.8V) -> VCC, GND -> GND. This will be greatly appreciated. Thanks

@dhendrix
Copy link
Contributor

Hi, I was wondering if you could possibly tell me the desired configuration for this chip is as my MSI B350M Mortar Arctic has the MX25U12837F flash chip and I am trying to read/write to it using flashrom on my Raspberry Pi 4B.

Are you using a voltage regulator on the Raspberry Pi to drop the voltage? The chip is 1.8V and IIRC the Raspberry Pi's IO pins are 3.3V.

@YeaTheMen
Copy link

YeaTheMen commented Jun 18, 2020

Yes i use a bi-directional logic level converter for the SPI communication pins powered by a 1.8V regulator from the pi power pins also Passing the 1.8V to the chips VCC

@0xDouze
Copy link
Author

0xDouze commented Jun 18, 2020

It was a while back so I don't remember which speed I used, but you should try lowering it a bit if you didn't already. Might be wrong but I feel like I was in the 1900 range.
Also, very basic question but did you apply the commit in this pr?

@YeaTheMen
Copy link

YeaTheMen commented Jun 19, 2020

Look I'll be honest I don't know alot about GitHub commits and whatever but I did try the included copy of flashrom on the pi and also cloned this git to my pi, make'd it and tried that flashrom (v1.2) but that still didn't change the result. I also just tried it at 1900Khz, Still finds 'generic flash chip'

@0xDouze
Copy link
Author

0xDouze commented Jun 22, 2020

There's a commit in this pull request that has not been merged.
Just get the changes that are here and add them to the source code of flashrom.
Then recompile and try again. It should recognize the chip then.

@YeaTheMen
Copy link

YeaTheMen commented Jun 23, 2020

Oh ok I see. I won't be able to do it for a while but I'll give it a shot.
Update : I tried it out but it still doesnt recognise the chip ;( just generic flash chip

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