OpenCores
no use no use 1/1 no use no use
Problem Loading the Program
by hafez on Jan 10, 2013
hafez
Posts: 2
Joined: Jan 23, 2009
Last seen: Feb 8, 2013
Hi All ,

I am trying to perform debugging the openrisc systems on the FPGA. I used this link, http://www.rte.se/blog/blogg-modesty-corex/debugging-openrisc-1200/2.13 as a reference.
I managed to connect the proxy and jtag tap controller, connecting gdb to target and compiling the c program. However, as I wanted to load the program, I got the following message:

This GDB was configured as "--host=i686-pc-linux-gnu --target=or32-elf".
For bug reporting instructions, please see:
." target="_blank">http://bugzilla.opencores.org/>.
(gdb) target remote localhost:55555
Remote debugging using localhost:55555
0x00000104 in ?? ()
(gdb) file uart.elf
A program is being debugged already.
Are you sure you want to change the file? (y or n) y
Reading symbols from /home/hafez/sw/ormcu_driver/driver/DINI/uart.elf...done.
(gdb) load
Loading section .vectors, size 0x2000 lma 0x0
Load failed
(gdb)

Is there any suggestion to solve this issue.

Thanks and Regards,
Hafez
RE: Problem Loading the Program
by jeremybennett on Jan 10, 2013
jeremybennett
Posts: 815
Joined: May 29, 2008
Last seen: Jun 13, 2019

Hi Hafez

Could you try using the command "set debug remote 1" before the "load" command and then report the output you get from the "load" command. It looks like the proxy is failing to write the image to the target, and this may give some indication of why.

Best wishes,

Jeremy

--
Tel: +44 (1590) 610184
Cell: +44 (7970) 676050
SkypeID: jeremybennett
Email: jeremy.bennett@embecosm.com
Web: www.embecosm.com

RE: Problem Loading the Program
by hafez on Jan 11, 2013
hafez
Posts: 2
Joined: Jan 23, 2009
Last seen: Feb 8, 2013
Hi Jeremy,

Attached is the output of the load command. How do I know whether the problem is caused by the proxy or jtag connection or other things? I managed to connect the jtag debugger to the board by using the command : ./or_debug_proxy -r 55555

Thanks and Regards,
Hafez


Hi Hafez

Could you try using the command "set debug remote 1" before the "load" command and then report the output you get from the "load" command. It looks like the proxy is failing to write the image to the target, and this may give some indication of why.

Best wishes,

Jeremy

--
Tel: +44 (1590) 610184
Cell: +44 (7970) 676050
SkypeID: jeremybennett
Email: jeremy.bennett@embecosm.com
Web: www.embecosm.com

gdb.txt (15 kb)
RE: Problem Loading the Program
by sedora on May 3, 2013
sedora
Posts: 2
Joined: Dec 20, 2012
Last seen: Jul 11, 2013
I have the same problem when loading the program.Does anyone have any idea about this?
no use no use 1/1 no use no use
© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.