public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Gary Thomas <gthomas@redhat.com>
To: "amassa@cts.com" <amassa@cts.com>
Cc: ecos-discuss@sourceware.cygnus.com,
	Jonathan Larmour <jlarmour@redhat.co.uk>
Subject: RE: [ECOS] Re: MBX Board
Date: Tue, 30 May 2000 15:10:00 -0000	[thread overview]
Message-ID: <XFMail.000530161043.gthomas@redhat.com> (raw)
In-Reply-To: <200005302201.PAA70440@batman.cts.com>

On 30-May-00 amassa@cts.com wrote:
> But then there is no way to get the EPPC-bug firmware back into the Flash,
> right?  Or can it be copied from the socketed boot ROM?
> 

My board came with EPPCbug in both of them.  Simply changing the jumper allows
me to execute from one or the other.  Thus you can program the eCos GDB stubs
into the flash and still have EPPCbug available.

> Did you just convert D:\Program Files\Red
> Hat\eCos\loaders\powerpc-mbx\gdb_module.bin into an srec format (using
> objcopy) and then download that?  If so, what switches did you use on
> objcopy.
> 

It was as simple as 
  powerpc-eabi-objcopy -O binary gdb_module.bin gdb_module.hex

> I know it might not make much sense but can I download the gdb_module.bin
> file into DRAM and execute it there and have it take control of the board,
> giving me GDB support?
> 

Not really.  That module is only "comfortable" running from ROM/flash.

> Can I just follow the instructions in the file
> D:\Program Files\Red
> Hat\eCos\packages\hal\powerpc\mbx\v1_3_1\src\Notes_GDB_stub?
> 

You'd just end up recreating the 'gdb_module.bin' file above.

> I'm a little confused with the EPPC-bug commands detailed in the
> Notes_GDB_stub file.  LO 0, downloads the code into DRAM?  And then what
> does the PFLASH 40000 60000 fc000000 instruction do?
> 

Actually programs the flash chip with the contents of memory, starting
at location 0x40000.

> Thanks,
> Anthony
> 
> Gary Thomas <gthomas@redhat.com> writes:
>>The MBX boards we have actually have two separate flash chips.  Based on
> the
>>use of jumper J4 you can select between the two.  My board has EPPC-bug in
> one
>>flash chip and eCos GDB stubs in the other.
>>
>>On 30-May-00 Jonathan Larmour wrote:
>>> "amassa@cts.com" wrote:
>>>> 
>>>> I am using the MBX860 board for development.  This board has the
> EPPC-bug
>>>> firmware programmed into flash.
>>>> 
>>>> What I want to do is to be able to download my own programs - initially
> just
>>>> a basic program.  I would like to have GDB support present as well.
>>>> 
>>>> I don't know if I need to compile a gdb stub and download that first
> into
>>>> RAM and then use that to connect insight and download my application
> code.
>>>> 
>>>> I would like to leave the EPPC-bug firmware as is in ROM, and not
> program
>>>> over it.
>>> 
>>> You should include the GDB support in the application you download, in
> the
>>> form of GDB stubs.
>>> 
>>> To do this, go to the "eCos HAL" package and under "Source-level
> debugging
>>> support" there is the "Include GDB stubs in HAL" option (aka
>>> CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS), which you should enable. If you
> want
>>> Ctrl-C to work with stubs enabled, you should also enable GDB break
> support
>>> for stubs (CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT).
>>> 
>>> Jesper may have some more input.
>>> 
>>> Jifl
>>> -- 
>>> Red Hat, 35 Cambridge Place, Cambridge, UK. CB2 1NS  Tel: +44 (1223)
> 728762
>>> "Plan to be spontaneous tomorrow."  ||  These opinions are all my own
> fault
>>> 
> 

       reply	other threads:[~2000-05-30 15:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200005302201.PAA70440@batman.cts.com>
2000-05-30 15:10 ` Gary Thomas [this message]
     [not found] <200006071617.JAA24571@batman.cts.com>
2000-06-08  0:41 ` [ECOS] " Jesper Skov
     [not found] <200006061724.KAA77998@batman.cts.com>
2000-06-06 23:51 ` Jesper Skov
     [not found] <200005302219.PAA71424@batman.cts.com>
2000-05-30 16:38 ` [ECOS] " Gary Thomas
     [not found] <200005302113.OAA67770@batman.cts.com>
2000-05-30 14:25 ` Jonathan Larmour
2000-05-30 14:29   ` Gary Thomas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=XFMail.000530161043.gthomas@redhat.com \
    --to=gthomas@redhat.com \
    --cc=amassa@cts.com \
    --cc=ecos-discuss@sourceware.cygnus.com \
    --cc=jlarmour@redhat.co.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).