Locating J-Link emulator serial number in Windows registry

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Locating J-Link emulator serial number in Windows registry

    Hi

    A question regarding J-Link driver enumeration in Windows machines, when ignoring serial numbers.

    We are using J-Link OB adapters (SAM3U2CA, option with CDC uart) in our development boards, and in production testing we have the situation of several of these adapters being connected at the same time.
    The automated test utility reads the device IDs and COM ports of each adapter from the windows registry, they enumerate as composite devices (VID_1366&PID_0105) with the S/N respectively and the J-Link driver as (VID_1366&PID_0105&MI_02). The test utility correctly autodetects everything, no problems so far.

    Due to external tool constraints, we had to force windows to ignore the hardware serial numbers when enumerating devices (IgnoreHWSerNum flag). As a result, the composite device does not enumerate with its S/N anymore (as expected), but as a usbcgp with a device ID of this type: VID_1366&PID_0105\7&BE65B57&0&3. There is then no way of distinguishing between the adapters (s/N) and their respective COM ports.

    The J-Link commander and J-Link configurator are able to detect all serial numbers correctly.

    Since we still need to be able to autodetect both COM ports and serial numbers, is there any way to retrieve the serial numbers of the connected emulators from the registry (or some call to the JlinkARM.dll) ?

    Thanks
  • Hi,

    sorry for the delay in response.
    (or some call to the JlinkARM.dll)

    Are you referring to the J-Link SDK?
    As the API is not available to the public, I cannot go into much detail, but if you search for "SN" in the SDK Manual (UM8002) you will only find one function, located in chapter 4.3 .

    I will pass the question to my colleagues in order to answer to question if it is possible via COM port.

    Best regards,
    Niklas
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.