From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21053 invoked by alias); 11 Jul 2005 07:12:31 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 20972 invoked by uid 22791); 11 Jul 2005 07:12:21 -0000 Received: from londo.lunn.ch (HELO londo.lunn.ch) (80.238.139.98) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 11 Jul 2005 07:12:21 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1DrsSK-0003vF-00; Mon, 11 Jul 2005 09:11:56 +0200 Date: Mon, 11 Jul 2005 07:12:00 -0000 To: Hariprasad B Cc: eCos Disuss Message-ID: <20050711071156.GA15048@lunn.ch> Mail-Followup-To: Hariprasad B , eCos Disuss References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.9i From: Andrew Lunn Subject: Re: [ECOS] Regarding loading of application on to Flash X-SW-Source: 2005-07/txt/msg00095.txt.bz2 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