OpenCores
no use no use 1/1 no use no use
Communication error when using or_debug_proxy on ML501
by alonzo on Aug 5, 2011
alonzo
Posts: 23
Joined: Jan 23, 2009
Last seen: Nov 14, 2017
Hi all,
I tried to connect to the ML501 using or_debug_proxy and it is not working:

./or_debug_proxy -r 55555

Connecting to OR1k via USB debug cable

Initialising USB JTAG interface
JTAG ID = a188a928
Stalling OR1K CPU0
Communication error. Retrying
Resetting or1k
Resetting or1k
Resetting or1k
Stalling or1k
or1k should be stalled


I compiled successfully (I think) the bitstream from orpsocv2 and downloaded it to the board. I am using or_debug_proxy rev. 566 and orpsoc rev. 568

Any suggestions as to how to debug this?
Thanks,

Alonzo.
RE: Communication error when using or_debug_proxy on ML501
by julius on Aug 7, 2011
julius
Posts: 363
Joined: Jul 1, 2008
Last seen: May 17, 2021
In the Makefile for or_debug_proxy uncomment the following line:

DBGCPPFLAGS=-DDEBUG_USB_DRVR_FUNCS=1 -DDEBUG_GDB=1 -DDEBUG_CMDS=1

Do the or_debug_proxy's "make static" again, and try to run it and paste the output here (or put it in a text file and attach it if it's too long.)

I also have a pre-built image for the ML501 if you would like to try that.
RE: Communication error when using or_debug_proxy on ML501
by alonzo on Aug 8, 2011
alonzo
Posts: 23
Joined: Jan 23, 2009
Last seen: Nov 14, 2017
Hi Julios,
Please find attached the file with the output of or_debug_proxy. It doesn't say much to me, I hope it says something to you.
The pre-compiled bitstream might be a good idea. That way we might be able to discard the FPGA programming in this problem. Can you email it to me or put it somewhere to download it?
By the way, I am not compiling the or_debug_proxy statically. I am using the dynamically linked executable. When I compile it statically or_debug_proxy generates a segmentation fault each time I run it. I am using ubuntu 10.10 (Maverick Meerkat), 64 bits.
Thank you for your help on this,
Alonzo.
RE: Communication error when using or_debug_proxy on ML501
by julius on Aug 8, 2011
julius
Posts: 363
Joined: Jul 1, 2008
Last seen: May 17, 2021
There was no attachment on that post.
RE: Communication error when using or_debug_proxy on ML501
by alonzo on Aug 8, 2011
alonzo
Posts: 23
Joined: Jan 23, 2009
Last seen: Nov 14, 2017
Not sure what happened, I am trying again to post the attachment. Can you email me the bitstream please?
RE: Communication error when using or_debug_proxy on ML501
by alonzo on Aug 8, 2011
alonzo
Posts: 23
Joined: Jan 23, 2009
Last seen: Nov 14, 2017
For some reason the attachments don't get posted. I must be doing something wrong. Let me paste the text here (sorry for the length):

Connecting to OR1k via USB debug cable

Device 0 Description - ORSoC OpenRISC debug cable A
Device 1 Description - ORSoC OpenRISC debug cable B
JTAG_OpenSpecifiedDevice ORSoC OpenRISC debug cable A
FT_OpenEx status: 0
JTAG_OpenSpecifiedDevice status: 0 ()
Initialising USB JTAG interface
Setting JTAG clock frequency. Divisor = 0, TCK ~= 6000kHz.
JTAG low gpio pins values: (ADBUS7-ADBUS4):1100
JTAG high gpio pins values: (ACBUS3-ACBUS0): 1011
USB JTAG write of 2 to instruction register returned Status: 0x0
usb_read_stream: returned Status: 0x0 from reading 32 bits,
JTAG ID = a188a928
USB JTAG write of 8 to instruction register returned Status: 0x0
Stalling OR1K CPU0

set_chain 1

usb_write_stream: num_bytes=1, WriteDataBuffer contents for 5 bits:011

usb_write_stream: num_bytes=4, WriteDataBuffer contents for 32 bits:c357fa8ec3
usb_read_stream: returned Status: 0x0 from reading 4 bits,
usb_read_stream: returned Status: 0x0 from reading 32 bits,
Communication error. Retrying
USB JTAG write of 2 to instruction register returned Status: 0x0
usb_read_stream: returned Status: 0x0 from reading 32 bits,
USB JTAG write of 8 to instruction register returned Status: 0x0

