xrun: Binary not correctly downloaded to target device Topic is solved

Technical questions regarding the XTC tools and programming with XMOS.
Post Reply
kim5257
Junior Member
Posts: 6
Joined: Thu Jun 20, 2013 6:07 am

xrun: Binary not correctly downloaded to target device

Post 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.


View Solution
User avatar
infiniteimprobability
XCore Legend
Posts: 1126
Joined: Thu May 27, 2010 10:08 am
Contact:

Post 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.
kim5257
Junior Member
Posts: 6
Joined: Thu Jun 20, 2013 6:07 am

Post 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.
User avatar
segher
XCore Expert
Posts: 844
Joined: Sun Jul 11, 2010 1:31 am
Contact:

Post by segher »

Check if the supply voltages and the clock are okay?
kim5257
Junior Member
Posts: 6
Joined: Thu Jun 20, 2013 6:07 am

Post 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.
Attachments
WP_20130627_006.JPG
VDD
(187.91 KiB) Not downloaded yet
WP_20130627_006.JPG
VDD
(187.91 KiB) Not downloaded yet
WP_20130627_005.JPG
IO_VDD
(207.13 KiB) Not downloaded yet
WP_20130627_005.JPG
IO_VDD
(207.13 KiB) Not downloaded yet
FOT8082.JPG
SS_CLK
(217.14 KiB) Not downloaded yet
FOT8082.JPG
SS_CLK
(217.14 KiB) Not downloaded yet
User avatar
EdB
Member++
Posts: 17
Joined: Tue Mar 19, 2013 11:58 am

Post by EdB »

Which target device are you using?

Have you implemented explicit power supply sequencing in your design?
User avatar
segher
XCore Expert
Posts: 844
Joined: Sun Jul 11, 2010 1:31 am
Contact:

Post 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).
iris
New User
Posts: 2
Joined: Fri Apr 24, 2020 7:14 am

Post 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!
iris
New User
Posts: 2
Joined: Fri Apr 24, 2020 7:14 am

Post 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!
Santi
Newbie
Posts: 1
Joined: Fri May 08, 2020 4:13 pm

Post 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?
Post Reply