openrisc, jp1 jtag debug utility

Field Programmable Gate Array based computing systems

openrisc, jp1 jtag debug utility

Postby jeff murphy » Tue Aug 30, 2005 8:15 am

i've worked thru all of the openrisc HW and SW steps. everything went
well, or at leas seemed to. however, when i
startup the jp1 utility, it connects to my board (xupv2) but
the "Read" and "Expected" numbers to do match at all. the HW doc says
if this happens to "check the onchip-ram module", but doesnt give any
more details. i'm looking for some hints...

thanks

jeff

# ./jp1 xpc3 9999
Connected to parallel port at 378
Dropping root privileges.
Read npc = 00000100 ppc = 00000104 r1 = 00000000
Expected npc = 4000000c ppc = 40000024 r1 = 00000005
Read npc = 00000100 ppc = 00000104 r1 = 00000000
Expected npc = 4000000c ppc = 40000024 r1 = 00000008
Read npc = 00000100 ppc = 00000104 r1 = 00000000
Expected npc = 40000024 ppc = 40000020 r1 = 0000000b
Read npc = 00000100 ppc = 00000104 r1 = 00000000
Expected npc = 40000020 ppc = 4000001c r1 = 00000018
Read npc = 00000100 ppc = 00000104 r1 = 00000000
Expected npc = 4000001c ppc = 40000018 r1 = 00000031
Read npc = 00000100 ppc = 00000104 r1 = 00000000
Expected npc = 40000020 ppc = 4000001c r1 = 00000032
Read npc = 00000100 ppc = 00000104 r1 = 00000000
Expected npc = 40000010 ppc = 4000000c r1 = 00000063
Read npc = 00000100 ppc = 00000104 r1 = 00000000
Expected npc = 40000024 ppc = 40000020 r1 = 00000065
Read npc = 00000100 ppc = 00000104 r1 = 00000000
Expected npc = 4000000c ppc = 40000024 r1 = 000000c9
result = 5eadeccd
Dropping root privileges.
JTAG Proxy server started on port 9999
Press CTRL+c to exit.
jeff murphy
 

Re: openrisc, jp1 jtag debug utility

Postby Javier Castillo » Tue Aug 30, 2005 4:16 pm

If you are using new debug interface you must use jp2 instead of jp1

Javier Castillo
www.opensocdesign.com



On 29 Aug 2005 20:22:22 -0700, "jeff murphy" <jeff.murphy@gmail.com>
wrote:

i've worked thru all of the openrisc HW and SW steps. everything went
well, or at leas seemed to. however, when i
startup the jp1 utility, it connects to my board (xupv2) but
the "Read" and "Expected" numbers to do match at all. the HW doc says
if this happens to "check the onchip-ram module", but doesnt give any
more details. i'm looking for some hints...

thanks

jeff

# ./jp1 xpc3 9999
Connected to parallel port at 378
Dropping root privileges.
Read npc = 00000100 ppc = 00000104 r1 = 00000000
Expected npc = 4000000c ppc = 40000024 r1 = 00000005
Read npc = 00000100 ppc = 00000104 r1 = 00000000
Expected npc = 4000000c ppc = 40000024 r1 = 00000008
Read npc = 00000100 ppc = 00000104 r1 = 00000000
Expected npc = 40000024 ppc = 40000020 r1 = 0000000b
Read npc = 00000100 ppc = 00000104 r1 = 00000000
Expected npc = 40000020 ppc = 4000001c r1 = 00000018
Read npc = 00000100 ppc = 00000104 r1 = 00000000
Expected npc = 4000001c ppc = 40000018 r1 = 00000031
Read npc = 00000100 ppc = 00000104 r1 = 00000000
Expected npc = 40000020 ppc = 4000001c r1 = 00000032
Read npc = 00000100 ppc = 00000104 r1 = 00000000
Expected npc = 40000010 ppc = 4000000c r1 = 00000063
Read npc = 00000100 ppc = 00000104 r1 = 00000000
Expected npc = 40000024 ppc = 40000020 r1 = 00000065
Read npc = 00000100 ppc = 00000104 r1 = 00000000
Expected npc = 4000000c ppc = 40000024 r1 = 000000c9
result = 5eadeccd
Dropping root privileges.
JTAG Proxy server started on port 9999
Press CTRL+c to exit.
Javier Castillo
 

Re: openrisc, jp1 jtag debug utility

Postby jeff murphy » Wed Aug 31, 2005 5:58 am

i tried jp2. it doesnt connect at all. more hints welcome!

# ./jp2 xpc3 9999
Connected to parallel port at 378
Dropping root privileges.
JTAG ID = f77db57b
Stall 8051
RETRY
RETRY
RETRY
RETRY
JTAG ID = f77db57b
RETRY
JTAG ID = f77db57b
RETRY
JTAG ID = f77db57b
RETRY
JTAG ID = f77db57b
jeff murphy
 

Re: openrisc, jp1 jtag debug utility

Postby Javier Castillo » Wed Aug 31, 2005 8:15 am

Edit jp2 file and inside the main() delete the call to dbg_test
function

Regards

Javier Castillo

On 30 Aug 2005 17:58:49 -0700, "jeff murphy" <jeff.murphy@gmail.com>
wrote:

i tried jp2. it doesnt connect at all. more hints welcome!

# ./jp2 xpc3 9999
Connected to parallel port at 378
Dropping root privileges.
JTAG ID = f77db57b
Stall 8051
RETRY
RETRY
RETRY
RETRY
JTAG ID = f77db57b
RETRY
JTAG ID = f77db57b
RETRY
JTAG ID = f77db57b
RETRY
JTAG ID = f77db57b
Javier Castillo
 

Re: openrisc, jp1 jtag debug utility

Postby jeff murphy » Wed Sep 07, 2005 5:56 am

still no joy.

gdb reports:

status -1 ffffffff
An error was reported by the proxy server. The command was:
"JTAG_COMMAND_READ",3220120016,0x00000004
The command returned -1.


since i'm working with a virtex2p, i didnt do the CLKDLL part of the
instructions. the build tools report an expected clock speed of 75 Mhz.
how critical is the CLKDLL step? at what clock speeds is it necessary
to employ a clock divider?

i've followed all of the other steps, twice in fact from scratch, with
the same results both times. i'd very much like to get openrisc running
on this board...
jeff murphy
 


Return to FPGA

Who is online

Users browsing this forum: No registered users and 0 guests

cron