This is the mail archive of the
ecos-devel@sourceware.org
mailing list for the eCos project.
Re: Flashdriver for TC1796
- From: Rudi Pfister <Rudi dot Pfister at informatik dot stud dot uni-erlangen dot de>
- To: andrew at lunn dot ch
- Cc: ecos-devel at ecos dot sourceware dot org
- Date: Wed, 22 Nov 2006 11:51:15 +0100
- Subject: Re: Flashdriver for TC1796
Hello,
> So you want to do something like:
>
> fis write -b 0x00100000 -f 0x0020000 -l 0x1000
>
> ie write the contents of RAM 0x0010000, length 0x1000 to flash address
> 0x00200000. This does not need a buffer.
No, I want to do something like this:
load -r -f 0xa0000000 -m ymodem
I want to load a program directly into the flash memory via
a serial line.
For this operation Redboot uses the flash_load_write()-function,
which saves the block to a buffer in RAM.
Using the "fis write"-command doesn't solve my problem.
On the one hand I have to load the application into RAM
first, but I can't be sure that I have enough RAM for this.
And on the other hand I can only write data to the beginning
of a block and the whole block will be erased. So even if I want
to write only a part of the block the whole old data in the block
will be deleted.
Thanks
Rudi