USB Audio with three Firmware DFU images

If you have a simple question and just want an answer.
dengzicheng
Junior Member
Posts: 7
Joined: Sat Mar 12, 2016 10:08 am

USB Audio with three Firmware DFU images

Post by dengzicheng »

Hi

I am from China. Now I have a problem. I have three firmwares used for USB Audio。The XMOS is XU208. I've done all the work。 I know use the "loader.xc" to select which firmware to work. The boar working is OK. Now how can I use the "DFU" to upgrade the three firmwares. I have try like the following:

xflash --factory-version 14.1 --upgrade 0 app1.xe --upgrade 1 app2.xe --upgrade 2 app3.xe -o dfu.bin --target-file app.xn

Yes, It can generate "dfu.bin". It also can upgrade. But the board is not working properly. Not correctly loaded corresponding firmware。If I use the JTAG to flash the board, it can work OK.

So the command used for DFU is wrong??
User avatar
Ross
Verified
XCore Legend
Posts: 1185
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

(mod edit: updated thread title to reflect question)

You should use a command like the following to program the board:

xflash app1.xe --upgrade 1 app2.xe --upgrade 2 app3.xe

And a command with the -o option to generate the for DFU.. e.g..

xflash --factory-version 14.1 --upgrade 1 dfu_image.xe -o new_firmware.bin

What image are you trying to upgrade, all of them?