nordic semi - Why can’t I enable CONFIG_MODEM on my NCS 2.6.0 project using Zephyr 2.5.99? - Stack Overflow

admin2025-04-30  4

I am trying to enable it in my prj.conf file:

# # Networking
CONFIG_NETWORKING=y
CONFIG_FPU=y
# CONFIG_NET_NATIVE=y
# CONFIG_NET_L2_PPP=y
CONFIG_NET_IPV4=y
CONFIG_NET_UDP=y
CONFIG_NET_SOCKETS=y

CONFIG_SERIAL=y
CONFIG_MODEM=y

But it always returns hundreds of messages like this:

/home/m/Desktop/new_heatleap/icv-firmware-legacy-new-pcb/zephyr/include/zephyr/devicetree.h:333:31: note: in expansion of macro 'UTIL_CAT'
  333 | #define DT_INST(inst, compat) UTIL_CAT(DT_N_INST, DT_DASH(inst, compat))
      |                               ^~~~~~~~
/home/m/Desktop/new_heatleap/innotractor-firmware-library/lib/drivers/modem/modem_mgsm.c:2283:18: note: in expansion of macro 'DT_INST'
 2283 | DEVICE_DT_DEFINE(DT_INST(0, quectel_bg95_ppp), mgsm_init, NULL, &mgsm, NULL,
      |                  ^~~~~~~
/home/m/Desktop/new_heatleap/innotractor-firmware-library/lib/drivers/modem/modem_mgsm.c:2091:13: warning: 'mgsm_mgmt_event_handler' defined but not used [-Wunused-function]
 2091 | static void mgsm_mgmt_event_handler(struct net_mgmt_event_callback *cb,
      |             ^~~~~~~~~~~~~~~~~~~~~~~

I imagine it either has some dependencies or is deprecated.

Looking at the documentation, I did not see any mention about dependencies and looking at the official migration guide. I also did not see any mention of it being deprecated.

What can I do?

I expect to be able to enable the modem module.

转载请注明原文地址:http://anycun.com/QandA/1745964418a91444.html