This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Use UART1 for console and shell instead of UART0, on Nordic sample Matter project Template

Hi,

I'm trying to use UART1 for console and shell, for example to be able to log messages on VCOM0 linked to UART1 of my nRF5340 DK board. The example that I'm testing is Matter template example (https://github.com/nrfconnect/sdk-nrf/tree/v1.9.99-dev1/samples/matter/template). In order to use UART1, I added to the Matter Template project an overlay file to activate UART1 and to link it to console and shell. This file contains the following lines :

/ {

chosen {
zephyr,console = &uart1;
zephyr,shell-uart = &uart1;
};
};

&uart1 {
status = "okay";
};

However, console and shell output does not go to UART1. The only two messages that are printed are :

*** Booting Zephyr OS build v2.7.99-ncs1-2212-g038a2de883a0  ***
Booting (0x1008800).

I decided as well to set CONFIG_TFM_SECURE_UART1 to 'n' because it was activated. But I didn't solve anything. UART1 seems not working.

I attach to this mail the project zipped. You will find my overlay file called 'uart1.overlay' as well as the build folder named 'build_uart1'template.zip

Thanks in advance !

Related