script: shorten jtag_* command names
Drop the get_/set_/_pin/_list noise from the JTAG commands (e.g. jtag_get_probes_list -> jtag_probes, jtag_set_spi_cs_pin -> jtag_spi_cs, jtag_spi_rd_wr -> jtag_spi_xfer). jtag_open_probe -> jtag_open (not jtag_probe, which would clash with jtag_probes under tab-completion). Hard rename, no aliases. Updates the state-dump emitter, help text, example script and docs accordingly.
This commit is contained in:
22
README.md
22
README.md
@@ -71,25 +71,25 @@ list of variables.
|
||||
|
||||
```sh
|
||||
# 1. List probes, then open one by its index (the [N] in the list)
|
||||
bs_explorer> jtag_get_probes_list
|
||||
bs_explorer> jtag_probes
|
||||
[0] 0x00000000 <probe description>
|
||||
bs_explorer> jtag_open_probe 0 # or the raw 0x id shown next to it
|
||||
bs_explorer> jtag_open 0 # or the raw 0x id shown next to it
|
||||
|
||||
# 2. Scan the chain and auto-load BSDL files
|
||||
bs_explorer> jtag_autoinit
|
||||
|
||||
# 3. Switch device 0 to EXTEST (direct pin control)
|
||||
bs_explorer> jtag_set_mode 0 EXTEST
|
||||
bs_explorer> jtag_mode 0 EXTEST
|
||||
|
||||
# 4. Wire the 4 SPI pins onto the FPGA's BSDL pins
|
||||
# (exact names depend on the loaded BSDL)
|
||||
bs_explorer> jtag_set_spi_cs_pin 0 <PIN_CS> 0
|
||||
bs_explorer> jtag_set_spi_clk_pin 0 <PIN_CLK> 0
|
||||
bs_explorer> jtag_set_spi_mosi_pin 0 <PIN_MOSI> 0
|
||||
bs_explorer> jtag_set_spi_miso_pin 0 <PIN_MISO> 0
|
||||
bs_explorer> jtag_spi_cs 0 <PIN_CS> 0
|
||||
bs_explorer> jtag_spi_clk 0 <PIN_CLK> 0
|
||||
bs_explorer> jtag_spi_mosi 0 <PIN_MOSI> 0
|
||||
bs_explorer> jtag_spi_miso 0 <PIN_MISO> 0
|
||||
|
||||
# 5. Read the flash JEDEC ID (0x9F + 3 dummies)
|
||||
bs_explorer> jtag_spi_rd_wr 9F000000
|
||||
bs_explorer> jtag_spi_xfer 9F000000
|
||||
```
|
||||
|
||||
A minimal example script is provided in `scripts/example_script.txt`.
|
||||
@@ -101,9 +101,9 @@ via BSCAN proxy) lives in [`doc/tutorial.md`](doc/tutorial.md).
|
||||
| Category | Commands |
|
||||
|----------|----------|
|
||||
| Script control | `set`, `print`, `print_env_var`, `if`, `goto`, `call`, `return`, `rand`, `init_array`, `system`, `pause` |
|
||||
| Probe / chain | `jtag_get_probes_list`, `jtag_open_probe`, `jtag_init_scan`, `jtag_autoinit`, `jtag_get_nb_of_devices`, `jtag_get_devices_list` |
|
||||
| BSDL / pins | `jtag_load_bsdl`, `jtag_get_pins_list`, `jtag_set_mode`, `jtag_set_pin_dir`, `jtag_set_pin_state`, `jtag_get_pin_state`, `jtag_push_pop` |
|
||||
| I²C / MDIO / SPI over BS pins | `jtag_set_i2c_*_pin`, `jtag_i2c_rd`, `jtag_i2c_wr`, `jtag_set_mdio_*_pin`, `jtag_mdio_rd`, `jtag_mdio_wr`, `jtag_set_spi_*_pin`, `jtag_spi_rd_wr` |
|
||||
| Probe / chain | `jtag_probes`, `jtag_open`, `jtag_scan`, `jtag_autoinit`, `jtag_ndev`, `jtag_devices` |
|
||||
| BSDL / pins | `jtag_bsdl`, `jtag_pins`, `jtag_mode`, `jtag_pin_dir`, `jtag_pin_set`, `jtag_pin_get`, `jtag_push_pop` |
|
||||
| I²C / MDIO / SPI over BS pins | `jtag_i2c_scl`, `jtag_i2c_sda`, `jtag_i2c_rd`, `jtag_i2c_wr`, `jtag_mdio_mdc`, `jtag_mdio_io`, `jtag_mdio_rd`, `jtag_mdio_wr`, `jtag_spi_cs/mosi/miso/clk`, `jtag_spi_xfer` |
|
||||
| Misc | `help`, `?`, `version`, `exit` |
|
||||
|
||||
Use `help <command>` for per-command help.
|
||||
|
||||
Reference in New Issue
Block a user