NRF9160KD UART configuration

hello all,

nRF Connect SDK: 1.5.0

nRF Connect Toolchain: 1.5.0

Desktop OS: Windows 10

I'm currently using nrf9160dk to explore the GNSS features. I take a look at the sample example of gps and was able to read NMEA protocols out of the VCOM via micro USB port. The next step I want to do is to route the output of NMEA code to the external UART pins which are P0.28, P0.29 for TX/RX.

I also read the thread, 

https://devzone.nordicsemi.com/f/nordic-q-a/45476/connecting-uart1-to-a-periph-on-nrf9160-dk?ReplySortBy=CreatedDate&ReplySortOrder=Ascending

So I try to configure the 

CONFIG_BOARD_PCA10090_UART0_ARDUINO=y

But I checked the dependency file in zephyr_config.c, it seems there is not such parameter anymore. I guess the name has been changed since the thread is 2-yr old. So what's the current parameter I should change?

in config.c file the params related to UART are

GEN_ABSOLUTE_SYM(CONFIG_UART_INTERRUPT_DRIVEN, 1);
GEN_ABSOLUTE_SYM(CONFIG_HAS_HW_NRF_UARTE0, 1);
GEN_ABSOLUTE_SYM(CONFIG_HAS_HW_NRF_UARTE1, 1);
GEN_ABSOLUTE_SYM(CONFIG_HAS_HW_NRF_UARTE2, 1);
GEN_ABSOLUTE_SYM(CONFIG_HAS_HW_NRF_UARTE3, 1);
GEN_ABSOLUTE_SYM(CONFIG_UART_CONSOLE_ON_DEV_NAME, 1);
GEN_ABSOLUTE_SYM(CONFIG_UART_CONSOLE, 1);
GEN_ABSOLUTE_SYM(CONFIG_UART_CONSOLE_INIT_PRIORITY, 60);
GEN_ABSOLUTE_SYM(CONFIG_UART_NRFX, 1);
GEN_ABSOLUTE_SYM(CONFIG_UART_0_NRF_UARTE, 1);
GEN_ABSOLUTE_SYM(CONFIG_UART_0_ENHANCED_POLL_OUT, 1);
GEN_ABSOLUTE_SYM(CONFIG_UART_0_INTERRUPT_DRIVEN, 1);
GEN_ABSOLUTE_SYM(CONFIG_UART_0_NRF_TX_BUFFER_SIZE, 32);
GEN_ABSOLUTE_SYM(CONFIG_UART_1_NRF_UARTE, 1);
GEN_ABSOLUTE_SYM(CONFIG_UART_1_INTERRUPT_DRIVEN, 1);
GEN_ABSOLUTE_SYM(CONFIG_UART_1_ENHANCED_POLL_OUT, 1);
GEN_ABSOLUTE_SYM(CONFIG_UART_1_NRF_TX_BUFFER_SIZE, 32);
GEN_ABSOLUTE_SYM(CONFIG_NRF_UARTE_PERIPHERAL, 1);

Another question I have is, to change the serial comm baudrate, what's the proper method to do that?

Related