public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "Lewin A.R.W. Edwards" <larwe@larwe.com>
To: Jonathan Larmour <jlarmour@redhat.com>,
	Huang Qiang <jameshq@liverpool.ac.uk>
Cc: eCos <ecos-discuss@sources.redhat.com>
Subject: Re: [ECOS] How to create a Bin file for downloading
Date: Tue, 24 Apr 2001 06:18:00 -0000	[thread overview]
Message-ID: <4.3.2.7.2.20010424090428.0343a5f0@mail.larwe.com> (raw)
In-Reply-To: <3AE5512C.A2D80E5E@redhat.com>

>Huang Qiang wrote:
> > While using eCos configuration tool and the cross compiler and linker 
> how to
> > build a program to be store in the target's flash memory and start it 
> at the
> > startup?
>
>How to get it onto your board is board dependent. For the EB40 I don't know
>I'm afraid.

Atmel provides, on the EB40's CD-ROM, sources for a flash tool that runs in 
RAM. The procedure is:

* make sure the switch is set for low 64K boot
* boot Angel or GDB stubs on the EB40
* connect with GDB/Insight and upload the flasher program to RAM
* run the flasher program, which somehow accepts the new binary over the 
serial link (I think a raw binary upload, I don't recall right now).
* once complete, flip the switch and reset. (your app gets burned into the 
upper 64K of flash).

I'm 99% finished a little RAM-loaded booter application that is simpler 
(for me) to use. The procedure for my app is:

* boot the EB40's "serial bootloader" by holding down FIQ while resetting
* use the BINCOM utility to upload my app to RAM
* press IRQ0 to start execution
* use Hyperterminal to upload your binary using Xmodem
* wait for LED to go out and you're ready to go

=== Lewin A.R.W. Edwards (Embedded Engineer)
Work: http://www.digi-frame.com/
Personal: http://www.zws.com/ and http://www.larwe.com/

"... a man who is endowed with real qualities of leadership will be tempted 
to refrain from taking part in political life; because [...] the situation 
does not call for a man who has a capacity for constructive statesmanship 
but rather for a man who is capable of bargaining for the favour of the 
majority. Thus the situation will appeal to small minds and will attract 
them accordingly."

      parent reply	other threads:[~2001-04-24  6:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-24  2:27 Huang Qiang
2001-04-24  3:10 ` Jonathan Larmour
2001-04-24  3:19   ` Huang Qiang
2001-04-24  3:24     ` Jonathan Larmour
2001-04-24  6:18   ` Lewin A.R.W. Edwards [this message]

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=4.3.2.7.2.20010424090428.0343a5f0@mail.larwe.com \
    --to=larwe@larwe.com \
    --cc=ecos-discuss@sources.redhat.com \
    --cc=jameshq@liverpool.ac.uk \
    --cc=jlarmour@redhat.com \
    /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).