I'm using the nRF5340 (currently nRF5340DK with custom hardware following shortly) and NCS 1.6.0. I'm working on a project that needs at least two UARTs and one SPI master interface, but I haven't been able to find an example to base this on and I can't seem to find the right combination of settings. It looks like there may also be considerations like shared resources between UART/SPI/TWI that must be configured correctly. I've also noticed the comment in v1.6.0/nrf/samples/CMakeLists.txt that says we can’t use UART1 because it’s used by the TF-M secure application. We can move debug logging from UART0 to RTT if needed to free up the UART0 resource. Is there an example that I've overlooked that clearly shows how to configure this? Or can someone explain what needs to be done? Configuring serial interfaces should be relatively straightforward but we just can't seem to get it right and I'm having a hard time tracking down what exactly is misconfigured.
If it matters, we may also need a separate configuration with one UART, one SPI master, and one TWI master. I'm hoping/assuming that will be straightforward once we see how to implement 2xUART and 1xSPI master but if there are any other tricky settings to know about if we need to replace one UART with a TWI master, I'd be interested in hearing about those settings.
Thanks.