Skip to content

Commit 32d8083

Browse files
committed
exporter: add jtagd auto-detect-filter value to filter usb blaster devices
This filter of jtagd is only available for Blaster devices. However in combination with the hwsf preload library it will work in mixed setups.
1 parent d07a5cc commit 32d8083

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

labgrid/remote/exporter.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,10 @@ def _start(self, start_params):
396396

397397
cmd = f"{self.local.jtagd_cmd} --foreground --port {self.jtagd_port} --config {self.cfg_tempfile.name}"
398398

399+
# jtagd can filter Altera USB-Blaster devices by serial
400+
if self.local.serial_short:
401+
cmd += f" --auto-detect-filter {self.local.serial_short}"
402+
399403
self.logger.info("starting jtagd for %s on port %s with command LD_PRELOAD+=%s HWSF_DEV=%s %s",
400404
self.local.device.sys_name, self.jtagd_port, lib_path,
401405
my_env['HWSF_DEV'], cmd)

0 commit comments

Comments
 (0)