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

  • 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

  • I have the exact same problem. Jlink CDC UART Ports on both COM6 and COM7.

    Tried on two different windows machines.

    HW used is nRF52840 DK, version 3.0.3, serial 1050210048

    Interestingly, I can still flash using segger embedded studio but nRF Sniffer does not work.

    I can also not flash using the normal programmer nor rfGo Studio.

    I downloaded j-link-ob-sam3u128-v2-nordicsemi-170724.bin and dropped it in the mounted drive but it does not update.

    FAIL.TXT tells me that "The currently active SWD interface does not support MSD drag and drop"

  • Hi,

    Please make a new ticket in the future.

    Unfortunately, there are some issues with the nRF52840 v3.0.x, because of the new interface MCU chip. They use nRF5340, while the old DKs used a Microchip IC (sam3u128).

    Which is also why you cannot flash the firmware made for the old interface MCU on the new one. The firmware for the new interface MCU is not available for download at the time.

    I will ask the developers about the current status, but I know that there is an issue with nRF Sniffer and a few other things not working properly on the new DKs.

    Best regards,

    Michal

  • Sorry for stealing the ticket, just wanted to inform you all that it is a general problem.

    Thanks for your input. Looking forward to hearing from you again in the matter.

    /Ola

  • 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

Related