Offloaded sockets driver on Babblesim nRF54L15

Hello!

I can use the offloaded sockets driver with these configuration options on the native_sim target:

CONFIG_NET_DRIVERS=y
CONFIG_NET_NATIVE_OFFLOADED_SOCKETS=y

However, trying to build the same code for nrf54l15bsim/nrf54l15/cpuapp results in an error:

/.../zephyr/drivers/net/nsos_sockets.c: In function ‘nsos_socket_offload_init’:
/.../zephyr/drivers/net/nsos_sockets.c:1563:21: error: ‘NSOS_IRQ’ undeclared (first use in this function)
1563 | IRQ_CONNECT(NSOS_IRQ, NSOS_IRQ_PRIORITY,

It turns out that NSOS_IRQ is only defined in zephyr/boards/native/native_sim/board_soc.h but it is not loaded.

Among the include directories are:

zephyr/soc/native/inf_clock
zephyr/boards/native/nrf_bsim

The file nsos_sockets.c includes <soc.h> which seems to be zephyr/soc/native/inf_clock/soc.h, which in turn includes "board_soc.h", which seems to be zephyr/boards/native/nrf_bsim/board_soc.h, which does not define NSOS_IRQ.

Is this an oversight? According to the documentation, the Babblesim targets are based on the Native simulator, and there is no mention of offloaded sockets not being included.

My version of Zephyr is 4.0.99.

Parents Reply Children
No Data
Related