The UART and UARTE peripherals share the same ID (2), and only one of these can be enabled at a time.
How do you enable only one of these peripherals?
The register blocks are mapped to the same addresses. In the nRF52 this is:
#define NFR_UART0 ((NRF)UART_Type *) NRF_UART0_BASE // 0x40002000
#define NFR_UARTE0 ((NRF)UARTE_Type *) NRF_UARTE0_BASE // 0x40002000
The ENABLE register has the same offset (0x0500) in both UART and UARTE register block definitions.
Do UART0 and UARTE have separate register blocks that are mapped to the same addresses?
If so, then when writing to the ENABLE register, which UART peripheral are you writing to?
Are different values written to the ENABLE register to select which of UART/UARTE is enabled?