UARTE to USB to PuTTY on nRF52840DK

Hi, I have strange issue with getting UARTE to USB to PuTTY to work on the 840 devkit.

I have the following config for the UARTE:

uarte_config_t uarte_config = {
    .txd_pin = 6,
    .rxd_pin = 8,
    .rts_pin = 5,
    .cts_pin = 7,
    .baudrate = UARTE_BAUD115200,
    .flow_control = UARTE_HW_CLOW_CONTROL_ENABLED,
    .parity = UARTE_PARITY_EXCLUDED,
};


And the following config on PuTTY:


UARTE messages are sent to transmit in a while loop (just for testing), and I see that the EVENTS_TXSTARTED and EVENTS_ENDTX are set to 1. The AMOUNT register in TXD is also at the correct number. I however dont get any messages in PuTTY (with this setup).

If I set the PuTTY speed down however, I am able to get characters into the terminal: The first section is at 90k Baud in PuTTY, and the the other section is at 50k Baud.


Are there any settings I am forgetting? Something in the J-Link?

Parents
  • Hi

    Can you double check that you've set the recommended settings for the PuTTY terminal? What sample project are you running when trying to see the logging information here? I assume you're using the J-Link and J2 connector on the DK as the interface here? How is the DK connected to the computer exactly? Is it connected to a USB hub, or do you have another USB dongle connected directly next to it? USB 3.0 devices cause a lot of noise if I recall correctly that might affect nearby ports.

    Best regards,

    Simon

  • I went through the settings, WRT UART settings I had enabled Flow Control (Which should be enabled if Im using Flow Control on the nRF?), and I dont see how the keyboard settings will have anything to do with the problem when Im not trying to send data to the device (yet), just receive from it.

    Im not running any sample projects, I have written the drivers and code using the MDK.

    The DK was connected through a USB pass through on my Keyboard, but I tried connecting it to the front panel on the computer aswell, but the results were the same. On the DK its connected to J2

Reply
  • I went through the settings, WRT UART settings I had enabled Flow Control (Which should be enabled if Im using Flow Control on the nRF?), and I dont see how the keyboard settings will have anything to do with the problem when Im not trying to send data to the device (yet), just receive from it.

    Im not running any sample projects, I have written the drivers and code using the MDK.

    The DK was connected through a USB pass through on my Keyboard, but I tried connecting it to the front panel on the computer aswell, but the results were the same. On the DK its connected to J2

Children
Related