Linker Error: Zephyr Modem Driver for SIM7080 Module

Hi, 

I am encountering the following error while trying to compile the Zephyr modem driver for the SIM7080 module:

/opt/nordic/ncs/toolchains/15b490767d/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/drivers/modem/libdrivers__modem.a(modem_cellular.c.obj):/opt/nordic/ncs/v2.8.0/zephyr/drivers/modem/modem_cellular.c:2519: multiple definition of `__device_dts_ord_114'; zephyr/drivers/modem/libdrivers__modem.a(simcom-sim7080.c.obj):/opt/nordic/ncs/v2.8.0/zephyr/drivers/modem/simcom-sim7080.c:2432: first defined here
collect2: error: ld returned 1 exit status

nRF Connect SDK Toolchain v2.8.0


This error occurs due to definition conflicts for the same device tree item. The conflicts are caused by the following two macros:


my main.c file


board overlay file


Project configurations


Zephyr kernel configs related to the module


Thank you for your help.

Related