set_chain 1

usb_write_stream: num_bytes=1, WriteDataBuffer contents for 5 bits:011

usb_write_stream: num_bytes=4, WriteDataBuffer contents for 32 bits:c357fa8ec3
usb_read_stream: returned Status: 0x0 from reading 4 bits,
usb_read_stream: returned Status: 0x0 from reading 32 bits,
USB JTAG write of 2 to instruction register returned Status: 0x0
usb_read_stream: returned Status: 0x0 from reading 32 bits,
USB JTAG write of 8 to instruction register returned Status: 0x0

set_chain 1

usb_write_stream: num_bytes=1, WriteDataBuffer contents for 5 bits:011

usb_write_stream: num_bytes=4, WriteDataBuffer contents for 32 bits:c357fa8ec3
usb_read_stream: returned Status: 0x0 from reading 4 bits,
usb_read_stream: returned Status: 0x0 from reading 32 bits,
USB JTAG write of 2 to instruction register returned Status: 0x0
usb_read_stream: returned Status: 0x0 from reading 32 bits,
USB JTAG write of 8 to instruction register returned Status: 0x0
Resetting or1k

set_chain 1

usb_write_stream: num_bytes=1, WriteDataBuffer contents for 5 bits:011

usb_write_stream: num_bytes=4, WriteDataBuffer contents for 32 bits:c357fa8ec3
usb_read_stream: returned Status: 0x0 from reading 4 bits,
usb_read_stream: returned Status: 0x0 from reading 32 bits,
USB JTAG write of 2 to instruction register returned Status: 0x0
usb_read_stream: returned Status: 0x0 from reading 32 bits,
USB JTAG write of 8 to instruction register returned Status: 0x0
Resetting or1k

set_chain 1

usb_write_stream: num_bytes=1, WriteDataBuffer contents for 5 bits:011

usb_write_stream: num_bytes=4, WriteDataBuffer contents for 32 bits:c357fa8ec3
usb_read_stream: returned Status: 0x0 from reading 4 bits,
usb_read_stream: returned Status: 0x0 from reading 32 bits,
USB JTAG write of 2 to instruction register returned Status: 0x0
usb_read_stream: returned Status: 0x0 from reading 32 bits,
USB JTAG write of 8 to instruction register returned Status: 0x0
Resetting or1k

set_chain 1

usb_write_stream: num_bytes=1, WriteDataBuffer contents for 5 bits:011

usb_write_stream: num_bytes=4, WriteDataBuffer contents for 32 bits:c357fa8ec3
usb_read_stream: returned Status: 0x0 from reading 4 bits,
usb_read_stream: returned Status: 0x0 from reading 32 bits,
USB JTAG write of 2 to instruction register returned Status: 0x0
usb_read_stream: returned Status: 0x0 from reading 32 bits,
USB JTAG write of 8 to instruction register returned Status: 0x0
Stalling or1k

set_chain 1

usb_write_stream: num_bytes=1, WriteDataBuffer contents for 5 bits:011

usb_write_stream: num_bytes=4, WriteDataBuffer contents for 32 bits:c357fa8ec3
usb_read_stream: returned Status: 0x0 from reading 4 bits,
usb_read_stream: returned Status: 0x0 from reading 32 bits,
USB JTAG write of 2 to instruction register returned Status: 0x0
usb_read_stream: returned Status: 0x0 from reading 32 bits,
USB JTAG write of 8 to instruction register returned Status: 0x0

set_chain 1

usb_write_stream: num_bytes=1, WriteDataBuffer contents for 5 bits:011

usb_write_stream: num_bytes=4, WriteDataBuffer contents for 32 bits:c357fa8ec3
usb_read_stream: returned Status: 0x0 from reading 4 bits,
usb_read_stream: returned Status: 0x0 from reading 32 bits,
USB JTAG write of 2 to instruction register returned Status: 0x0
usb_read_stream: returned Status: 0x0 from reading 32 bits,
USB JTAG write of 8 to instruction register returned Status: 0x0

set_chain 1

usb_write_stream: num_bytes=1, WriteDataBuffer contents for 5 bits:011

