From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12272 invoked by alias); 6 Aug 2002 20:34:54 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 12265 invoked from network); 6 Aug 2002 20:34:54 -0000 Received: from unknown (HELO conn.mc.mpls.visi.com) (208.42.156.2) by sources.redhat.com with SMTP; 6 Aug 2002 20:34:54 -0000 Received: from grante.comtrol.com (isis.visi.com [209.98.98.8]) by conn.mc.mpls.visi.com (Postfix) with SMTP id 8C45782E1 for ; Tue, 6 Aug 2002 15:34:53 -0500 (CDT) Received: (qmail 29324 invoked by uid 500); 6 Aug 2002 20:39:14 -0000 Date: Tue, 06 Aug 2002 13:34:00 -0000 From: Grant Edwards To: jimmy.gendron@telus.com Cc: gdb@sources.redhat.com Subject: Re: =?iso-8859-1?Q?R=E9f=2E_:_Re:_Flash_programming_using_GDB_with_ARM_Multi?= =?iso-8859-1?Q?-ICE?= Message-ID: <20020806153914.A29318@visi.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: ; from jimmy.gendron@telus.com on Tue, Aug 06, 2002 at 04:24:57PM -0400 X-SW-Source: 2002-08/txt/msg00035.txt.bz2 On Tue, Aug 06, 2002 at 04:24:57PM -0400, jimmy.gendron@telus.com wrote: > If i understand: > > 1. Write a "stub" to initiate memory map > > 2. Write I/O routines to copy image to be burned from host to target RAM > (through DCC) I don't do step 2 in my app. (I don't know what DCC is, either...) I link my app with the image to be burned. To my app, the image to be burned is just a section of memory containing bytes. My linker script makes the starting/ending addresses of that image section visible so my app knows where the image data is in RAM. The linker creates a single application image that contains the flash burning program as well as a copy of whatever is to be burned into flash. > 3. Copy from RAM to flash That's what my little app does. > The run that using GDB/Multi-ICE and everything should work. > > Am i right? Are you aware of an available library for that? I don't know of any. Burning flash is usually fairly simple, but it varies slightly from one flash vendor to another and even from one board layout to another. -- Grant Edwards grante@visi.com