xflash broken after initial flash

New to XMOS and XCore? Get started here.
rtms
New User
Posts: 2
Joined: Thu Oct 03, 2024 7:57 pm

xflash broken after initial flash

Post by rtms »

Hello,

I am new and working with the XU316-1024-TQ128-C24 eval board.

I successfully flashed a binary from app_usb_aud_xk_316_mc, and played audio.

But now I would like to flash it with a different binary.

However, xflash -l gives "No Available Devices Found".

xflash <binary> gives "Error: F03136 No devices attached."

xflash --erase-all gives "Error: F03022 A --target or --target-file option is required."

It seems like my initial flash disabled the debug USB port somehow.

What must I do to flash it with a new binary?

Any guidance is much appreciated.
Joe
Verified
Experienced Member
Posts: 68
Joined: Sun Dec 13, 2009 1:12 am

Post by Joe »

Looks like the tools can't see any devices. You can run xrun -l to list devices and check the xtag is present.

Can I double check you have both usb connections connected - "DEBUG" and "USB DEVICE"?

One powers the XTAG debugger and the other powers the target device.
XMOS hardware grey beard.
rtms
New User
Posts: 2
Joined: Thu Oct 03, 2024 7:57 pm

Post by rtms »

Thank you Joe.

While confirming my connections, I found something peculiar with my micro USB cables.

For some reason it makes a difference which one I use for “USB Device” and “DEBUG”. There must be something wrong with one of them.

I have cable A and cable B. I find that as long as I connect A to DEBUG, it works fine. If I swap them, I get no device found.

Thank you again for your help.

It is working now.

Best Regards,
Rich
Joe
Verified
Experienced Member
Posts: 68
Joined: Sun Dec 13, 2009 1:12 am

Post by Joe »

Glad you found the issue, we do see occasional issues with cheap usb cables - the contacts can be quite poor. Sounds like you have a problem with the D+/D- contacts in one cable but the power works ok.
XMOS hardware grey beard.