usb_write_stream: num_bytes=4, WriteDataBuffer contents for 32 bits:c357fa8ec3
usb_read_stream: returned Status: 0x0 from reading 4 bits,
usb_read_stream: returned Status: 0x0 from reading 32 bits,
USB JTAG write of 2 to instruction register returned Status: 0x0
usb_read_stream: returned Status: 0x0 from reading 32 bits,
USB JTAG write of 8 to instruction register returned Status: 0x0
Stalling or1k

set_chain 1

usb_write_stream: num_bytes=1, WriteDataBuffer contents for 5 bits:011

usb_write_stream: num_bytes=4, WriteDataBuffer contents for 32 bits:c357fa8ec3
usb_read_stream: returned Status: 0x0 from reading 4 bits,
usb_read_stream: returned Status: 0x0 from reading 32 bits,
USB JTAG write of 2 to instruction register returned Status: 0x0
usb_read_stream: returned Status: 0x0 from reading 32 bits,
USB JTAG write of 8 to instruction register returned Status: 0x0

set_chain 1

usb_write_stream: num_bytes=1, WriteDataBuffer contents for 5 bits:011

usb_write_stream: num_bytes=4, WriteDataBuffer contents for 32 bits:c357fa8ec3
usb_read_stream: returned Status: 0x0 from reading 4 bits,
usb_read_stream: returned Status: 0x0 from reading 32 bits,
USB JTAG write of 2 to instruction register returned Status: 0x0
usb_read_stream: returned Status: 0x0 from reading 32 bits,
USB JTAG write of 8 to instruction register returned Status: 0x0

set_chain 1

usb_write_stream: num_bytes=1, WriteDataBuffer contents for 5 bits:011

usb_write_stream: num_bytes=4, WriteDataBuffer contents for 32 bits:c357fa8ec3
usb_read_stream: returned Status: 0x0 from reading 4 bits,
usb_read_stream: returned Status: 0x0 from reading 32 bits,
USB JTAG write of 2 to instruction register returned Status: 0x0
usb_read_stream: returned Status: 0x0 from reading 32 bits,
USB JTAG write of 8 to instruction register returned Status: 0x0
Stalling or1k

set_chain 1

usb_write_stream: num_bytes=1, WriteDataBuffer contents for 5 bits:011

usb_write_stream: num_bytes=4, WriteDataBuffer contents for 32 bits:c357fa8ec3
usb_read_stream: returned Status: 0x0 from reading 4 bits,
usb_read_stream: returned Status: 0x0 from reading 32 bits,
USB JTAG write of 2 to instruction register returned Status: 0x0
usb_read_stream: returned Status: 0x0 from reading 32 bits,
USB JTAG write of 8 to instruction register returned Status: 0x0

set_chain 1

usb_write_stream: num_bytes=1, WriteDataBuffer contents for 5 bits:011

usb_write_stream: num_bytes=4, WriteDataBuffer contents for 32 bits:c357fa8ec3
usb_read_stream: returned Status: 0x0 from reading 4 bits,
usb_read_stream: returned Status: 0x0 from reading 32 bits,
USB JTAG write of 2 to instruction register returned Status: 0x0
usb_read_stream: returned Status: 0x0 from reading 32 bits,
USB JTAG write of 8 to instruction register returned Status: 0x0

set_chain 1

usb_write_stream: num_bytes=1, WriteDataBuffer contents for 5 bits:011

usb_write_stream: num_bytes=4, WriteDataBuffer contents for 32 bits:c357fa8ec3
usb_read_stream: returned Status: 0x0 from reading 4 bits,
usb_read_stream: returned Status: 0x0 from reading 32 bits,
USB JTAG write of 2 to instruction register returned Status: 0x0
usb_read_stream: returned Status: 0x0 from reading 32 bits,
USB JTAG write of 8 to instruction register returned Status: 0x0
OR1K CPU0 should be stalled
RE: Communication error when using or_debug_proxy on ML501
by olof on Aug 9, 2011
olof
Posts: 218
Joined: Feb 10, 2010
Last seen: Dec 17, 2018
I've been having problems with uploading files lately too. The OC admins are notified
RE: Communication error when using or_debug_proxy on ML501
by olof on Aug 9, 2011
olof
Posts: 218
Joined: Feb 10, 2010
Last seen: Dec 17, 2018
Sorry for the noise. Just wanted to inform that the uploading problems have been fixed now
RE: Communication error when using or_debug_proxy on ML501
by alonzo on Aug 23, 2011
alonzo
Posts: 23
Joined: Jan 23, 2009
Last seen: Nov 14, 2017
Hi all,
I am still having the same problem. I tried a pre-compiled bitstream, and a different computer (32 bits instead of 64) and the communication problem persists. It looks like I can see the TAP controller, but I cannot talk to the processor. At this point any idea is welcome. Please help.
RE: Communication error when using or_debug_proxy on ML501
by julius on Aug 24, 2011
julius
Posts: 363
Joined: Jul 1, 2008
Last seen: May 17, 2021
What debug cable are you using - an ORSoC USB JTAG cable?

