This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: How to build a executed-in-flash application?
- From: "wang cui" <iucgnaw at msn dot com>
- To: andrew at lunn dot ch
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Thu, 07 Sep 2006 09:35:40 +0000
- Subject: Re: [ECOS] How to build a executed-in-flash application?
- Bcc:
Thank you Andrew. I have create and run it successfully.
There are still little problem:
Since the applications has been wrote into flash, how to use "fis create"
command to add it into FIS? I tried "fis create -n twothreads", but doesn't
work. It report "*** invalid 'fis' command: required parameter missing".
However, I can use "fis create twothreads" to directly add the application
after "load".
From: Andrew Lunn <andrew@lunn.ch>
To: Wang Cui <iucgnaw@msn.com>
CC: ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] How to build a executed-in-flash application?
Date: Thu, 7 Sep 2006 09:38:20 +0200
On Thu, Sep 07, 2006 at 01:42:07PM +0800, Wang Cui wrote:
> As I know, normally RedBoot use startup type "ROM", and application use
> startup type "RAM", then we can use RedBoot "load" application into ram
and
> "go" it.
>
> On my target board, this method works pretty well now. But since the
ram
> size is only 512K, I want the application image executed-in-place in
the
> flash to save ram for usage.
>
> Could anyone give me some advices for it? Thanks in advance.
You need to make a custom set of .ldi and .h files in the
$HAL/current/include/pkgconf directory. This should be set so that the
image is linked for the location it will be in FLASH.
To execute it, just do
go <address_in_flash>
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss