Page 1 of 1

xrun: Binary not correctly downloaded to target device

Posted: Tue Jun 18, 2013 3:11 am
by kim5257
I did running program by using xrun. but error occured.

Followed error message is:
"xrun: Binary not correctly downloaded to target device"

Sometimes it normal running program without error even same program image.

It could be Board schematic problem(this is custom board)? or other something problem?

Please tell me where do I find problem.

Re: xrun: Binary not correctly downloaded to target device

Posted: Tue Jun 18, 2013 8:51 am
by infiniteimprobability
This does sound like a hardware problem - something is marginal.
Does the firmware run reliably in the cases when it does successfully download?

If so, and you are using an XTAG2, you might want to try:

Code: Select all

xrun --jtag-speed 1 xxxx.xe 
This halves the JTAG speed from 25 to 12.5MHz.
This will reveal if it's JTAG signal integrity that is causing the xrun failure.

Re: xrun: Binary not correctly downloaded to target device

Posted: Thu Jun 20, 2013 6:41 am
by kim5257
Thanks for reply.

First, the firmware did run reliably in the cases when it does successfully download.

And i tried followed command.

Code: Select all

xrun --jtag-speed 1 xxx.xe
but that problem still occured.

Re: xrun: Binary not correctly downloaded to target device

Posted: Thu Jun 20, 2013 4:12 pm
by segher
Check if the supply voltages and the clock are okay?

Re: xrun: Binary not correctly downloaded to target device

Posted: Thu Jun 27, 2013 3:50 am
by kim5257
I checking SS_CLK, IO_VDD and VDD.
Result are follow:
SS_CLK: 20Mhz
IO_VDD: 3.3v
VDD: 1v

It seems to be normal.

Re: xrun: Binary not correctly downloaded to target device

Posted: Thu Jun 27, 2013 8:59 am
by EdB
Which target device are you using?

Have you implemented explicit power supply sequencing in your design?

Re: xrun: Binary not correctly downloaded to target device

Posted: Sat Jun 29, 2013 2:55 pm
by segher
That clock looks really bad, it overshoots and undershoots to
far outside the allowed min and max voltages. It could just be
a measurement artifact, of course.

I see you say that everything runs fine if the download succeeded;
that suggests the problem is either in chip startup, or on the JTAG
lines. To determine which of those two, you could try booting from
SPI flash (if you have that).

Re: xrun: Binary not correctly downloaded to target device

Posted: Fri Apr 24, 2020 7:22 am
by iris
segher wrote: Sat Jun 29, 2013 2:55 pm That clock looks really bad, it overshoots and undershoots to
far outside the allowed min and max voltages. It could just be
a measurement artifact, of course.

I see you say that everything runs fine if the download succeeded;
that suggests the problem is either in chip startup, or on the JTAG
lines. To determine which of those two, you could try booting from
SPI flash (if you have that).
how can I booting from SPI flash (if you have that)?
Thanks!

Re: xrun: Binary not correctly downloaded to target device

Posted: Fri Apr 24, 2020 9:29 am
by iris
I have the same problem and some other similar problem as kim5257.As I known,if the problem is on the xtag lines,we should re-connect the lines between device and xtag,if not what should I do for chip startup?
Thanks!

Re: xrun: Binary not correctly downloaded to target device

Posted: Fri May 08, 2020 4:24 pm
by Santi
Hello iris

it seems like that I am having a similar issue. I checked all the datalines also by scope and I can see some data traffic. Also the xrun -l command lists me one device.

Available XMOS Devices
----------------------

ID Name Adapter ID Devices
-- ---- ---------- -------
0 XMOS XTAG-3 ZcZ7qBKw O[0]

Any suggestions?