Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Jun 2018 23:08:25 +0000 (UTC)
From:      Ian Lepore <ian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r335593 - head/usr.sbin/spi
Message-ID:  <201806232308.w5NN8PwH099848@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ian
Date: Sat Jun 23 23:08:25 2018
New Revision: 335593
URL: https://svnweb.freebsd.org/changeset/base/335593

Log:
  Add an example for displaying the manufacturer and size info from a
  standard spiflash chip.

Modified:
  head/usr.sbin/spi/spi.8

Modified: head/usr.sbin/spi/spi.8
==============================================================================
--- head/usr.sbin/spi/spi.8	Sat Jun 23 22:55:22 2018	(r335592)
+++ head/usr.sbin/spi/spi.8	Sat Jun 23 23:08:25 2018	(r335593)
@@ -191,6 +191,12 @@ as binary data, piped through
 displaying it as two hexadecimal unsigned short integer values.
 .Pp
 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
 .Pp
 .Sh SEE ALSO



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806232308.w5NN8PwH099848>