



how to run ecos in or1ksim
by Unknown on Mar 30, 2004 |
Not available! | ||
Dear All and Scott
I compile and bulid "hello ecos world" and invoke or1ksim and ddd with
or32-elf-gdb
show the machine code window :
Dump of assembler code for function main:
0xf00012a4 : l.addi r1,r1,0xfffffffc
0xf00012a8 : l.sw 0x0(r1),r2
0xf00012ac : l.addi r2,r1,0x4
0xf00012b0 : l.addi r11,r0,0x0
0xf00012b4 : l.lwz r2,0x0(r1)
0xf00012b8 : l.jr r9
0xf00012bc : l.addi r1,r1,0x4
End of assembler dump.
and then issue the command "target jtag jtag://localhost:9999
(gdb) target jtag jtag://localhost:9999
Remote or1k debugging using jtag://localhost:9999
0x00000104 in ?? ()
~~~ not main ?? why
(gdb)
the machine code window becomes :
Dump of assembler code from 0x104 to 0x204:
0x104: l.j 0x0
0x108: l.j 0x0
0x10c: l.j 0x0
0x110: l.j 0x0
0x114: l.j 0x0
0x118: l.j 0x0
0x11c: l.j 0x0
0x120: l.j 0x0
0x124: l.j 0x0
0x128: l.j 0x0
0x12c: l.j 0x0
0x130: l.j 0x0
0x134: l.j 0x0
0x138: l.j 0x0
why and how should I do ?
thanks a lot
BR
Ken
|
how to run ecos in or1ksim
by Unknown on Mar 30, 2004 |
Not available! | ||
Dear All
I find that
it is exception_reset :
0x100: l.j 0x0
why can't I compile it correctly ?
thanks for your help
BR
Ken
----- Original Message -----
From: kenyeby@y...kenyeby@y...>
To:
Date: Tue Mar 30 03:27:30 CEST 2004
Subject: [openrisc] how to run ecos in or1ksim
Dear All and Scott
I compile and bulid "hello ecos world" and invoke or1ksim
and ddd with
or32-elf-gdb
show the machine code window :
Dump of assembler code for function main:
0xf00012a4 : l.addi r1,r1,0xfffffffc
0xf00012a8 : l.sw 0x0(r1),r2
0xf00012ac : l.addi r2,r1,0x4
0xf00012b0 : l.addi r11,r0,0x0
0xf00012b4 : l.lwz r2,0x0(r1)
0xf00012b8 : l.jr r9
0xf00012bc : l.addi r1,r1,0x4
End of assembler dump.
and then issue the command "target jtag jtag://localhost:9999
(gdb) target jtag jtag://localhost:9999
Remote or1k debugging using jtag://localhost:9999
0x00000104 in ?? ()
~~~ not main ?? why
(gdb)
the machine code window becomes :
Dump of assembler code from 0x104 to 0x204:
0x104: l.j 0x0
0x108: l.j 0x0
0x10c: l.j 0x0
0x110: l.j 0x0
0x114: l.j 0x0
0x118: l.j 0x0
0x11c: l.j 0x0
0x120: l.j 0x0
0x124: l.j 0x0
0x128: l.j 0x0
0x12c: l.j 0x0
0x130: l.j 0x0
0x134: l.j 0x0
0x138: l.j 0x0
why and how should I do ?
thanks a lot
BR
Ken
|
how to run ecos in or1ksim
by Unknown on Mar 30, 2004 |
Not available! | ||
Hey!
if you compile ecos to run from ROM, then enable mc in simulator and
it should work. if you want to simulate runing it from ram, you'd have
to recompile ecos with (i think) CYG_HAL_STARTUP RAM, and then just turn
mc off in the simulator.
best regards,
p.
* kenyeby@yahoo.com.tw (kenyeby@yahoo.com.tw) wrote:
Dear All
I find that
it is exception_reset :
0x100: l.j 0x0
why can't I compile it correctly ?
thanks for your help
BR
Ken
----- Original Message -----
From: kenyeby@y...kenyeby@y...>
To:
Date: Tue Mar 30 03:27:30 CEST 2004
Subject: [openrisc] how to run ecos in or1ksim
> Dear All and Scott
>
> I compile and bulid "hello ecos world" and invoke or1ksim
> and ddd with
> or32-elf-gdb
> show the machine code window :
> Dump of assembler code for function main:
> 0xf00012a4 : l.addi r1,r1,0xfffffffc
> 0xf00012a8 : l.sw 0x0(r1),r2
> 0xf00012ac : l.addi r2,r1,0x4
> 0xf00012b0 : l.addi r11,r0,0x0
> 0xf00012b4 : l.lwz r2,0x0(r1)
> 0xf00012b8 : l.jr r9
> 0xf00012bc : l.addi r1,r1,0x4
> End of assembler dump.
> and then issue the command "target jtag jtag://localhost:9999
> (gdb) target jtag jtag://localhost:9999
> Remote or1k debugging using jtag://localhost:9999
> 0x00000104 in ?? ()
> ~~~ not main ?? why
> (gdb)
> the machine code window becomes :
> Dump of assembler code from 0x104 to 0x204:
> 0x104: l.j 0x0
> 0x108: l.j 0x0
> 0x10c: l.j 0x0
> 0x110: l.j 0x0
> 0x114: l.j 0x0
> 0x118: l.j 0x0
> 0x11c: l.j 0x0
> 0x120: l.j 0x0
> 0x124: l.j 0x0
> 0x128: l.j 0x0
> 0x12c: l.j 0x0
> 0x130: l.j 0x0
> 0x134: l.j 0x0
> 0x138: l.j 0x0
>
> why and how should I do ?
> thanks a lot
> BR
> Ken
>
>
_______________________________________________
http://www.opencores.org/mailman/listinfo/openrisc
|
how to run ecos in or1ksim
by Unknown on Mar 31, 2004 |
Not available! | ||
Dear Matjaz and All
I do what you told ...
But it still got the same messages ...
1 rom mode fails , this is the mode I run before
2 ram mode still fails
so what is the next I can try ..?
thanks a lot
BR
Ken
----- Original Message -----
From: Matjaz Breskvarphoenix@o...>
To:
Date: Tue Mar 30 18:36:03 CEST 2004
Subject: [openrisc] how to run ecos in or1ksim
Hey!
if you compile ecos to run from ROM, then enable mc in simulator and it should work. if you want to simulate runing it from ram, you'd have to recompile ecos with (i think) CYG_HAL_STARTUP RAM, and then just
turn
mc off in the simulator.
best regards,
p.
* kenyeby@y... (kenyeby@y...) wrote:
> Dear All
> I find that
> it is exception_reset :
> 0x100: l.j 0x0
> why can't I compile it correctly ?
> thanks for your help
> BR
> Ken
>
> ----- Original Message -----
> From: kenyeby@y...kenyeby@y...>
> To:
> Date: Tue Mar 30 03:27:30 CEST 2004
> Subject: [openrisc] how to run ecos in or1ksim
>
> Dear All and Scott
> > I compile and bulid "hello ecos world" and invoke or1ksim
> and ddd with
> or32-elf-gdb
> show the machine code window :
> Dump of assembler code for function main:
> 0xf00012a4 : l.addi r1,r1,0xfffffffc
> 0xf00012a8 : l.sw 0x0(r1),r2
> 0xf00012ac : l.addi r2,r1,0x4
> 0xf00012b0 : l.addi r11,r0,0x0
> 0xf00012b4 : l.lwz r2,0x0(r1)
> 0xf00012b8 : l.jr r9
> 0xf00012bc : l.addi r1,r1,0x4
> End of assembler dump.
> and then issue the command "target jtag
jtag://localhost:9999
> (gdb) target jtag jtag://localhost:9999
> Remote or1k debugging using jtag://localhost:9999
> 0x00000104 in ?? ()
> ~~~ not main ?? why
> (gdb)
> the machine code window becomes :
> Dump of assembler code from 0x104 to 0x204:
> 0x104: l.j 0x0
> 0x108: l.j 0x0
> 0x10c: l.j 0x0
> 0x110: l.j 0x0
> 0x114: l.j 0x0
> 0x118: l.j 0x0
> 0x11c: l.j 0x0
> 0x120: l.j 0x0
> 0x124: l.j 0x0
> 0x128: l.j 0x0
> 0x12c: l.j 0x0
> 0x130: l.j 0x0
> 0x134: l.j 0x0
> 0x138: l.j 0x0
>
> why and how should I do ?
> thanks a lot
> BR
> Ken
>
>
> _______________________________________________
> http://www.opencores.org/mailman/listinfo/openrisc
|
how to run ecos in or1ksim
by Unknown on Apr 1, 2004 |
Not available! | ||
Hi!
Can you please post also all the output
-from simulator including the command line and output
-of 'or32-elf-objdump -h '
best regards,
p.
|



