This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Regarding loading of application on to Flash


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]