USB sample fails to compile

I am using the VSCode extension (2024.12.55), nRF Connect SDK ( 2.9.0). I created a new project from the USB loopback sample to investigate how to configure a project for USB. The project creation went well, however, when I tried to create a configuration for my nRF54L15DK, the compilation fails with many errors of undefined references. Here is a sample of the errors, they all seem related to the USB device.

C:/ncs/v2.9.0/zephyr/subsys/usb/device/usb_device.c:877: undefined reference to `usb_dc_set_address'
c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr/libzephyr.a(usb_device.c.obj): in function `usb_get_status_endpoint':
C:/ncs/v2.9.0/zephyr/subsys/usb/device/usb_device.c:1045: undefined reference to `usb_dc_ep_is_stalled'
c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr/libzephyr.a(usb_device.c.obj): in function `usb_write':
C:/ncs/v2.9.0/zephyr/subsys/usb/device/usb_device.c:1393: undefined reference to `usb_dc_ep_write'
c:/ncs/toolchains/b620d30767/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr/libzephyr.a(usb_device.c.obj): in function `usb_data_to_host':

This is blocking further progress so an early response would be much appreciated.

Sid

Related