Also, the pre-built image available for download from the wiki here should have ORPmon embedded in it and it should come up at boot with a little console. Can you at least see that over the UART (you can just plug in a serial cable to the serial port on the board to see UART output, or hook up the debug cable, which also has UART lines)?
RE: Communication error when using or_debug_proxy on ML501
by alonzo on Aug 25, 2011
alonzo
Posts: 23
Joined: Jan 23, 2009
Last seen: Nov 14, 2017
Hi,
I am using the ORSoC USB JTAG cable. It looks like neither the serial port in the board nor the serial port in the debug cable produce anything. I set minicom to 115200 8N1 and nothing. To make sure, I hooked an oscilloscope to the TX lines and I didn't see anything after the bitstream is loaded (done pin goes high). I checked everything I can think of in the board. The clock chip seems to be programmed correctly ( the demo programs work fine ). Not sure what else could be wrong.
Next thing I am thinking is to add a chipscope core to the code so I can monitor the internal signals and try to figure out what is wrong ...
Alonzo.
RE: Communication error when using or_debug_proxy on ML501
by alonzo on Sep 1, 2011
alonzo
Posts: 23
Joined: Jan 23, 2009
Last seen: Nov 14, 2017
Hi,
I would like to share with you guys what I've done to "solve" this. I borrow another board from a friend. I followed the same procedure to program the FPGA, used the same file. In this new board I can finally talk to the processor:

Connecting to OR1k via USB debug cable

Initialising USB JTAG interface
JTAG ID = a188a928
Stalling OR1K CPU0
Read npc = 000172bc ppc = 000172bc r1 = 000237d0
Waiting for gdb connection on localhost:55555
Press CTRL+c to exit.

I've checked both boards, inch by inch, and all jumpers and switches are the same. I have no idea what is wrong in the first board. I know the board works because we've used it for other projects. But I don't know why it doesn't work for this specific project. Anyways, I guess this post will go away as an "unsolved" mystery.
RE: Communication error when using or_debug_proxy on ML501
by wallento on Sep 2, 2011
wallento
Posts: 28
Joined: Jan 24, 2009
Last seen: Nov 8, 2018
Hi,

I won't close this one too early. I have the same issue on a XUPV5 board (identical to ML505 to ML506). I will also check another board, but nevertheless that seems dodgy to me.

Bye,
Stefan
RE: Communication error when using or_debug_proxy on ML501
by rpg2101 on Oct 24, 2013
rpg2101
Posts: 4
Joined: Apr 11, 2013
Last seen: Sep 28, 2014
I'm having the same issue in a s3adsp1800a board running the pre-build image of orpsoc for that board.

The output

Connecting to OR1k via USB debug cable

Device 0 Description - USB Serial Converter A
Device 1 Description - USB Serial Converter B
JTAG_OpenSpecifiedDevice USB Serial Converter A
FT_OpenEx status: 0
JTAG_OpenSpecifiedDevice status: 0 ()
Initialising USB JTAG interface
Setting JTAG clock frequency. Divisor = 0, TCK ~= 6000kHz.
JTAG low gpio pins values: (ADBUS7-ADBUS4):1100
JTAG high gpio pins values: (ACBUS3-ACBUS0): 1011
USB JTAG write of 2 to instruction register returned Status: 0x0
usb_read_stream: returned Status: 0x0 from reading 32 bits,
JTAG ID = c90021c0
USB JTAG write of 8 to instruction register returned Status: 0x0
Stalling OR1K CPU0

set_chain 1

usb_write_stream: num_bytes=1, WriteDataBuffer contents for 5 bits:011

