Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF52840 UART1 and log config?

How can configure NRF_LOG_UART to use UART0 or UART1 for  nRF52840?  I cant see any configuration which uart NRF_LOG_BACKEND_UART will use

As per spec nRF52840 should have 2 UARTs with EasyDMA, but in sdk_config.h> nRF_Drivers>UART_ENABLED only UART0 has option for EasyDMA (UART0_CONFIG_USE_EASY_DMA)? Where is the error in the specs or in the sdk_config.h that comes with examples?

In NRFX_UART_ENABLED section of sdk_config.h>nRF_Drivers I see only NRFX_UART0_ENABLED, don’t see anything for UART1?

Is there any example that uses both uarts for SDK17*?

Thanks

P.S. I’m working with SDK17.0.0, but checked in SDK17.0.2 the sdk_config files are same regarding log and uart sections for bsp and template examples.

Parents
  • Hi

    By default, the UART backend uses the UARTE0 instance. No, we do not have any example projects using both of the UARTE instances, as this would be specific to the nRF52840 and nRF52833 chips we have chosen not to focus on this. If you use the UARTE1 instance for your application, and leave the UARTE0 as is for backend logging it should be pretty straight-forward.

    Best regards,

    Simon

Reply
  • Hi

    By default, the UART backend uses the UARTE0 instance. No, we do not have any example projects using both of the UARTE instances, as this would be specific to the nRF52840 and nRF52833 chips we have chosen not to focus on this. If you use the UARTE1 instance for your application, and leave the UARTE0 as is for backend logging it should be pretty straight-forward.

    Best regards,

    Simon

Children
No Data
Related