public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* RE: [ECOS] How to use the simulator?
@ 2003-10-09  0:12 caocangmou
  0 siblings, 0 replies; 3+ messages in thread
From: caocangmou @ 2003-10-09  0:12 UTC (permalink / raw)
  To: ecos-discuss

I'm really confused ,can someone help me ?



----- Original Message -----
From:caocangmou <caocangmou@sina.com>
To:ecos-discuss@sources.redhat.com
Subject:[ECOS] How to use the simulator?
Date:Wed, 08 Oct 2003 11:42:50 +0800
 >I'm using hitachi 2168.I want to use gdb/simulator for debugging. My configuration is fairly simple,using infra ,ecos kernel , HAL h8/300h variant ,and my 2168 board platform .when I run gdb in cygwin,it performs as follow:  
 >$ h8300-elf-gdb hawk
 >GNU gdb 5.2.1
 >Copyright 2002 Free Software Foundation, Inc.
 >GDB is free software, covered by the GNU General Public License, and you are
 >welcome to change it and/or distribute copies of it under certain conditions.
 >Type "show copying" to see the conditions.
 >There is absolutely no warranty for GDB.  Type "show warranty" for details.
 >This GDB was configured as "--host=i686-pc-cygwin --target=h8300-elf"...
 >(gdb) target sim
 >Connected to the simulator.
 >(gdb) load
 >Loading section .vectors, size 0x100 vma 0x0
 >Loading section .text, size 0x9e36 vma 0x2000
 >Loading section .rodata, size 0x442 vma 0xbe36
 >Loading section .int_fook_table, size 0x100 vma 0xffe080
 >Loading section .data, size 0x7dc vma 0xffe180
 >Start address 0x2000
 >Transfer rate: 352928 bits in <1 sec.
 >(gdb) run
 >Starting program: /src/hawk/hawk
 >
 >Program received signal SIGILL, Illegal instruction.
 >0x00002006 in __start ()
 >(gdb) disassemble __start
 >Dump of assembler code for function __start:
 >0x2000 <__start>:       7a 07 00 ff 18 10 mov.l #0xff1810,er7
 >0x2006 <__start+6>:     07 80             ldc   #0x80,ccr
 >0x2008 <__start+8>:     07 c0             ldc   #0xc0,ccr
 >0x200a <__start+10>:    7a 00 00 00 20 22 mov.l #0x2022,er0
 >0x2010 <__start+16>:    79 09 00 08       mov.w #0x8,e1
 >End of assembler dump.
 >(gdb)
 >
 >I do not know why should this happen.How to use the simulator?
 >Thanks in advance.
 >
 >______________________________________
 >
 >===================================================================
 >
 >-- 
 >Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
 >and search the list archive: http://sources.redhat.com/ml/ecos-discuss
 >
 >
 >

______________________________________

===================================================================

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ECOS] How to use the simulator?
  2003-10-08  3:43 caocangmou
@ 2003-10-09 10:48 ` Nick Garnett
  0 siblings, 0 replies; 3+ messages in thread
From: Nick Garnett @ 2003-10-09 10:48 UTC (permalink / raw)
  To: caocangmou; +Cc: ecos-discuss

caocangmou <caocangmou@sina.com> writes:

> I'm using hitachi 2168.I want to use gdb/simulator for debugging. My
> configuration is fairly simple,using infra ,ecos kernel , HAL
> h8/300h variant ,and my 2168 board platform .when I run gdb in
> cygwin,it performs as follow:


Have you downloaded the updated H8/300H that I checked in a few days
ago? If not then do so. Also you need to fetch the toolchain patches
from here:

http://www.ecoscentric.com/devzone/h8300.shtml

And rebuild the toolchain.


Finally, you can only run executables built for the h8300h_sim or h8s_sim
targets on the simulator. Executables built for a specific board will
not work.

-- 
Nick Garnett                    eCos Kernel Architect
http://www.ecoscentric.com      The eCos and RedBoot experts


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ECOS] How to use the simulator?
@ 2003-10-08  3:43 caocangmou
  2003-10-09 10:48 ` Nick Garnett
  0 siblings, 1 reply; 3+ messages in thread
From: caocangmou @ 2003-10-08  3:43 UTC (permalink / raw)
  To: ecos-discuss

I'm using hitachi 2168.I want to use gdb/simulator for debugging. My configuration is fairly simple,using infra ,ecos kernel , HAL h8/300h variant ,and my 2168 board platform .when I run gdb in cygwin,it performs as follow:  
$ h8300-elf-gdb hawk
GNU gdb 5.2.1
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-cygwin --target=h8300-elf"...
(gdb) target sim
Connected to the simulator.
(gdb) load
Loading section .vectors, size 0x100 vma 0x0
Loading section .text, size 0x9e36 vma 0x2000
Loading section .rodata, size 0x442 vma 0xbe36
Loading section .int_fook_table, size 0x100 vma 0xffe080
Loading section .data, size 0x7dc vma 0xffe180
Start address 0x2000
Transfer rate: 352928 bits in <1 sec.
(gdb) run
Starting program: /src/hawk/hawk

Program received signal SIGILL, Illegal instruction.
0x00002006 in __start ()
(gdb) disassemble __start
Dump of assembler code for function __start:
0x2000 <__start>:       7a 07 00 ff 18 10 mov.l #0xff1810,er7
0x2006 <__start+6>:     07 80             ldc   #0x80,ccr
0x2008 <__start+8>:     07 c0             ldc   #0xc0,ccr
0x200a <__start+10>:    7a 00 00 00 20 22 mov.l #0x2022,er0
0x2010 <__start+16>:    79 09 00 08       mov.w #0x8,e1
End of assembler dump.
(gdb)

I do not know why should this happen.How to use the simulator?
Thanks in advance.

______________________________________

===================================================================

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-10-09 10:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-09  0:12 [ECOS] How to use the simulator? caocangmou
  -- strict thread matches above, loose matches on Subject: below --
2003-10-08  3:43 caocangmou
2003-10-09 10:48 ` Nick Garnett

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).