Skip to content

Commit

Permalink
cli: unconfigure FPGA before reading flash UID
Browse files Browse the repository at this point in the history
  • Loading branch information
mossmann committed Jul 9, 2024
1 parent 0ca6bbe commit cc5a485
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apollo_fpga/commands/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ def print_device_info(device, args):
logging.info(f"\tSerial number: {device.serial_number}")
logging.info(f"\tFirmware version: {device.get_firmware_version()}")
logging.info(f"\tUSB API version: {device.get_usb_api_version_string()}")

ensure_unconfigured(device)
with device.jtag as jtag:
programmer = device.create_jtag_programmer(jtag)
flash_uid = programmer.read_flash_uid()
Expand Down

0 comments on commit cc5a485

Please sign in to comment.