Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
SPI flashes
# Macronix 25L6473E
$ glasgow run spi-flash-25c -V 3.3 --pin-ss 0 --pin-miso 1 --pin-mosi 2 --pin-sck 3 --pin-hold 4 identify
I: glasgow.device.hardware: device already has bitstream ID fd8d97b20930df7f44ace0a704c715e6
I: glasgow.cli: running handler for applet 'spi-flash-25c'
I: glasgow.applet.spi_flash_25c: port(s) A, B voltage set to 3.3 V
I: glasgow.applet.spi_flash_25c: JEDEC manufacturer 0xc2 (Macronix) device 0x2017
I: glasgow.applet.spi_flash_25c: device has valid SFDP 1.0 (JESD216) descriptor
I: glasgow.applet.spi_flash_25c: SFDP table #0: JEDEC, Flash Parameter Table 1.0 (JESD216)
I: glasgow.applet.spi_flash_25c: density (Mbits) : 64
I: glasgow.applet.spi_flash_25c: density (Mbytes) : 8
I: glasgow.applet.spi_flash_25c: address byte count : 3
I: glasgow.applet.spi_flash_25c: write granularity : 64 byte(s)
I: glasgow.applet.spi_flash_25c: sector sizes : 4096, 32768, 65536
I: glasgow.applet.spi_flash_25c: sector size 4096 : erase opcode 0x20
I: glasgow.applet.spi_flash_25c: sector size 32768 : erase opcode 0x52
I: glasgow.applet.spi_flash_25c: sector size 65536 : erase opcode 0xd8
I: glasgow.applet.spi_flash_25c: double transfer rate : no
I: glasgow.applet.spi_flash_25c: fast read modes : (1-1-2), (1-1-4), (1-2-2), (1-4-4)
I: glasgow.applet.spi_flash_25c: fast read mode (1-1-2) : opcode 0x3b, 8 wait states, 0 mode bits
I: glasgow.applet.spi_flash_25c: fast read mode (1-1-4) : opcode 0x6b, 8 wait states, 0 mode bits
I: glasgow.applet.spi_flash_25c: fast read mode (1-2-2) : opcode 0xbb, 4 wait states, 0 mode bits
I: glasgow.applet.spi_flash_25c: fast read mode (1-4-4) : opcode 0xeb, 4 wait states, 2 mode bits
I: glasgow.applet.spi_flash_25c: SFDP table #1: Macronix, Unknown Table 0xff 1.0
# Macronix 25L4005AM2C
$ glasgow run spi-flash-25c -V 3.3 --pin-ss 0 --pin-miso 1 --pin-mosi 2 --pin-sck 3 --pin-hold 4 identify
I: glasgow.device.hardware: device already has bitstream ID fd8d97b20930df7f44ace0a704c715e6
I: glasgow.cli: running handler for applet 'spi-flash-25c'
I: glasgow.applet.spi_flash_25c: port(s) A, B voltage set to 3.3 V
I: glasgow.applet.spi_flash_25c: JEDEC manufacturer 0xc2 (Macronix) device 0x2013
I: glasgow.applet.spi_flash_25c: device does not have valid SFDP data: SFDP signature not present
# Winbond 25Q64BVSIG
$ glasgow run spi-flash-25c -V 3.3 --pin-ss 0 --pin-miso 1 --pin-mosi 2 --pin-sck 3 --pin-hold 4 identify
I: glasgow.device.hardware: device already has bitstream ID fd8d97b20930df7f44ace0a704c715e6
I: glasgow.cli: running handler for applet 'spi-flash-25c'
I: glasgow.applet.spi_flash_25c: port(s) A, B voltage set to 3.3 V
I: glasgow.applet.spi_flash_25c: JEDEC manufacturer 0xef (NEXCOM) device 0x4017
I: glasgow.applet.spi_flash_25c: device has valid SFDP 1.0 (JESD216) descriptor
I: glasgow.applet.spi_flash_25c: SFDP table #0: JEDEC, Flash Parameter Table 1.0 (JESD216)
I: glasgow.applet.spi_flash_25c: density (Mbits) : 64
I: glasgow.applet.spi_flash_25c: density (Mbytes) : 8
I: glasgow.applet.spi_flash_25c: address byte count : 3
I: glasgow.applet.spi_flash_25c: write granularity : 64 byte(s)
I: glasgow.applet.spi_flash_25c: sector sizes : 4096, 32768, 65536
I: glasgow.applet.spi_flash_25c: sector size 4096 : erase opcode 0x20
I: glasgow.applet.spi_flash_25c: sector size 32768 : erase opcode 0x52
I: glasgow.applet.spi_flash_25c: sector size 65536 : erase opcode 0xd8
I: glasgow.applet.spi_flash_25c: double transfer rate : no
I: glasgow.applet.spi_flash_25c: fast read modes : (1-1-2), (1-1-4), (1-2-2), (1-4-4), (4-4-4)
I: glasgow.applet.spi_flash_25c: fast read mode (1-1-2) : opcode 0x3b, 8 wait states, 0 mode bits
I: glasgow.applet.spi_flash_25c: fast read mode (1-1-4) : opcode 0x6b, 8 wait states, 0 mode bits
I: glasgow.applet.spi_flash_25c: fast read mode (1-2-2) : opcode 0xbb, 2 wait states, 2 mode bits
I: glasgow.applet.spi_flash_25c: fast read mode (1-4-4) : opcode 0xeb, 4 wait states, 2 mode bits
I: glasgow.applet.spi_flash_25c: fast read mode (4-4-4) : opcode 0xeb, 1 wait states, 1 mode bits
# Winbond 25Q64FWSIG
$ glasgow run spi-flash-25c -V 3.3 --pin-ss 0 --pin-miso 1 --pin-mosi 2 --pin-sck 3 --pin-hold 4 identify
I: glasgow.device.hardware: device already has bitstream ID fd8d97b20930df7f44ace0a704c715e6
I: glasgow.cli: running handler for applet 'spi-flash-25c'
I: glasgow.applet.spi_flash_25c: port(s) A, B voltage set to 3.3 V
I: glasgow.applet.spi_flash_25c: JEDEC manufacturer 0xef (NEXCOM) device 0x6017
I: glasgow.applet.spi_flash_25c: device does not have valid SFDP data: SFDP signature not present
# SST25VFQ16B
$ glasgow run spi-flash-25c -V 3.3 --pin-ss 0 --pin-miso 1 --pin-mosi 2 --pin-sck 3 --pin-hold 4 identify
I: glasgow.device.hardware: device already has bitstream ID fd8d97b20930df7f44ace0a704c715e6
I: glasgow.cli: running handler for applet 'spi-flash-25c'
I: glasgow.applet.spi_flash_25c: port(s) A, B voltage set to 3.3 V
I: glasgow.applet.spi_flash_25c: JEDEC manufacturer 0xbf (Silicon Storage Technology) device 0x2541
I: glasgow.applet.spi_flash_25c: device does not have valid SFDP data: SFDP signature not present
# Winbond 25Q32BVSIG
$ glasgow run spi-flash-25c -V 3.3 --pin-ss 0 --pin-miso 1 --pin-mosi 2 --pin-sck 3 --pin-hold 4 identify
I: glasgow.device.hardware: device already has bitstream ID fd8d97b20930df7f44ace0a704c715e6
I: glasgow.cli: running handler for applet 'spi-flash-25c'
I: glasgow.applet.spi_flash_25c: port(s) A, B voltage set to 3.3 V
I: glasgow.applet.spi_flash_25c: JEDEC manufacturer 0xef (NEXCOM) device 0x4016
I: glasgow.applet.spi_flash_25c: device has valid SFDP 1.0 (JESD216) descriptor
I: glasgow.applet.spi_flash_25c: SFDP table #0: JEDEC, Flash Parameter Table 1.0 (JESD216)
I: glasgow.applet.spi_flash_25c: density (Mbits) : 32
I: glasgow.applet.spi_flash_25c: density (Mbytes) : 4
I: glasgow.applet.spi_flash_25c: address byte count : 3
I: glasgow.applet.spi_flash_25c: write granularity : 64 byte(s)
I: glasgow.applet.spi_flash_25c: sector sizes : 4096, 32768, 65536
I: glasgow.applet.spi_flash_25c: sector size 4096 : erase opcode 0x20
I: glasgow.applet.spi_flash_25c: sector size 32768 : erase opcode 0x52
I: glasgow.applet.spi_flash_25c: sector size 65536 : erase opcode 0xd8
I: glasgow.applet.spi_flash_25c: double transfer rate : no
I: glasgow.applet.spi_flash_25c: fast read modes : (1-1-2), (1-1-4), (1-2-2), (1-4-4)
I: glasgow.applet.spi_flash_25c: fast read mode (1-1-2) : opcode 0x3b, 8 wait states, 0 mode bits
I: glasgow.applet.spi_flash_25c: fast read mode (1-1-4) : opcode 0x6b, 8 wait states, 0 mode bits
I: glasgow.applet.spi_flash_25c: fast read mode (1-2-2) : opcode 0xbb, 2 wait states, 2 mode bits
I: glasgow.applet.spi_flash_25c: fast read mode (1-4-4) : opcode 0xeb, 4 wait states, 2 mode bits
# Macronix 25L5121E
$ glasgow run spi-flash-25c -V 3.3 --pin-ss 0 --pin-miso 1 --pin-mosi 2 --pin-sck 3 --pin-hold 4 identify
I: glasgow.device.hardware: device already has bitstream ID fd8d97b20930df7f44ace0a704c715e6
I: glasgow.cli: running handler for applet 'spi-flash-25c'
I: glasgow.applet.spi_flash_25c: port(s) A, B voltage set to 3.3 V
I: glasgow.applet.spi_flash_25c: JEDEC manufacturer 0xc2 (Macronix) device 0x2210
I: glasgow.applet.spi_flash_25c: device does not have valid SFDP data: SFDP signature not present
# ST 25P05AV
$ glasgow run spi-flash-25c -V 3.3 --pin-ss 0 --pin-miso 1 --pin-mosi 2 --pin-sck 3 --pin-hold 4 identify
I: glasgow.device.hardware: device already has bitstream ID fd8d97b20930df7f44ace0a704c715e6
I: glasgow.cli: running handler for applet 'spi-flash-25c'
I: glasgow.applet.spi_flash_25c: port(s) A, B voltage set to 3.3 V
I: glasgow.applet.spi_flash_25c: device lacks JEDEC manufacturer/device ID
I: glasgow.applet.spi_flash_25c: electronic signature 0x05
I: glasgow.applet.spi_flash_25c: device does not have valid SFDP data: SFDP signature not present
# Winbond 25Q80BVSIG
$ glasgow run spi-flash-25c -V 3.3 --pin-ss 0 --pin-miso 1 --pin-mosi 2 --pin-sck 3 --pin-hold 4 identify
I: glasgow.device.hardware: device already has bitstream ID fd8d97b20930df7f44ace0a704c715e6
I: glasgow.cli: running handler for applet 'spi-flash-25c'
I: glasgow.applet.spi_flash_25c: port(s) A, B voltage set to 3.3 V
I: glasgow.applet.spi_flash_25c: JEDEC manufacturer 0xef (NEXCOM) device 0x13 (8-bit ID)
I: glasgow.applet.spi_flash_25c: JEDEC manufacturer 0xef (NEXCOM) device 0x4014 (16-bit ID)
I: glasgow.applet.spi_flash_25c: device does not have valid SFDP data: SFDP parameter header 0 has incorrect vendor ID 0xef
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.