cmsisDAP: allows to select interface number

This commit is contained in:
Gwenhael Goavec-Merou
2022-08-29 21:00:32 +02:00
parent 61e959f93d
commit 27309d4931
6 changed files with 34 additions and 11 deletions
+2 -1
View File
@@ -120,7 +120,8 @@ void Jtag::init_internal(cable_t &cable, const string &dev, const string &serial
break;
case MODE_CMSISDAP:
#ifdef ENABLE_CMSISDAP
_jtag = new CmsisDAP(cable.config.vid, cable.config.pid, _verbose);
_jtag = new CmsisDAP(cable.config.vid, cable.config.pid,
cable.config.index, _verbose);
break;
#else
std::cerr << "Jtag: support for cmsisdap was not enabled at compile time" << std::endl;