USB Audio DFU Topic is solved

Discussions about USB Audio on XMOS devices
ilkerxlm
Member
Posts: 8
Joined: Mon Dec 02, 2024 7:03 pm

USB Audio DFU

Post by ilkerxlm »

Hello,

I'm following AN02019: Using Device Firmware Upgrade (DFU) in USB Audio guideline. Using xmosdfu on Ubuntu and xu316 on custom hardware.
when trying to flash (note:VendorID is set to 0xbeef) :

Code: Select all

./xmosdfu 0xbeef:0x0016,0xbeef:0xd016 --download ../../app/bin/upgrade/upgrade.bin
I get:

Code: Select all

runtime vid 0xbeef, pid 0x0016. DFU vid 0xbeef, pid 0xd016
Found Runtime: [beef:0016] ver=1000
Opening DFU capable USB device, [beef:0016], Runtime mode.
XMOS DFU application started - Interface 2 claimed
Detaching device from application mode.
error detaching
I did set udev rules so I can access the USB device with full permision. However it still fails. Any ideas what it could be?

Thanks...
View Solution
User avatar
Ross
Verified
XCore Legend
Posts: 1312
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

What command did you use to originally flash the device?
Technical Director @ XMOS. Opinions expressed are my own
ilkerxlm
Member
Posts: 8
Joined: Mon Dec 02, 2024 7:03 pm

Post by ilkerxlm »

Ross wrote: Mon Oct 27, 2025 7:52 pm What command did you use to originally flash the device?
Hi Ross,
I used:

Code: Select all

xflash --factory ../bin/factory/app_factory.xe
When I use:

Code: Select all

./xmosdfu --listdevices
I get:

Code: Select all

Found Runtime: [beef:0016] ver=1000
ilkerxlm
Member
Posts: 8
Joined: Mon Dec 02, 2024 7:03 pm

Post by ilkerxlm »

Since I was compiling with:

Code: Select all

#define EXCLUDE_USB_AUDIO_MAIN
I was missing DFU logic in my main.c . After this modification it works as expected. Thanks.