Hey,
I have a nrf9160 DK and I am trying to redirect the console output from uart0 to uart2. I change the overlay file as follows:

I am getting this error:
...\build\zephyr\include\generated\devicetree_generated.h:11265:38: error: 'DT_N_S_soc_S_peripheral_40000000_S_uart_a000_P_current_speed' undeclared here (not in a function); did you mean 'DT_N_S_soc_S_peripheral_40000000_S_uart_9000_P_current_speed'?
11265 | #define DT_N_NODELABEL_uart2 DT_N_S_soc_S_peripheral_40000000_S_uart_a000
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\v2.4.0\zephyr\include\zephyr\devicetree.h:4051:29: note: in definition of macro 'DT_CAT3'
4051 | #define DT_CAT3(a1, a2, a3) a1 ## a2 ## a3
| ^~
C:\v2.4.0\zephyr\drivers\serial\uart_nrfx_uarte.c:1946:41: note: in expansion of macro 'DT_PROP'
1946 | #define UARTE_PROP(idx, prop) DT_PROP(UARTE(idx), prop)
| ^~~~~~~
C:\v2.4.0\zephyr\include\zephyr\devicetree.h:4049:24: note: in expansion of macro 'DT_N_NODELABEL_uart2'
4049 | #define DT_CAT(a1, a2) a1 ## a2
| ^~
C:\v2.4.0\zephyr\include\zephyr\devicetree.h:192:29: note: in expansion of macro 'DT_CAT'
192 | #define DT_NODELABEL(label) DT_CAT(DT_N_NODELABEL_, label)
| ^~~~~~
C:\v2.4.0\zephyr\drivers\serial\uart_nrfx_uarte.c:1944:41: note: in expansion of macro 'DT_NODELABEL'
1944 | #define UARTE(idx) DT_NODELABEL(uart##idx)
| ^~~~~~~~~~~~
C:\v2.4.0\zephyr\drivers\serial\uart_nrfx_uarte.c:1946:49: note: in expansion of macro 'UARTE'
1946 | #define UARTE_PROP(idx, prop) DT_PROP(UARTE(idx), prop)
| ^~~~~
C:\v2.4.0\zephyr\drivers\serial\uart_nrfx_uarte.c:2020:29: note: in expansion of macro 'UARTE_PROP'
2020 | .baudrate = UARTE_PROP(idx, current_speed), \
| ^~~~~~~~~~
C:\v2.4.0\zephyr\drivers\serial\uart_nrfx_uarte.c:1975:17: note: in expansion of macro 'UARTE_CONFIG'
1975 | UARTE_CONFIG(idx), \
| ^~~~~~~~~~~~
C:\v2.4.0\zephyr\drivers\serial\uart_nrfx_uarte.c:2069:1: note: in expansion of macro 'UART_NRF_UARTE_DEVICE'
2069 | UART_NRF_UARTE_DEVICE(2);
| ^~~~~~~~~~~~~~~~~~~~~
What am I missing? Why I am getting this error?
EDIT:
I should add that the code was working fine before I redirected the Zephyr console output.
Thanks for the help.