e2bluecmd 详解
e2bluecmd [-trans "..."] [-norun] [-pio_sda <val>] [-pio_scl <val>] [-pio_wp <va
l>]
[ info | header [<val>]|
download <filename> | broad <filename> <devs> |
dump <filename> | verify <filename> |
fill <val> | broadfill <value> <devs> |
read <addr> | write <addr> <value> |
readblock <addr> <size> |
writeblock <addr> <val0> <val1> <val2> ...]
Options:
-trans - Space separated string of optional transport options, such as:
SPITRANS=LPT | USB
SPIPORT=<port_num>
SPIMUL=<device_on_multispi>
-norun - Prevents restart before exit.
-pio_sda <val> - The PIO to use for the I2C SDA line.
<val> is the PIO number 0-15.
-pio_scl <val> - The PIO to use for the I2C SCL line.
<val> is the PIO number 0-15.
-pio_wp <val>- The PIO to use for the EEPROM write protect line.
<val> is the PIO number 0-15 or
"not_used" if WP is not controlled by a PIO.
Commands:
info - display information about the EEPROM
header [<val>] - write the header to the EEPROM. An optional value
can be specified to override the default size written in the header.
It must be in log2 bytes (i.e. address width: number of bits that make
up the address into the byte memory array). e.g. 12 for a 32Kbit EEPROM.
The optional value must be equal or less than the address width of the
whole EEPROM. The default is the whole EEPROM.
download <filename> - Download data from a file to EEPROM
broad <filename> <devs>
Broadcast download data from file to EEPROMs via gang programmer.
<devs> lists chips to download to as a bitfield, see note below.
If <devs> is 0 then all devices found will be used.
dump <filename> - copies the data from EEPROM to the file
verify <filename> - checks the contents of EEPROM match the file
fill <val> - Fills the EEPROM with the word value
broadfill <val> <devs>
Broadcast fills EEPROMs (via gang programmer) with the given word
value.
<devs> lists chips to download to as a bitfield, see note below.
If <devs> is 0 then all devices found will be used.
NOTE : The "devs" value expected by the "broad" commands is, by
default, decimal e.g. a value of 17, represents a bit mask of
10001 and therefore contains devices 0 and 4 but not 1,2 and 3
If you wish to give a hexadecimal value for this or any other
value argument listed above, use a "0x" prefix
CSR internal Commands: (used at own risk)
read <addr> - read word from hex addr
write <addr> <value> - write word to hex addr
readblock <addr> <size> - read <= 4096 words from hex addr
writeblock <addr> <vals> - write <= 4096 words to hex addr
学习 :):):):):) 有没有详细的说明一下!
页:
1
[2]