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

How to map nrf_cli to custom UARTE

Hi,

I am using the radio test example code where in the interface is through cli. Our custom board has a serial port in UARTE1 instance

how do I configure the cli to work with UARTE1 instance?

What are the configurations and initializations to be done for this?

Parents
  • It looks to me to be handled in NRF_CLI_UART_DEF(), the second parameter is the UART instance (change from '0' to '1'). Also set #define UART1_ENABLED 1 in sdk_config.h. 

    But not sure if I understand what you mean by "Our custom board has a serial port in UARTE1 instance", you can modify the pins for UARTE0, there is no need to change from UARTE0 to UARTE1 just because you use different pins.

    Kenneth

Reply
  • It looks to me to be handled in NRF_CLI_UART_DEF(), the second parameter is the UART instance (change from '0' to '1'). Also set #define UART1_ENABLED 1 in sdk_config.h. 

    But not sure if I understand what you mean by "Our custom board has a serial port in UARTE1 instance", you can modify the pins for UARTE0, there is no need to change from UARTE0 to UARTE1 just because you use different pins.

    Kenneth

Children
No Data
Related