script: add jtag_close to release the current probe
Lets a session hand a probe back (frees its USB handle) without opening another, e.g. to flash two FPGAs on different probes in turn: jtag_close, then jtag_open the next one and jtag_autoinit. Mirrors the DeInit teardown jtagcore_loaddriver already does when switching drivers. Also fix the help printer: no-arg commands (whose params slot is "") printed an empty body because "" was treated as the terminator. Params are now optional and the description always shows. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -107,7 +107,7 @@ the full walkthrough (probe → proxy → flash) lives in
|
||||
| Category | Commands |
|
||||
|----------|----------|
|
||||
| Script control | `set`, `print`, `print_env_var`, `if`, `goto`, `call`, `return`, `rand`, `init_array`, `system`, `pause` |
|
||||
| Probe / chain | `jtag_probes`, `jtag_open`, `jtag_scan`, `jtag_autoinit`, `jtag_ndev`, `jtag_devices` |
|
||||
| Probe / chain | `jtag_probes`, `jtag_open`, `jtag_close`, `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 (EXTEST) | `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` |
|
||||
| FPGA registry | `fpga_list`, `fpga_info` |
|
||||
|
||||
Reference in New Issue
Block a user