1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-25 11:37:56 +00:00

Add an example for displaying the manufacturer and size info from a

standard spiflash chip.
This commit is contained in:
Ian Lepore 2018-06-23 23:08:25 +00:00
parent 95e390b666
commit 110d4e2df3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=335593

View File

@ -191,6 +191,12 @@ as binary data, piped through
displaying it as two hexadecimal unsigned short integer values. displaying it as two hexadecimal unsigned short integer values.
.Pp .Pp
echo "00 01" | spi -A -b -d rw -c 4 | od -t x2 echo "00 01" | spi -A -b -d rw -c 4 | od -t x2
.It
Query the manufacturer ID and size from a standard spiflash device, by
sending the command byte 0x9f and displaying the 3-byte reply in ASCII hex.
.Pp
spi -f spigen0.0 -m 0 -s 1000000 -d r -c 3 -A -C 9f
.El .El
.Pp .Pp
.Sh SEE ALSO .Sh SEE ALSO