usb_write_stream: num_bytes=4, WriteDataBuffer contents for 32 bits:c357fa8ec3
usb_read_stream: returned Status: 0x0 from reading 4 bits,
usb_read_stream: returned Status: 0x0 from reading 32 bits,
Communication error. Retrying
USB JTAG write of 2 to instruction register returned Status: 0x0
usb_read_stream: returned Status: 0x0 from reading 32 bits,
USB JTAG write of 8 to instruction register returned Status: 0x0

set_chain 1

usb_write_stream: num_bytes=1, WriteDataBuffer contents for 5 bits:011

usb_write_stream: num_bytes=4, WriteDataBuffer contents for 32 bits:c357fa8ec3
usb_read_stream: returned Status: 0x0 from reading 4 bits,
usb_read_stream: returned Status: 0x0 from reading 32 bits,
USB JTAG write of 2 to instruction register returned Status: 0x0
usb_read_stream: returned Status: 0x0 from reading 32 bits,
USB JTAG write of 8 to instruction register returned Status: 0x0

set_chain 1

usb_write_stream: num_bytes=1, WriteDataBuffer contents for 5 bits:011

usb_write_stream: num_bytes=4, WriteDataBuffer contents for 32 bits:c357fa8ec3
usb_read_stream: returned Status: 0x0 from reading 4 bits,
usb_read_stream: returned Status: 0x0 from reading 32 bits,
USB JTAG write of 2 to instruction register returned Status: 0x0
usb_read_stream: returned Status: 0x0 from reading 32 bits,
USB JTAG write of 8 to instruction register returned Status: 0x0
Resetting or1k

set_chain 1

usb_write_stream: num_bytes=1, WriteDataBuffer contents for 5 bits:011

usb_write_stream: num_bytes=4, WriteDataBuffer contents for 32 bits:c357fa8ec3
usb_read_stream: returned Status: 0x0 from reading 4 bits,
usb_read_stream: returned Status: 0x0 from reading 32 bits,
USB JTAG write of 2 to instruction register returned Status: 0x0
usb_read_stream: returned Status: 0x0 from reading 32 bits,
USB JTAG write of 8 to instruction register returned Status: 0x0
Resetting or1k

set_chain 1

usb_write_stream: num_bytes=1, WriteDataBuffer contents for 5 bits:011

usb_write_stream: num_bytes=4, WriteDataBuffer contents for 32 bits:c357fa8ec3
usb_read_stream: returned Status: 0x0 from reading 4 bits,
usb_read_stream: returned Status: 0x0 from reading 32 bits,
USB JTAG write of 2 to instruction register returned Status: 0x0
usb_read_stream: returned Status: 0x0 from reading 32 bits,
USB JTAG write of 8 to instruction register returned Status: 0x0
Resetting or1k

set_chain 1

usb_write_stream: num_bytes=1, WriteDataBuffer contents for 5 bits:011

usb_write_stream: num_bytes=4, WriteDataBuffer contents for 32 bits:c357fa8ec3
usb_read_stream: returned Status: 0x0 from reading 4 bits,
usb_read_stream: returned Status: 0x0 from reading 32 bits,
USB JTAG write of 2 to instruction register returned Status: 0x0
usb_read_stream: returned Status: 0x0 from reading 32 bits,
USB JTAG write of 8 to instruction register returned Status: 0x0
Stalling or1k

set_chain 1

usb_write_stream: num_bytes=1, WriteDataBuffer contents for 5 bits:011

usb_write_stream: num_bytes=4, WriteDataBuffer contents for 32 bits:c357fa8ec3
usb_read_stream: returned Status: 0x0 from reading 4 bits,
usb_read_stream: returned Status: 0x0 from reading 32 bits,
USB JTAG write of 2 to instruction register returned Status: 0x0
usb_read_stream: returned Status: 0x0 from reading 32 bits,
USB JTAG write of 8 to instruction register returned Status: 0x0

set_chain 1

usb_write_stream: num_bytes=1, WriteDataBuffer contents for 5 bits:011

usb_write_stream: num_bytes=4, WriteDataBuffer contents for 32 bits:c357fa8ec3
usb_read_stream: returned Status: 0x0 from reading 4 bits,
usb_read_stream: returned Status: 0x0 from reading 32 bits,
USB JTAG write of 2 to instruction register returned Status: 0x0
usb_read_stream: returned Status: 0x0 from reading 32 bits,
USB JTAG write of 8 to instruction register returned Status: 0x0
or1k should be stalled


Any help ?
no use no use 1/1 no use no use
© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.