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

LTE_BLE_GATEWAY - Error UART nrf9160 DK in SES

Hi,

I tried to build the lte_ble_gateway sample in SES, however it gives the error below regarding the UART.

Any suggestions how to resolve this issue?

Rebuilding 'zephyr/drivers/serial/libdrivers__serial.a' from solution 'build' in configuration 'Common'
1> Compiling 'uart_nrfx_uarte.c'
1> /home/jkst/connect/ncs/zephyr/drivers/serial/uart_nrfx_uarte.c:1283:15: error: 'DT_NORDIC_NRF_UARTE_UART_2_CURRENT_SPEED' undeclared here (not in a function); did you mean 'DT_NORDIC_NRF_UARTE_UART_0_CURRENT_SPEED'?
1> /home/jkst/connect/ncs/zephyr/drivers/serial/uart_nrfx_uarte.c:1226:3: note: in expansion of macro 'UARTE_CONFIG'
1> /home/jkst/connect/ncs/zephyr/drivers/serial/uart_nrfx_uarte.c:1346:2: note: in expansion of macro 'UART_NRF_UARTE_DEVICE'
1> /home/jkst/connect/ncs/zephyr/drivers/serial/uart_nrfx_uarte.c:1236:4: error: 'DT_NORDIC_NRF_UARTE_UART_2_BASE_ADDRESS' undeclared here (not in a function); did you mean 'DT_NORDIC_NRF_UARTE_UART_0_BASE_ADDRESS'?
1> /home/jkst/connect/ncs/zephyr/drivers/serial/uart_nrfx_uarte.c:1346:2: note: in expansion of macro 'UART_NRF_UARTE_DEVICE'
1> /home/jkst/connect/ncs/zephyr/drivers/serial/uart_nrfx_uarte.c:1246:15: error: 'DT_NORDIC_NRF_UARTE_UART_2_TX_PIN' undeclared (first use in this function); did you mean 'DT_NORDIC_NRF_UARTE_UART_0_TX_PIN'?
1> /home/jkst/connect/ncs/zephyr/drivers/serial/uart_nrfx_uarte.c:1346:2: note: in expansion of macro 'UART_NRF_UARTE_DEVICE'
1> /home/jkst/connect/ncs/zephyr/drivers/serial/uart_nrfx_uarte.c:1246:15: note: each undeclared identifier is reported only once for each function it appears in
1> /home/jkst/connect/ncs/zephyr/drivers/serial/uart_nrfx_uarte.c:1346:2: note: in expansion of macro 'UART_NRF_UARTE_DEVICE'
1> /home/jkst/connect/ncs/zephyr/drivers/serial/uart_nrfx_uarte.c:1247:15: error: 'DT_NORDIC_NRF_UARTE_UART_2_RX_PIN' undeclared (first use in this function); did you mean 'DT_NORDIC_NRF_UARTE_UART_2_TX_PIN'?
1> /home/jkst/connect/ncs/zephyr/drivers/serial/uart_nrfx_uarte.c:1346:2: note: in expansion of macro 'UART_NRF_UARTE_DEVICE'
1> In file included from /home/jkst/connect/ncs/zephyr/include/sched_priq.h:9:0,
1> from /home/jkst/connect/ncs/zephyr/include/kernel_includes.h:23,
1> from /home/jkst/connect/ncs/zephyr/include/kernel.h:17,
1> from /home/jkst/connect/ncs/zephyr/include/device.h:11,
1> from /home/jkst/connect/ncs/zephyr/include/uart.h:26,
1> from /home/jkst/connect/ncs/zephyr/drivers/serial/uart_nrfx_uarte.c:11:
1> /home/jkst/connect/ncs/zephyr/drivers/serial/uart_nrfx_uarte.c:1252:25: error: 'NRF_UARTE2' undeclared (first use in this function); did you mean 'NRF_UARTE0'?
1> /home/jkst/connect/ncs/zephyr/include/misc/util.h:266:26: note: in definition of macro '__DEBRACKET'
1> /home/jkst/connect/ncs/zephyr/include/misc/util.h:263:2: note: in expansion of macro '__GET_ARG2_DEBRACKET'
1> /home/jkst/connect/ncs/zephyr/include/misc/util.h:240:2: note: in expansion of macro '__COND_CODE'
1> /home/jkst/connect/ncs/zephyr/include/misc/util.h:237:2: note: in expansion of macro 'Z_COND_CODE_1'
1> /home/jkst/connect/ncs/zephyr/drivers/serial/uart_nrfx_uarte.c:1250:3: note: in expansion of macro 'COND_CODE_1'
1> /home/jkst/connect/ncs/zephyr/include/arch/arm/cortex_m/irq.h:84:2: note: in expansion of macro 'Z_ISR_DECLARE'
1> /home/jkst/connect/ncs/zephyr/include/irq.h:51:2: note: in expansion of macro 'Z_ARCH_IRQ_CONNECT'
1> /home/jkst/connect/ncs/zephyr/drivers/serial/uart_nrfx_uarte.c:1251:5: note: in expansion of macro 'IRQ_CONNECT'
1> /home/jkst/connect/ncs/zephyr/ext/hal/nordic/nrfx/drivers/nrfx_common.h:201:41: note: in expansion of macro 'NRFX_PERIPHERAL_ID_GET'
1> /home/jkst/connect/ncs/zephyr/drivers/serial/uart_nrfx_uarte.c:1252:5: note: in expansion of macro 'NRFX_IRQ_NUMBER_GET'
1> /home/jkst/connect/ncs/zephyr/drivers/serial/uart_nrfx_uarte.c:1346:2: note: in expansion of macro 'UART_NRF_UARTE_DEVICE'
1> /home/jkst/connect/ncs/zephyr/drivers/serial/uart_nrfx_uarte.c:1253:5: error: 'DT_NORDIC_NRF_UARTE_UART_2_IRQ_PRIORITY' undeclared (first use in this function); did you mean 'DT_NORDIC_NRF_UARTE_UART_0_IRQ_PRIORITY'?
1> /home/jkst/connect/ncs/zephyr/include/misc/util.h:266:26: note: in definition of macro '__DEBRACKET'
1> /home/jkst/connect/ncs/zephyr/include/misc/util.h:263:2: note: in expansion of macro '__GET_ARG2_DEBRACKET'
1> /home/jkst/connect/ncs/zephyr/include/misc/util.h:240:2: note: in expansion of macro '__COND_CODE'
1> /home/jkst/connect/ncs/zephyr/include/misc/util.h:237:2: note: in expansion of macro 'Z_COND_CODE_1'
1> /home/jkst/connect/ncs/zephyr/drivers/serial/uart_nrfx_uarte.c:1250:3: note: in expansion of macro 'COND_CODE_1'
1> /home/jkst/connect/ncs/zephyr/include/irq.h:51:2: note: in expansion of macro 'Z_ARCH_IRQ_CONNECT'
1> /home/jkst/connect/ncs/zephyr/drivers/serial/uart_nrfx_uarte.c:1251:5: note: in expansion of macro 'IRQ_CONNECT'
1> /home/jkst/connect/ncs/zephyr/drivers/serial/uart_nrfx_uarte.c:1346:2: note: in expansion of macro 'UART_NRF_UARTE_DEVICE'
1> /home/jkst/connect/ncs/zephyr/drivers/serial/uart_nrfx_uarte.c:1257:15: error: 'DT_NORDIC_NRF_UARTE_UART_2_IRQ' undeclared (first use in this function); did you mean 'DT_NORDIC_NRF_UARTE_UART_1_IRQ'?
1> /home/jkst/connect/ncs/zephyr/include/misc/util.h:266:26: note: in definition of macro '__DEBRACKET'
1> /home/jkst/connect/ncs/zephyr/include/misc/util.h:263:2: note: in expansion of macro '__GET_ARG2_DEBRACKET'
1> /home/jkst/connect/ncs/zephyr/include/misc/util.h:240:2: note: in expansion of macro '__COND_CODE'
1> /home/jkst/connect/ncs/zephyr/include/misc/util.h:237:2: note: in expansion of macro 'Z_COND_CODE_1'
1> /home/jkst/connect/ncs/zephyr/drivers/serial/uart_nrfx_uarte.c:1250:3: note: in expansion of macro 'COND_CODE_1'
1> /home/jkst/connect/ncs/zephyr/drivers/serial/uart_nrfx_uarte.c:1257:4: note: in expansion of macro 'irq_enable'
1> /home/jkst/connect/ncs/zephyr/drivers/serial/uart_nrfx_uarte.c:1346:2: note: in expansion of macro 'UART_NRF_UARTE_DEVICE'
1> In file included from /home/jkst/connect/ncs/zephyr/include/uart.h:26:0,
1> from /home/jkst/connect/ncs/zephyr/drivers/serial/uart_nrfx_uarte.c:11:
1> /home/jkst/connect/ncs/zephyr/drivers/serial/uart_nrfx_uarte.c:1272:9: error: 'DT_NORDIC_NRF_UARTE_UART_2_LABEL' undeclared here (not in a function); did you mean 'DT_NORDIC_NRF_UARTE_UART_1_LABEL'?
1> /home/jkst/connect/ncs/zephyr/include/device.h:107:11: note: in definition of macro 'DEVICE_AND_API_INIT'
1> /home/jkst/connect/ncs/zephyr/drivers/serial/uart_nrfx_uarte.c:1271:2: note: in expansion of macro 'DEVICE_DEFINE'
1> /home/jkst/connect/ncs/zephyr/drivers/serial/uart_nrfx_uarte.c:1346:2: note: in expansion of macro 'UART_NRF_UARTE_DEVICE'
Build failed

Parents Reply Children
Related