diff --git a/apollo_fpga/commands/cli.py b/apollo_fpga/commands/cli.py index 8dfa510..855a456 100755 --- a/apollo_fpga/commands/cli.py +++ b/apollo_fpga/commands/cli.py @@ -84,10 +84,12 @@ 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()}") - with device.jtag as jtag: - programmer = device.create_jtag_programmer(jtag) - flash_uid = programmer.read_flash_uid() - logging.info(f"\tFlash UID: {flash_uid:016x}") + if args.force_offline: + device.force_fpga_offline() + with device.jtag as jtag: + programmer = device.create_jtag_programmer(jtag) + flash_uid = programmer.read_flash_uid() + logging.info(f"\tFlash UID: {flash_uid:016x}") def print_chain_info(device, args): """ Command that prints information about devices connected to the scan chain to the console. """