Skip to content

program_fpga.py fails when other boards are connected

When trying to program the cvp13 with other xilinx devices connected to the same HW server I get the following error:

I think this is an easy fix I am just noting it here so I don't forget..


>>>>>>> PROGRAMMING THE FPGA <<<<<<<
source /media/data_hdd/Xilinx/Vivado/2021.1/settings64.sh && vivado -mode batch -source /home/andrew/0xbefe/scripts/dev/vivado_program_fpga.tcl -tclargs /home/andrew/0xbefe/scripts/resources/cvp13_ge21.bit localhost:3121

****** Xilinx hw_server v2021.1
  **** Build date : Jun 10 2021 at 20:11:57
    ** Copyright 1986-2021 Xilinx, Inc. All Rights Reserved.

INFO: hw_server application started
INFO: Use Ctrl-C to exit hw_server application

Cannot create listening port tcp::3121: Socket bind error. Address already in use

****** Vivado v2021.1 (64-bit)
  **** SW Build 3247384 on Thu Jun 10 19:36:07 MDT 2021
  **** IP Build 3246043 on Fri Jun 11 00:30:35 MDT 2021
    ** Copyright 1986-2021 Xilinx, Inc. All Rights Reserved.

source /home/andrew/0xbefe/scripts/dev/vivado_program_fpga.tcl
# set BITFILE [lindex $argv 0]
# open_hw_manager
# connect_hw_server -url [lindex $argv 1]
INFO: [Labtools 27-2285] Connecting to hw_server url TCP:localhost:3121
INFO: [Labtools 27-3415] Connecting to cs_server url TCP:localhost:3042
INFO: [Labtools 27-3414] Connected to existing cs_server.
# open_hw_target
INFO: [Labtoolstcl 44-466] Opening hw_target localhost:3121/xilinx_tcf/Digilent/210308AB9ACD
# current_hw_device [lindex [get_hw_devices] 0]
# set_property PROGRAM.FILE [lindex $argv 0] [lindex [get_hw_devices] 0]
# program_hw_devices [lindex [get_hw_devices] 0]
ERROR: [Labtools 27-3303] Incorrect bitstream assigned to device. Bitfile is incompatible for this device.
INFO: [Labtools 27-3164] End of startup status: HIGH
ERROR: [Common 17-39] 'program_hw_devices' failed due to earlier errors.

    while executing
"program_hw_devices [lindex [get_hw_devices] 0]"
    (file "/home/andrew/0xbefe/scripts/dev/vivado_program_fpga.tcl" line 12)
INFO: [Common 17-206] Exiting Vivado at Thu Jan  5 14:27:21 2023...
Programming DONE
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information