Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure in cellular_modem sample for nrf9160dk/nrf9160/ns and nrf9160dk/nrf52840 targets #73297

Closed
nmpluta opened this issue May 25, 2024 · 1 comment
Assignees
Labels
area: Modem area: UART Universal Asynchronous Receiver-Transmitter bug The issue is a bug, or the PR is fixing a bug platform: nRF Nordic nRFx priority: low Low impact/importance bug

Comments

@nmpluta
Copy link
Contributor

nmpluta commented May 25, 2024

Describe the bug
The sample zephyr/samples/net/cellular_modem fails during building on two tested targets: nrf9160dk/nrf9160/ns and nrf9160dk/nrf52840 even though it seems that those targets should be supported based on the fact that .conf and .overlay files are provided in the boards directory for this sample.

It appears to be related to a missing timer member within the const struct uarte_nrfx_config structure, leading to a compilation error. This missing member disrupts the proper configuration of the UART peripheral for the cellular modem sample, resulting in the build failure.

To Reproduce
Steps to reproduce the behavior:

  1. For target nrf9160dk/nrf9160/ns:
    west build -b nrf9160dk/nrf9160/ns samples/net/cellular_modem -p
    
  2. For target nrf9160dk/nrf52840:
    west build -b nrf9160dk/nrf52840 samples/net/cellular_modem -p
    

Expected behavior
The sample should build successfully for both targets.

Impact
This issue prevents the successful building of the sample for the specified targets.

Logs and console output

  • Building error:
