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

Radio test example through USB UART CLI?

Dear all,

For EMI/EMC Test, we need the USB UART CLI functionality for example "Radio Test",

could you tell us how to implement it or any example can do that?

Thanks.

Parents Reply Children
  • HI Conan, 

    do you mean that you are using a USB-TTL cable to connect the nRF52840 to the computer or do you have a USB-serial post chip on the Device under test (DUT)?

    If its the former, then you will have to modify the RX and TX pin numbers in cli_init() to the pins that are available on the DUT.

    static void cli_init(void)
    {
        ret_code_t ret;
    
    
        nrf_drv_uart_config_t uart_config = NRF_DRV_UART_DEFAULT_CONFIG;
    
        uart_config.pseltxd = TX_PIN_NUMBER;
        uart_config.pselrxd = RX_PIN_NUMBER;
        uart_config.hwfc    = NRF_UART_HWFC_DISABLED;
        ret                 = nrf_cli_init(&m_cli_uart, &uart_config, true, true, NRF_LOG_SEVERITY_INFO);
        APP_ERROR_CHECK(ret);
    }

    After modifying the pin numbers you should be able to use Putty with the settings described under UART and USB settings

    Best regards

    Bjørn

Related