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

Connect UART to J-Link to access OpenThread CLI with nRF Connect SDK

My team is trying to acess OpenThread CLI over UART0 with the nRF Connect SDK OpenThread CLI sample with our custom board.

We have tested with a Nordic's nRF52840 DevKit and it works perfectly, however with our custom board using a J-Link which doesn't have RTS and CTS pins it isn't working.

We already tried the blinky example so we have ensured ourr power supply is OK, but we suspect that we need to disable UART hardware flow control in order to use a regular JLink, is this correct? In that case what configurations do we need?

Parents
  • Hi

    I'm sorry, I thought this was done in the config file but it seems I was mistaken when I went to make sure. Please add the following snippet as part of your UART initiatilization code before you enable the UART in order to disable flow control.

    struct uart_config cfg;
    uart_config_get(uart, &cfg);
    cfg.flow_ctrl = UART_CFG_FLOW_CTRL_NONE;
    uart_configure(uart,&cfg);

    Best regards,

    Simon

Reply
  • Hi

    I'm sorry, I thought this was done in the config file but it seems I was mistaken when I went to make sure. Please add the following snippet as part of your UART initiatilization code before you enable the UART in order to disable flow control.

    struct uart_config cfg;
    uart_config_get(uart, &cfg);
    cfg.flow_ctrl = UART_CFG_FLOW_CTRL_NONE;
    uart_configure(uart,&cfg);

    Best regards,

    Simon

Children
No Data
Related