[212/261] Building C object zephyr/drivers/serial/CMakeFiles/drivers__serial.dir/uart_nrfx_uarte.c.obj
FAILED: zephyr/drivers/serial/CMakeFiles/drivers__serial.dir/uart_nrfx_uarte.c.obj 
ccache /home/npluta/zephyr-sdk-0.16.5-1/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -DKERNEL -DK_HEAP_MEM_POOL_SIZE=1024 -DNRF52840_XXAA -DPICOLIBC_LONG_LONG_PRINTF_SCANF -D__LINUX_ERRNO_EXTENSIONS__ -D__PROGRAM_START -D__ZEPHYR_SUPERVISOR__ -D__ZEPHYR__=1 -I/home/npluta/repositories/private/workspace-telemetry-system/zephyr/include -I/home/npluta/repositories/private/workspace-telemetry-system/zephyr/build/zephyr/include/generated -I/home/npluta/repositories/private/workspace-telemetry-system/zephyr/soc/nordic -I/home/npluta/repositories/private/workspace-telemetry-system/zephyr/include/zephyr/posix -I/home/npluta/repositories/private/workspace-telemetry-system/zephyr/lib/posix/options/getopt/. -I/home/npluta/repositories/private/workspace-telemetry-system/zephyr/soc/nordic/nrf52/. -I/home/npluta/repositories/private/workspace-telemetry-system/zephyr/soc/nordic/common/. -I/home/npluta/repositories/private/workspace-telemetry-system/zephyr/subsys/net/lib/dns/. -I/home/npluta/repositories/private/workspace-telemetry-system/zephyr/subsys/net/conn_mgr/. -I/home/npluta/repositories/private/workspace-telemetry-system/telemetry-system/include -I/home/npluta/repositories/private/workspace-telemetry-system/modules/hal/cmsis/CMSIS/Core/Include -I/home/npluta/repositories/private/workspace-telemetry-system/zephyr/modules/cmsis/. -I/home/npluta/repositories/private/workspace-telemetry-system/modules/hal/nordic/nrfx -I/home/npluta/repositories/private/workspace-telemetry-system/modules/hal/nordic/nrfx/drivers/include -I/home/npluta/repositories/private/workspace-telemetry-system/modules/hal/nordic/nrfx/mdk -I/home/npluta/repositories/private/workspace-telemetry-system/zephyr/modules/hal_nordic/nrfx/. -isystem /home/npluta/repositories/private/workspace-telemetry-system/zephyr/lib/libc/common/include -Wshadow -fno-strict-aliasing -Os -imacros /home/npluta/repositories/private/workspace-telemetry-system/zephyr/build/zephyr/include/generated/autoconf.h -fno-printf-return-value -fno-common -g -gdwarf-4 -fdiagnostics-color=always -mcpu=cortex-m4 -mthumb -mabi=aapcs -mfp16-format=ieee -mtp=soft --sysroot=/home/npluta/zephyr-sdk-0.16.5-1/arm-zephyr-eabi/arm-zephyr-eabi -imacros /home/npluta/repositories/private/workspace-telemetry-system/zephyr/include/zephyr/toolchain/zephyr_stdint.h -Wall -Wformat -Wformat-security -Wno-format-zero-length -Wdouble-promotion -Wno-pointer-sign -Wpointer-arith -Wexpansion-to-defined -Wno-unused-but-set-variable -Werror=implicit-int -fno-pic -fno-pie -fno-asynchronous-unwind-tables -ftls-model=local-exec -fno-reorder-functions --param=min-pagesize=0 -fno-defer-pop -fmacro-prefix-map=/home/npluta/repositories/private/workspace-telemetry-system/zephyr/samples/net/cellular_modem=CMAKE_SOURCE_DIR -fmacro-prefix-map=/home/npluta/repositories/private/workspace-telemetry-system/zephyr=ZEPHYR_BASE -fmacro-prefix-map=/home/npluta/repositories/private/workspace-telemetry-system=WEST_TOPDIR -ffunction-sections -fdata-sections --specs=picolibc.specs -D_POSIX_THREADS -std=c99 -MD -MT zephyr/drivers/serial/CMakeFiles/drivers__serial.dir/uart_nrfx_uarte.c.obj -MF zephyr/drivers/serial/CMakeFiles/drivers__serial.dir/uart_nrfx_uarte.c.obj.d -o zephyr/drivers/serial/CMakeFiles/drivers__serial.dir/uart_nrfx_uarte.c.obj -c /home/npluta/repositories/private/workspace-telemetry-system/zephyr/drivers/serial/uart_nrfx_uarte.c
In file included from /home/npluta/repositories/private/workspace-telemetry-system/zephyr/include/zephyr/sys/util_macro.h:34,
                from /home/npluta/repositories/private/workspace-telemetry-system/zephyr/include/zephyr/irq_multilevel.h:16,
                from /home/npluta/repositories/private/workspace-telemetry-system/zephyr/include/zephyr/devicetree.h:20,
                from /home/npluta/repositories/private/workspace-telemetry-system/zephyr/include/zephyr/device.h:12,
                from /home/npluta/repositories/private/workspace-telemetry-system/zephyr/include/zephyr/drivers/uart.h:28,
                from /home/npluta/repositories/private/workspace-telemetry-system/zephyr/drivers/serial/uart_nrfx_uarte.c:11:
/home/npluta/repositories/private/workspace-telemetry-system/zephyr/drivers/serial/uart_nrfx_uarte.c:2009:27: error: 'const struct uarte_nrfx_config' has no member named 'timer'
2009 |                         (.timer = NRFX_TIMER_INSTANCE(                         \
     |                           ^~~~~

Environment (please complete the following information):

  • OS: Ubuntu 22.04.4 LTS
  • Toolchain: Zephyr SDK 0.16.5-1
  • Zephyr SHA: 68bd4da
@nmpluta nmpluta added the bug The issue is a bug, or the PR is fixing a bug label May 25, 2024
@aescolar aescolar added area: UART Universal Asynchronous Receiver-Transmitter priority: low Low impact/importance bug labels May 28, 2024
@nordic-krch
Copy link
Contributor

Fixed by 53ddff6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Modem area: UART Universal Asynchronous Receiver-Transmitter bug The issue is a bug, or the PR is fixing a bug platform: nRF Nordic nRFx priority: low Low impact/importance bug
Projects
None yet
Development

No branches or pull requests

3 participants