> > >MN10300 Architectural Simulator Setup >
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
"> REL="HOME"
TITLE="eCos User Guide"
HREF="ecos-user-guide.html"> REL="UP"
TITLE="Target Setup"
HREF="appendix-target-setup.html"> REL="PREVIOUS"
TITLE="Target Setup"
HREF="appendix-target-setup.html"> REL="NEXT"
TITLE="AM33 STB Hardware Setup"
HREF="setup-am33-stb.html"> > CLASS="SECT1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
> CLASS="NAVHEADER"
> SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
> > COLSPAN="3"
ALIGN="center"
>eCos User Guide > > > WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
> HREF="appendix-target-setup.html"
ACCESSKEY="P"
>Prev > > WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Appendix A. Target Setup > WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
> HREF="setup-am33-stb.html"
ACCESSKEY="N"
>Next > > > > ALIGN="LEFT"
WIDTH="100%"> > CLASS="SECT1"
> CLASS="SECT1"
> NAME="SETUP-MN10300-SIM">MN10300 Architectural Simulator Setup > >The MN10300 simulator is an architectural simulator for the
Matsushita MN10300 that implements all features of the microprocessor
necessary to run eCos. The current implementation provides accurate
simulation of the instruction set, interrupt controller, timers,
and serial I/O. > >In this release, you can run the same eCos binaries in the
simulator that can run on target hardware, if built for ROM start-up,
with the exception of those that use the watchdog timer. > >However, note that AM33 devices required to run eCos are not
simulated; therefore you cannot run eCos binaries built for the
AM33 under the simulator. For the AM33, the simulator is effectively
an instruction-set only simulator. > >To simplify connection to the simulator, you are advised to
create a GDB macro by putting the following code in your personal
GDB start-up file (gdb.ini on Windows and .gdbinit on UNIX). > BORDER="5"
BGCOLOR="#E0E0F0"
WIDTH="70%"
> > > CLASS="PROGRAMLISTING"
>define msim
target sim --board=stdeval1 --memory-region 0x34004000,0x8
rbreak cyg_test_exit
rbreak cyg_assert_fail
end > > > > >You can then connect to the simulator by invoking the command BORDER="5"
BGCOLOR="#E0E0F0"
WIDTH="70%"
> > > CLASS="PROGRAMLISTING"
>msim > > > > on
the command line: > BORDER="5"
BGCOLOR="#E0E0F0"
WIDTH="70%"
> > > CLASS="PROGRAMLISTING"
>(gdb) msim > > > > >You can achieve the same effect by typing out the macro’s
content on the command line if necessary. > > CLASS="NAVFOOTER"
> ALIGN="LEFT"
WIDTH="100%"> SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
> > WIDTH="33%"
ALIGN="left"
VALIGN="top"
> HREF="appendix-target-setup.html"
ACCESSKEY="P"
>Prev > > WIDTH="34%"
ALIGN="center"
VALIGN="top"
> HREF="ecos-user-guide.html"
ACCESSKEY="H"
>Home > > WIDTH="33%"
ALIGN="right"
VALIGN="top"
> HREF="setup-am33-stb.html"
ACCESSKEY="N"
>Next > > > > WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Target Setup > WIDTH="34%"
ALIGN="center"
VALIGN="top"
> HREF="appendix-target-setup.html"
ACCESSKEY="U"
>Up > > WIDTH="33%"
ALIGN="right"
VALIGN="top"
>AM33 STB Hardware Setup > > > > > >