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

How to configue an external UART from nRF9160 dk ?

Hi,

I use the app "asset-tracker", and i would like to configure an external uart to connect a sensor to the board.

I modifed the code but i can't detect any new COM from the device manager.

Here, what i made like modification :

in the nrf9160dk_nrf9160ns.dts file :

in the main.c file :

I think the problem comes from the file prj.conf, all modifications i made in it, crash the app ... so i don't know what to add ...

I hope someone can help me Slight smile

Best Regards

Zita

Parents
  • Hi Zita

    For most of the nRF91 applications, the default software settings for UART0 and UART1 are that they are routed to VCOM0 and VCOM2 respectively. UART0 is the "primary" UART where you get the console data as well as data from the AT host library, while UART1 can be used for modem tracing when you have enabled the BSD_LIBRARY_TRACE_ENABLED configuration.

    Please check whether this configuration is enabled in your application or whether UART1 is used for something else. Please also try adding CONFIG_UART_1_NRF_UARTE=y to prj.conf as well.

    Best regards,

    Simon

Reply
  • Hi Zita

    For most of the nRF91 applications, the default software settings for UART0 and UART1 are that they are routed to VCOM0 and VCOM2 respectively. UART0 is the "primary" UART where you get the console data as well as data from the AT host library, while UART1 can be used for modem tracing when you have enabled the BSD_LIBRARY_TRACE_ENABLED configuration.

    Please check whether this configuration is enabled in your application or whether UART1 is used for something else. Please also try adding CONFIG_UART_1_NRF_UARTE=y to prj.conf as well.

    Best regards,

    Simon

Children
Related