Digilent Serial Flash Utility User Manual

Digilent Hardware

Advertising
background image

S

S

e

e

r

r

i

i

a

a

l

l

F

F

l

l

a

a

s

s

h

h

U

U

t

t

i

i

l

l

i

i

t

t

y

y

R

R

e

e

f

f

e

e

r

r

e

e

n

n

c

c

e

e

M

M

a

a

n

n

u

u

a

a

l

l

Revision: February 20, 2011

1300 NE Henley Court, Suite 3

Pullman, WA 99163

(509) 334 6306 Voice | (509) 334 6300 Fax

Doc: 506-010

page 1 of 3

Copyright Digilent, Inc. All rights reserved. Other product and company names mentioned may be trademarks of their respective owners.

Overview


The Serial Flash Utility is a command line program that can be used to read and write data to serial
flash memories using the SPI interface, such as are found on the Digilent PmodSF. It is used with the
Digilent Adept runtime software and a Digilent Adept compatible programming device supporting the
DSPI interface, such as the JTAG-USB Full Speed Module, or the JTAG-USB Programming Cable.

Usage


In some cases, the SPI flash memory device is built into the Adept compatible product. In this case,
no special connections are required. Refer to the documentation for the specific product for
information such as the flash memory type, port numbers and other parameters to use.

To use the Serial Flash Utility to interface with a Digilent PmodSF and a Digilent Adept comptable
programming cable, such as the JTAG-USB Full Speed Module, it is necessary to provide power to
the PmodSF and the programming cable. This can be done using a Digilent PmodREG1 and a
Digilent 5V regulated power supply. Attach connector J1 of a PmodREG1 to the programming cable.
Then, attach the PmodSF to connector J2 of the PmodREG1. A Digilent 5V power supply or other
regulated power supply is then used to power the PmodREG1.

Syntax


The general command syntax is as follows:

sfutil [-<opt1> <val1>] [-<opt1> <val2>] …


The following command line options are supported:

-d <devname>

Specify the name of the Digilent Adept compatible programming device. This string is used to
open the connection to the programming device. The programming device name is case
sensitive. There is no default and so this is a required option. This name can be either the
name that is stored in the programming device itself, or a name stored in a device table
maintained by the Adept software.

-m <memtype>

Specify the type of SPI memory device to be programmed. If this option isn’t specified, the
program will attempt the read the id code from the device and map it to a know device. The
program supports the following values (these are not case sensitive):

M25P80

Micron/ST Microelectronics/Numonyx 8 Mbit part

M25P16

Micron/ST Microelectronics/Numonyx 16 Mbit part

Advertising