From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26719 invoked by alias); 25 Aug 2008 18:19:02 -0000 Received: (qmail 26709 invoked by uid 22791); 25 Aug 2008 18:19:01 -0000 X-Spam-Check-By: sourceware.org Received: from elasmtp-scoter.atl.sa.earthlink.net (HELO elasmtp-scoter.atl.sa.earthlink.net) (209.86.89.67) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 25 Aug 2008 18:18:13 +0000 Received: from [68.187.234.178] (helo=[192.168.0.5]) by elasmtp-scoter.atl.sa.earthlink.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1KXgdh-0007AH-PG; Mon, 25 Aug 2008 14:18:07 -0400 Message-ID: <48B2F75C.8080400@mindspring.com> Date: Mon, 25 Aug 2008 19:12:00 -0000 From: Frank Pagliughi User-Agent: Thunderbird 1.5.0.12 (X11/20071019) MIME-Version: 1.0 To: =?UTF-8?B?TWFyYy1BbmRyw6kgQmVjaw==?= CC: =?UTF-8?B?TGFtYnJlY2h0IErDvHJnZW4=?= , eCos Discuss References: <48B290B3.6080804@netlabs.org> <48B2A9B4.3050108@gmx.ch> In-Reply-To: <48B2A9B4.3050108@gmx.ch> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ELNK-Trace: 4d82f965df0f6dd9e3f977c6d1ea408f0a9da525759e2654673cecfaf811cab9d74ae80df76dedb0795b3f24a9f74b7f350badd9bab72f9c350badd9bab72f9c X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: Re: [ECOS] Re: Booting from Flash in a AT91M55800A based platform X-SW-Source: 2008-08/txt/msg00059.txt.bz2 Marc-André Beck wrote: > > No. while booting from RAM I only see the RAM. There's no FLASH part: > > RAM: 0x40000000-0x40080000, [0x4001f1e8-0x40034000] available Are you testing a ROM/Flash boot or a RAM boot? If you're trying to debug apps from RAM you need to use your JTAG to configure the oscillator, PLL, and chip select registers before loading the application into memory. > > >> > - Does the JTAG software claim that the "program and verify" worked >> > properly? > > Yes. > >> > - Are the Flash chips properly wired on the board? > > Yes. Verified and reverified. Ok. With the chips programmed and verified, you should be able to use the JTAG to reset the board and single step through the first few assembly instructions. Remember that it uses a base address of zero until it gets to the remap (stmia) instruction. And also remember that you can't use the JTAG to single-step over that instruction. There are two points where the system can easily get lost in here: 1. When it sets the clock frequency. If the board stops responding after you set the oscillator or PLL frequencies, then you've set them too fast for the board to support. 2. If the board doesn't make it past the remap command, then either the values in _InitMemory table are wrong, or your .text section is mapped to a different address than you think. To get past the remap command, set a breakpoint at the remapped address of the first instruction after the _InitMemory table (the symbol "10"), then 'go'. If you get here, and can still single step, then things are good. You're running from Flash and your basic CPU initialization is correct. Now you can connect to the board with GDB/Insight and follow the debug with that. -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss