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

UARTE multiple instance with new nrfx exam

Hello,

I would like to use the two UARTEs available on nRF52840 with external asynchronous chips.

I've started a new development with the last sdk (15.3.0) and would like to know if there is a clear example on how to initialize the peripherals.

I'd like to use the UARTES on interrupt but I can't figure out how to use the new nrfx drivers.

Best regards,

JY

Parents Reply Children
  • Hi Jean-Yves

    The reason for this is that the SDK has a 'legacy' layer, that converts the old pre-NRFX defines to the new NRFX defines. 

    In the case of the UART this is the UART0_ENABLED and UART1_ENABLED define that you can also find in sdk_config.h

    If you disable UART0_ENABLED it should cause a build error, and if you enabled UART1_ENABLED you should be able to use both of the UART's. 

    Best regards
    Torbjørn

Related