USB DFU + USB Audio

I want to use USB DFU + USB Audio <smp_svr + headphones_microphone>,

but I get an error when use USB to DFU, error log as below.  How to fixed it?

*** Booting Zephyr OS build v3.1.99-ncs1 ***
I: Starting bootloader
I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
I: Boot source: none
I: Swap type: none
I: Bootloader chainload address offset: 0xc000
*** Booting Zephyr OS build v3.1.99-ncs1 ***
[00:00:00.004,638] <inf> smp_sample: Entered main
[00:00:00.004,638] <inf> smp_sample: Found USB Headphones Device
[00:00:00.004,669] <inf> smp_sample: Found USB Microphone Device
[00:00:00.004,730] <inf> smp_sample: build time: Dec 8 2022 16:38:55
[00:00:02.873,596] <inf> usb_cdc_acm: Device suspended
[00:00:03.195,648] <inf> usb_cdc_acm: Device resumed
[00:00:03.401,153] <inf> usb_cdc_acm: Device configured
[00:00:08.853,057] <inf> usb_cdc_acm: Device suspended
[00:00:08.914,947] <inf> usb_cdc_acm: Device resumed
[00:00:08.914,978] <inf> usb_cdc_acm: Device disconnected
[00:00:11.870,025] <inf> usb_cdc_acm: Device suspended
[00:00:12.264,831] <inf> usb_cdc_acm: Device resumed
[00:00:12.469,146] <inf> usb_cdc_acm: Device configured
[00:00:35.807,525] <err> usb_nrfx: USBD event allocation failed!
[00:00:35.851,684] <err> usb_nrfx: USBD event queue full!
[00:00:42.786,468] <inf> usb_cdc_acm: Device disconnected

smp_svr.rar

Parents Reply
  • Hi 

    The test board is nRF5340-DK.

    build command: 

    west build -b nrf5340dk_nrf5340_cpuapp -- -DOVERLAY_CONFIG=overlay-cdc.conf -DDTC_OVERLAY_FILE=usb.overlay

    NCS v2.1.0\zephyr\samples\subsys\mgmt\mcumgr\smp_svr 

    Test the original project, USB DFU is OK.

    mcumgr.exe conn add myCOM type="serial" connstring="dev=COM5,baud=115200,mtu=256"

    mcumgr.exe -c myCOM image upload .\app_update.bin

    Add NCS v2.1.0\zephyr\samples\subsys\usb\audio\headphones_microphone to the smp_svr project(the attachments you can find it), it get error when use commod to upload the bin file

Children
Related