From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 466 invoked by alias); 28 Jan 2011 17:07:07 -0000 Received: (qmail 454 invoked by uid 22791); 28 Jan 2011 17:07:06 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,TW_XD X-Spam-Check-By: sourceware.org Received: from mail.neratec.ch (HELO mail.neratec.ch) (80.75.119.105) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 28 Jan 2011 17:06:56 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.neratec.ch (Postfix) with ESMTP id 06B22860D1 for ; Fri, 28 Jan 2011 18:06:54 +0100 (CET) Received: from mail.neratec.ch ([127.0.0.1]) by localhost (mail.neratec.ch [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RG+VTOSISKSp for ; Fri, 28 Jan 2011 18:06:53 +0100 (CET) Received: from mail.neratec.ch (mail.neratec.ch [192.168.11.23]) by mail.neratec.ch (Postfix) with ESMTP id 79AA4860D0 for ; Fri, 28 Jan 2011 18:06:53 +0100 (CET) Date: Sun, 30 Jan 2011 09:31:00 -0000 From: =?utf-8?Q?Martin_R=C3=B6sch?= To: "discuss, eCos" Message-ID: <191410922.8074.1296234413351.JavaMail.root@idefix> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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: Different section placement for kernel and application X-SW-Source: 2011-01/txt/msg00096.txt.bz2 Hi, > > AFAIK, GDB stubs don't know how to program flash (and there's no > > indication it attempted to do so), > > I posted too quickly. It appears that gdb did try to load > .rom_vectors .ecos.text .ecos.rodata into flash. After you do the > load (but before you "continue"), can you verify that the code > actually got loaded into flash? I didn't think that the gdb stubs > knew how to write to flash. Yes, you are right. Here is the log of how i tried to verify: (gdb) set *((int*)0x8010000) = 0x00000000 (gdb) x/4 0x8010000 0x8010000 : 0x02e4f04f 0xf8df4b1d 0x47e0c078 0x491a4819 (gdb) x/4 0x68000000 0x68000000 : 0x00001000 0x00000000 0x00003000 0x00002000 (gdb) set *((int*)0x68000000) = 0xDEADBEEF (gdb) x/4 0x68000000 0x68000000 : 0xdeadbeef 0x00000000 0x00003000 0x00002000 (gdb) load Loading section .rom_vectors, size 0x8 lma 0x8010000 Loading section .ecos.text, size 0x10bcc lma 0x8010008 Loading section .ecos.rodata, size 0x49dc lma 0x8020bd8 Loading section .ARM.exidx, size 0x10 lma 0x64008000 Loading section .text, size 0x924 lma 0x64008010 Loading section .rodata, size 0x108 lma 0x64008938 Loading section .data, size 0xdcc lma 0x68000000 Start address 0x8010009, load size 93624 Transfer rate: 9 KB/sec, 300 bytes/write. (gdb) x/4 0x8010000 0x8010000 : 0x02e4f04f 0xf8df4b1d 0x47e0c078 0x491a4819 (gdb) It seem's like it is not working to write to the flash with the GDB stubs. But I think there is an option in the RedBoot ROM monitor configuration to allow that. But I will first try to load the image with openocd... Thank you for your help! Greetings, Martin -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss