Difference between revisions of "Protocol decoder:Spiflash"
Uwe Hermann (talk | contribs) m |
Uwe Hermann (talk | contribs) m |
||
Line 7: | Line 7: | ||
| source_code_dir = mx25lxx05d | | source_code_dir = mx25lxx05d | ||
| image = [[File:Macronix mx25l1605d device top.jpg|250px]] | | image = [[File:Macronix mx25l1605d device top.jpg|250px]] | ||
| input = [[Protocol Decoder:spi|spi]] | | input = [[Protocol Decoder:spi|spi]] | ||
| output = mx25lxx05d | | output = mx25lxx05d | ||
| probes = — | | probes = — | ||
| optional_probes = HOLD#, WP#/ACC | | optional_probes = HOLD#, WP#/ACC | ||
| options = — | |||
}} | }} | ||
Line 37: | Line 38: | ||
|- | |- | ||
| 0 (green) | | 0 (green) || CS# | ||
| CS# | |||
|- | |- | ||
| 1 (orange) | | 1 (orange) || SO/SIO1 (a.k.a MISO) | ||
| SO/SIO1 (a.k.a MISO) | |||
|- | |- | ||
| 2 (white) | | 2 (white) || SCLK | ||
| SCLK | |||
|- | |- | ||
| 3 (red) | | 3 (red) || SI/SIO0 (a.k.a MOSI) | ||
| SI/SIO0 (a.k.a MOSI) | |||
|- | |- | ||
| 4 (gray) | | 4 (gray) || WP#/ACC | ||
| WP#/ACC | |||
|- | |- | ||
| 5 (brown) | | 5 (brown) || HOLD# | ||
| HOLD# | |||
|} | |} |
Revision as of 22:50, 2 April 2015
Name | Macronix MX25Lxx05D |
---|---|
Description | SPI-attached serial EEPROM |
Status | supported |
License | GPLv2+ |
Source code | decoders/mx25lxx05d |
Input | spi |
Output | mx25lxx05d |
Probes | — |
Optional probes | HOLD#, WP#/ACC |
Options | — |
The mx25lxx05d protocol decoder supports the Macronix MX25L1605D / MX25L3205D / MX25L6405D SPI (NOR) flash chip protocol.
Hardware
Chip pinout
The Macronix MX25Lxx05D chips have the following pinout:
CS# | 1- | O | -8 | VCC |
SO | 2- | -7 | HOLD# | |
WP# | 3- | -6 | SCLK | |
GND | 4- | -5 | SI |
Macronix MX25L1605D in openbiosprog-spi
The spi/mx25l1605d directory in sigrok-dumps contains a set of example captures of a Macronix MX25L1605D (MX25L1605DPI-12G) SPI flash chip (16Mbit == 2Mbyte; NOR flash) that is probed, being written to, read, or erased.
The logic analyzer used was a ChronoVu LA8 (at 25MHz). It is probing the SPI chip in the openbiosprog-spi Open Hardware USB-based SPI chip programmer. The host software used is flashrom.
Probe setup:
Probe | MX25L1605D pin |
---|---|
0 (green) | CS# |
1 (orange) | SO/SIO1 (a.k.a MISO) |
2 (white) | SCLK |
3 (red) | SI/SIO0 (a.k.a MOSI) |
4 (gray) | WP#/ACC |
5 (brown) | HOLD# |
Photos:
Protocol
The chip uses the standard SPI protocol and pins (MISO, MOSI, SCLK, CS#), with the additional (optional) HOLD# and WP#/ACC pins.
The host can send a large number of commands to the SPI chip (such as WREN, RDID, READ, SE, CE, PP, and many more). The commands have various length, and usually consist of one command ID byte, optional address bytes, one or more data/payload bytes, and so on (depending on the command).
See the chip datasheet for a detailed protocol/register/command description.