From: Marc S. <de...@za...> - 2020-11-03 22:56:04
|
Hi Antonio, the command is not deprecated but the use of "USB addresses" is marked as deprecated in the SEGGER software. The serial number should be used instead, if possible. I pushed a patch [1] to fix the confusion. Best regards, Marc [1] http://openocd.zylin.com/#/c/5918/ On Sun, 2020-11-01 at 10:29 +0100, Antonio Borneo wrote: > Hi Marc, > > in commit 442f1540d506 ("Improve J-Link driver and introduce > libjaylink.") http://openocd.zylin.com/2598/ merged before v0.10.0- > rc1 > you added in doc/openocd.texi > +@deffn {Config} {jlink usb} <@option{0} to @option{3}> > +Set the USB address of the interface, in case more than one adapter > is connected > +to the host. If not specified, USB addresses are not considered. > Device > +selection via USB address is deprecated and the serial number should > be used > +instead. > > So the command "jlink usb" is deprecated in the documentation, but > there is no run-time warning if someone uses it. > What do you suggest to do with it? > - add a DEPRECATED message in the code, to drop the command in the > future? > - drop the command right now? > - drop the deprecation in the documentation? > > Whatever you think is more appropriate to make openocd consistent, I > would like to see it applied in v0.11.0. > If you have no time to prepare and submit a patch I can do it, > following your advice. > > Thanks, > Antonio |