UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Explorer
Explorer
227 Views
Registered: ‎10-12-2018

How to select given target device from multiple device

Jump to solution

I have two same (custom) FPGA board connected to my PC via a USB blaster. I want to setup these boards with TCL commands using an xsct console. How can I switch these boards? (using the targets command)

Here is the message:

xsct% targ -set -filter {name =~ "ARM*#1"}
more than one targets found with "name =~ "ARM*#1"":
     6  ARM Cortex-A9 MPCore #1 (Running)
    12  ARM Cortex-A9 MPCore #1 (Running)

I have tried targ -set -filter {name =~ "ARM*#1"} -index <with several values> with no success.

How can I switch between these two targets?

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
Explorer
Explorer
207 Views
Registered: ‎10-12-2018

Re: How to select given target device from multiple device

Jump to solution

The following TCL process can handle this issue

proc switch_arm { {index 0} } {
    set arm [lindex [targ -filter {name =~ "ARM*#1"} -target-properties] $index ]
    set idx_of_target_id [lsearch $arm target_id]
    incr idx_of_target_id
    set target_id [lindex $arm $idx_of_target_id]
    targ -set $target_id
}

View solution in original post

1 Reply
Explorer
Explorer
208 Views
Registered: ‎10-12-2018

Re: How to select given target device from multiple device

Jump to solution

The following TCL process can handle this issue

proc switch_arm { {index 0} } {
    set arm [lindex [targ -filter {name =~ "ARM*#1"} -target-properties] $index ]
    set idx_of_target_id [lsearch $arm target_id]
    incr idx_of_target_id
    set target_id [lindex $arm $idx_of_target_id]
    targ -set $target_id
}

View solution in original post