public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Regarding loading of application on to Flash
@ 2005-07-11  4:40 Hariprasad B  
  2005-07-11  7:12 ` Andrew Lunn
  0 siblings, 1 reply; 2+ messages in thread
From: Hariprasad B   @ 2005-07-11  4:40 UTC (permalink / raw)
  To: eCos

Hi All,

I am trying to load my program in to the Flash(ROM) & it gives the error as follows
Platform: SE77X9 (SH 7729)
Copyright (C) 2000, 2001, 2002, Red Hat, Inc.

RAM: 0x0c000000-0x0c800000, [0x0c0061a0-0x0c7ed000] available
FLASH: 0x81000000 - 0x81200000, 32 blocks of 0x00010000 bytes each.
RedBoot> load -m xmodem
CEntry point: 0x0c020000, address range: 0x0c020000-0x0c065a84
xyzModem - CRC mode, 10301(SOH)/0(STX)/0(CAN) packets, 2 retries
RedBoot> fis create application
Invalid FLASH image size/length combination

But again when I try to load a simple one threaded application it works fine.Can anyone help me out for what could be the problem.

Thanks & Regards

Hariprasad


--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

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

* Re: [ECOS] Regarding loading of application on to Flash
  2005-07-11  4:40 [ECOS] Regarding loading of application on to Flash Hariprasad B  
@ 2005-07-11  7:12 ` Andrew Lunn
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Lunn @ 2005-07-11  7:12 UTC (permalink / raw)
  To: Hariprasad B; +Cc: eCos Disuss

On Mon, Jul 11, 2005 at 09:50:28AM +0530, Hariprasad B   wrote:
> Hi All,
> 
> I am trying to load my program in to the Flash(ROM) & it gives the error as follows
> Platform: SE77X9 (SH 7729)
> Copyright (C) 2000, 2001, 2002, Red Hat, Inc.
> 
> RAM: 0x0c000000-0x0c800000, [0x0c0061a0-0x0c7ed000] available
> FLASH: 0x81000000 - 0x81200000, 32 blocks of 0x00010000 bytes each.
> RedBoot> load -m xmodem
> CEntry point: 0x0c020000, address range: 0x0c020000-0x0c065a84
> xyzModem - CRC mode, 10301(SOH)/0(STX)/0(CAN) packets, 2 retries
> RedBoot> fis create application
> Invalid FLASH image size/length combination

It is telling you that the size of the flash area already reserved for
"application" it smaller than the size downloaded.

This is pritty obvious when you read the code:

   // 'length' is size of FLASH image, 'img_size' is actual data size
    // Round up length to FLASH block size
#ifndef CYGPKG_HAL_MIPS // FIXME: compiler is b0rken
    length = ((length + flash_block_size - 1) / flash_block_size) * flash_block_size;
    if (length < img_size) {
        diag_printf("Invalid FLASH image size/length combination\n");
        return;
    }
#endif

        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

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

end of thread, other threads:[~2005-07-11  7:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-11  4:40 [ECOS] Regarding loading of application on to Flash Hariprasad B  
2005-07-11  7:12 ` Andrew Lunn

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