public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Downloading to the flash on ARM E7T
@ 2001-08-30  8:17 Lars.Lindqvist
  2001-09-04  5:03 ` Jesper Skov
  0 siblings, 1 reply; 2+ messages in thread
From: Lars.Lindqvist @ 2001-08-30  8:17 UTC (permalink / raw)
  To: ecos-discuss; +Cc: Lars.Lindqvist

Hi,

I have problems downloading applications to the flash on
the ARM Evaluator 7T board. I have tried to find some
information on this topic but failed. I have gone thru
the following steps (according to the BSL reference, i.e.
ch.4 of the E7T users guide):

1. Compiled the source into an object file. The Startup
   type in the eCos configuration is set to ROM. When the
   Startup type is set to RAM this sw can be downloaded
   and run in ram without problems using GDB/Redboot.

2. Using 'arm-elf-objcopy --strip-debug' the debugging
   symbols are removed from the object file.

3. A binary file is then created from the file resulting
   from 2. using 'arm-elf-objcopy -O binary'

4. The result of 3. is uuencoded.

5. Now I use the command flashload of the Bootstrap Loader
   (BSL) that comes with the e7t board and transfer the file
   using Hyperterminal command Send Text File.

Problem:

For some reason the file is downloaded at 8000 instead of 1830000,
see the following screen dump:

Boot: flashload 01830000
Ready to download. Use 'transmit' option on terminal emulator to download
file.
Loaded file runrobotrun.bin at address 00008000, size = 101556
Boot: boot
Scanning ROM for modules ...
  Found module 'BootStrapLoader' at 01805390
  Found module 'ProductionTest' at 01807288
  Found module 'Angel' at 0181a5d8
  Found module 'RedBoot' at 01827e58
Boot:

And when I scan the rom for bootable modules using the boot
command of BSL there is no indication of the downloaded software.
Perhaps I have to provide the module header data structure
(as described in the BSL reference) before downloading?

Perhaps I should not use BSL at all? Is it possible to use
Angel or Redboot together with GDB to program the flash on the
e7t board?

Any suggestions or references to relevant documentation are
welcome.

/Lars Lindqvist

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

* Re: [ECOS] Downloading to the flash on ARM E7T
  2001-08-30  8:17 [ECOS] Downloading to the flash on ARM E7T Lars.Lindqvist
@ 2001-09-04  5:03 ` Jesper Skov
  0 siblings, 0 replies; 2+ messages in thread
From: Jesper Skov @ 2001-09-04  5:03 UTC (permalink / raw)
  To: Lars.Lindqvist; +Cc: ecos-discuss

>>>>> "Lars" == Lars Lindqvist <Lars.Lindqvist@combitechsystems.com> writes:


Lars> For some reason the file is downloaded at 8000 instead of
Lars> 1830000, see the following screen dump:

It's probably just the RAM bounce buffer used by the BSL.

Lars> And when I scan the rom for bootable modules using the boot
Lars> command of BSL there is no indication of the downloaded
Lars> software.  Perhaps I have to provide the module header data
Lars> structure (as described in the BSL reference) before
Lars> downloading?

You definitely need that header. See the E7T RedBoot generation for an
example.

Lars> Perhaps I should not use BSL at all? Is it possible to use Angel
Lars> or Redboot together with GDB to program the flash on the e7t
Lars> board?

Don't know about Angel, but you can't with RedBoot; don't want to risk
people accidently bricking the board, so it doesn't not support flash
programming.

Jesper

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

end of thread, other threads:[~2001-09-04  5:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-30  8:17 [ECOS] Downloading to the flash on ARM E7T Lars.Lindqvist
2001-09-04  5:03 ` Jesper Skov

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).