nRF52 reports two JLink CDC UART Ports

Hi

For some reasons my Windows 10 laptop reports two JLink CDC UART Ports when I connect one of my nRF52SDK boards.My plan is to use this board with nrf Sniffer / Wirshark, but that does not work when I have two ports for my nrf52DK.

Does anyone know how to fix this issue?

KInd regards

Peder Olav

Parents
  • Hello Peder Olav,

    Does this happen only on that single machine?

    Just to make sure, it is the old nRF52 DK, not for example nRF52840 DK? Please also provide me with the DK version number.

    What kind of errors do you get? Any screenshots?

    What you could try doing is reflashing the J-Link Interface MCU firmware (as it is documented here) and see if that solves the issue.

    Best regards,

    Michal

  • Hi Michal

    At the time, I can only test with one single machine. But I have got two "new" nrf52DK, which have the same behaviour.

    1) PCA 10040, 3.0.0, 2022.12, 1050306386

    2) PCA 10040, 3.0.0, 2022.12, 1050377478

    When I connect I get these ports up in Device Manager:

    I did a reflashing with the latest FW I found on the web site (j-link-ob-sam3u128-v2-nordicsemi-170724.bin). It did not seem to change anything. Is there a way to read out the FW version of the nrf52DK?

    I can program the nrf52DK with e.g. nRF Programmer 3.0.3. But when I try to use this with the nRF Sniffer, I get the following error in Wireshark:

    Here is from the nRF Sniffer log file:

    13-Sep-2022 08:10:21 (+0200) INFO: --------------------------------------------------------
    13-Sep-2022 08:10:21 (+0200) INFO: Software version: 4.1.0
    13-Sep-2022 08:10:21 (+0200) INFO: Started PID 20796
    13-Sep-2022 08:10:21 (+0200) INFO: Namespace(capture=False, extcap_interfaces=True, extcap_interface=None, extcap_dlts=False, extcap_config=False, extcap_capture_filter=None, fifo=None, extcap_control_in=None, extcap_control_out=None, extcap_version='3.6', device='', baudrate=None, only_advertising=False, only_legacy_advertising=False, scan_follow_rsp=False, scan_follow_aux=False, coded=False)
    13-Sep-2022 08:10:21 (+0200) INFO: Opening serial port COM8
    13-Sep-2022 08:10:21 (+0200) INFO: closing UART
    13-Sep-2022 08:10:21 (+0200) INFO: Opening serial port COM8
    13-Sep-2022 08:10:21 (+0200) INFO: closing UART
    13-Sep-2022 08:10:21 (+0200) INFO: Opening serial port COM9
    13-Sep-2022 08:10:22 (+0200) INFO: closing UART
    13-Sep-2022 08:10:22 (+0200) INFO: Opening serial port COM6
    13-Sep-2022 08:10:22 (+0200) ERROR: Error opening UART Cannot configure port, something went wrong. Original message: OSError(22, 'The parameter is incorrect.', None, 87)
    Traceback (most recent call last):
    File "C:\Users\s29298\AppData\Roaming\Wireshark\extcap\SnifferAPI\Packet.py", line 74, in __init__
    self.uart = UART.Uart(portnum, baudrate)
    File "C:\Users\s29298\AppData\Roaming\Wireshark\extcap\SnifferAPI\UART.py", line 130, in __init__
    self.ser.baudrate = baudrate
    File "C:\Python310\lib\site-packages\serial\serialutil.py", line 299, in baudrate
    self._reconfigure_port()
    File "C:\Python310\lib\site-packages\serial\serialwin32.py", line 222, in _reconfigure_port
    raise SerialException(
    serial.serialutil.SerialException: Cannot configure port, something went wrong. Original message: OSError(22, 'The parameter is incorrect.', None, 87)
    13-Sep-2022 08:10:22 (+0200) INFO: Opening serial port None
    13-Sep-2022 08:10:22 (+0200) INFO: Opening serial port COM6
    13-Sep-2022 08:10:22 (+0200) ERROR: Error opening UART Cannot configure port, something went wrong. Original message: OSError(22, 'The parameter is incorrect.', None, 87)
    Traceback (most recent call last):
    File "C:\Users\s29298\AppData\Roaming\Wireshark\extcap\SnifferAPI\Packet.py", line 74, in __init__
    self.uart = UART.Uart(portnum, baudrate)
    File "C:\Users\s29298\AppData\Roaming\Wireshark\extcap\SnifferAPI\UART.py", line 130, in __init__
    self.ser.baudrate = baudrate
    File "C:\Python310\lib\site-packages\serial\serialutil.py", line 299, in baudrate
    self._reconfigure_port()
    File "C:\Python310\lib\site-packages\serial\serialwin32.py", line 222, in _reconfigure_port
    raise SerialException(
    serial.serialutil.SerialException: Cannot configure port, something went wrong. Original message: OSError(22, 'The parameter is incorrect.', None, 87)

    When I use my older nRF52 DK,(PCA10040,1.2.4, 2019.19, 682250149), the device manager shows only one COM port and this DK works with the nRF Sniffer.

    I have a feeling there is something with the nRF52DK MCU firmware.

    Best regards

    Peder Olav

Reply
  • Hi Michal

    At the time, I can only test with one single machine. But I have got two "new" nrf52DK, which have the same behaviour.

    1) PCA 10040, 3.0.0, 2022.12, 1050306386

    2) PCA 10040, 3.0.0, 2022.12, 1050377478

    When I connect I get these ports up in Device Manager:

    I did a reflashing with the latest FW I found on the web site (j-link-ob-sam3u128-v2-nordicsemi-170724.bin). It did not seem to change anything. Is there a way to read out the FW version of the nrf52DK?

    I can program the nrf52DK with e.g. nRF Programmer 3.0.3. But when I try to use this with the nRF Sniffer, I get the following error in Wireshark:

    Here is from the nRF Sniffer log file:

    13-Sep-2022 08:10:21 (+0200) INFO: --------------------------------------------------------
    13-Sep-2022 08:10:21 (+0200) INFO: Software version: 4.1.0
    13-Sep-2022 08:10:21 (+0200) INFO: Started PID 20796
    13-Sep-2022 08:10:21 (+0200) INFO: Namespace(capture=False, extcap_interfaces=True, extcap_interface=None, extcap_dlts=False, extcap_config=False, extcap_capture_filter=None, fifo=None, extcap_control_in=None, extcap_control_out=None, extcap_version='3.6', device='', baudrate=None, only_advertising=False, only_legacy_advertising=False, scan_follow_rsp=False, scan_follow_aux=False, coded=False)
    13-Sep-2022 08:10:21 (+0200) INFO: Opening serial port COM8
    13-Sep-2022 08:10:21 (+0200) INFO: closing UART
    13-Sep-2022 08:10:21 (+0200) INFO: Opening serial port COM8
    13-Sep-2022 08:10:21 (+0200) INFO: closing UART
    13-Sep-2022 08:10:21 (+0200) INFO: Opening serial port COM9
    13-Sep-2022 08:10:22 (+0200) INFO: closing UART
    13-Sep-2022 08:10:22 (+0200) INFO: Opening serial port COM6
    13-Sep-2022 08:10:22 (+0200) ERROR: Error opening UART Cannot configure port, something went wrong. Original message: OSError(22, 'The parameter is incorrect.', None, 87)
    Traceback (most recent call last):
    File "C:\Users\s29298\AppData\Roaming\Wireshark\extcap\SnifferAPI\Packet.py", line 74, in __init__
    self.uart = UART.Uart(portnum, baudrate)
    File "C:\Users\s29298\AppData\Roaming\Wireshark\extcap\SnifferAPI\UART.py", line 130, in __init__
    self.ser.baudrate = baudrate
    File "C:\Python310\lib\site-packages\serial\serialutil.py", line 299, in baudrate
    self._reconfigure_port()
    File "C:\Python310\lib\site-packages\serial\serialwin32.py", line 222, in _reconfigure_port
    raise SerialException(
    serial.serialutil.SerialException: Cannot configure port, something went wrong. Original message: OSError(22, 'The parameter is incorrect.', None, 87)
    13-Sep-2022 08:10:22 (+0200) INFO: Opening serial port None
    13-Sep-2022 08:10:22 (+0200) INFO: Opening serial port COM6
    13-Sep-2022 08:10:22 (+0200) ERROR: Error opening UART Cannot configure port, something went wrong. Original message: OSError(22, 'The parameter is incorrect.', None, 87)
    Traceback (most recent call last):
    File "C:\Users\s29298\AppData\Roaming\Wireshark\extcap\SnifferAPI\Packet.py", line 74, in __init__
    self.uart = UART.Uart(portnum, baudrate)
    File "C:\Users\s29298\AppData\Roaming\Wireshark\extcap\SnifferAPI\UART.py", line 130, in __init__
    self.ser.baudrate = baudrate
    File "C:\Python310\lib\site-packages\serial\serialutil.py", line 299, in baudrate
    self._reconfigure_port()
    File "C:\Python310\lib\site-packages\serial\serialwin32.py", line 222, in _reconfigure_port
    raise SerialException(
    serial.serialutil.SerialException: Cannot configure port, something went wrong. Original message: OSError(22, 'The parameter is incorrect.', None, 87)

    When I use my older nRF52 DK,(PCA10040,1.2.4, 2019.19, 682250149), the device manager shows only one COM port and this DK works with the nRF Sniffer.

    I have a feeling there is something with the nRF52DK MCU firmware.

    Best regards

    Peder Olav

Children
Related