This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF52840 DK change UART J2 to J3

Hi,

I found this example light_switch - SerialLog posted on nordic forum, when I downloaded on nrf52840 DK it worked without problems, but I want to put in nrf52840 Dongle.
I changed BOARD_PCA10056 to BOARD_PCA10059 in Preprocessor Definitions, I put #define RX_PIN_NUMBER  8 and #define TX_PIN_NUMBER  6 in header pca10059.h and for programming Dongle I used Segger j-link Pro(SWD). When programming is complete I connected Dongle in PC usb port  but I can't see COM Port in Device Manager even if in nrf Mesh app it appers.
After that I tried to programming Dongle with usbd_cdc_acm example like in previous procedure and it worked.
I understand that on nrf52840 DK the UART examples using programming usb port(J2) and the usbd_cdc_acm example usind nrf usb port(J3).
It is possible to change usb port to J3 in light_switch-serialLog?
If I made this change in example, maybe it can run on Dongle... or it's another way to do that to run on Dongle?

Kind regards,

Liv

Parents
  • Hi,

    Where exactly on the forum did you find that example? It would be much easier to figure things out if we know the full context.

    When programming is complete I connected Dongle in PC usb port  but I can't see COM Port in Device Manager even if in nrf Mesh app it appers.

    By this, do you mean that you do not get a COM port on the PC side, but through using the nRF Mesh smartphone app you can confirm that the device runs Bluetooth mesh successfully?

    Please note that the DK has an on-board interface MCU, with a USB to UART bridge. It provides a COM port UART device to the PC, and is connected to the nRF UART pins. That way, you get UART communication from PC to nRF, even though it uses UART pins on the nRF and USB on the PC.

    For the Dongle, on the other hand, the USB is connected directly to the nRF, as there is no interface MCU on the Dongle. That means communication between nRF52 Dongle and PC must use USB all the way, which means USB (and not UART) on the nRF as well.

    It is possible to change usb port to J3 in light_switch-serialLog?

    What J3 means depend on what board we are talking about. What board (Dongle, DK, other) are we talking about?

    Regards,
    Terje

Reply
  • Hi,

    Where exactly on the forum did you find that example? It would be much easier to figure things out if we know the full context.

    When programming is complete I connected Dongle in PC usb port  but I can't see COM Port in Device Manager even if in nrf Mesh app it appers.

    By this, do you mean that you do not get a COM port on the PC side, but through using the nRF Mesh smartphone app you can confirm that the device runs Bluetooth mesh successfully?

    Please note that the DK has an on-board interface MCU, with a USB to UART bridge. It provides a COM port UART device to the PC, and is connected to the nRF UART pins. That way, you get UART communication from PC to nRF, even though it uses UART pins on the nRF and USB on the PC.

    For the Dongle, on the other hand, the USB is connected directly to the nRF, as there is no interface MCU on the Dongle. That means communication between nRF52 Dongle and PC must use USB all the way, which means USB (and not UART) on the nRF as well.

    It is possible to change usb port to J3 in light_switch-serialLog?

    What J3 means depend on what board we are talking about. What board (Dongle, DK, other) are we talking about?

    Regards,
    Terje

Children
No Data
Related