From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22669 invoked by alias); 6 Apr 2013 10:36:23 -0000 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 Received: (qmail 22660 invoked by uid 89); 6 Apr 2013 10:36:23 -0000 X-Spam-SWARE-Status: No, score=-0.1 required=5.0 tests=AWL,BAYES_00,KHOP_DNSBL_BUMP,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,RCVD_IN_MSPIKE_BL,RCVD_IN_MSPIKE_L3,SPF_NEUTRAL,TW_BD autolearn=no version=3.3.1 Received: from gateway06.websitewelcome.com (HELO gateway06.websitewelcome.com) (69.93.35.3) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Sat, 06 Apr 2013 10:36:19 +0000 Received: by gateway06.websitewelcome.com (Postfix, from userid 5007) id 29AAFE5B59B57; Sat, 6 Apr 2013 05:36:18 -0500 (CDT) Received: from ham02.websitewelcome.com (unknown [173.192.111.51]) by gateway06.websitewelcome.com (Postfix) with ESMTP id 1BF50E5B59B36 for ; Sat, 6 Apr 2013 05:36:18 -0500 (CDT) Received: by ham02.websitewelcome.com (Postfix, from userid 666) id 1A475EB0DD85B; Sat, 6 Apr 2013 05:36:18 -0500 (CDT) X-Spam-Flag2999: NO X-Spam-Level2999: X-Spam-Status2999: "No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 Received: from montecarlo.websitewelcome.com (montecarlo.websitewelcome.com [174.120.9.66]) by ham02.websitewelcome.com (Postfix) with ESMTP id 78EF8EB0DD233 for ; Sat, 6 Apr 2013 05:36:15 -0500 (CDT) Received: from [195.189.206.101] (port=36532 helo=[192.168.209.11]) by montecarlo.websitewelcome.com with esmtpsa (TLSv1:DHE-RSA-CAMELLIA256-SHA:256) (Exim 4.80) (envelope-from ) id 1UOQTn-00029x-4u; Sat, 06 Apr 2013 05:36:15 -0500 Message-ID: <515FFA9D.3060102@siva.com.mk> Date: Sat, 06 Apr 2013 10:36:00 -0000 From: Ilija Kocho Reply-To: ilijak@siva.com.mk User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130308 Thunderbird/17.0.4 MIME-Version: 1.0 To: Davide Pippa CC: ecos-discuss@sourceware.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BWhitelist: no X-Source-Sender: ([192.168.209.11]) [195.189.206.101]:36532 X-Source-Auth: ilijak+siva.mk X-Email-Count: 1 X-Source-Cap: c2l2YW1rO2JpYmltYW47bW9udGVjYXJsby53ZWJzaXRld2VsY29tZS5jb20= Subject: Re: [ECOS] How to build an ecos application "redboot-aware" X-SW-Source: 2013-04/txt/msg00007.txt.bz2 Hi David Probably you are using default startup type that is ROM(Platform). For RedBoot you need to select RAM startup. All other startups than RAM you can debug by menas of JTAG (OSBDM, etc). There's no special template for RedBoot. Every configuration is, to quote you "RedBoot aware" when you select RAM startup. Ilija On 06.04.2013 11:49, Davide Pippa wrote: > Hi! > > I'm trying to use redboot with a TWR-K70F120M board. > I've succeeded in doing the following: > - got a rom with redboot compiled and running; > - can connect to redboot console thru osbdm usb virtual serial port > (using P&E micro terminal); > - can connect to redboot console thru ethernet (I set the IP to > 12.13.14.216 and connect to port 9000); > Now I'm trying to use GDB to debug an application. > I've tried with an application I used to work with (a simple demo > blinking leds and sending udp packets), > but I cannot successfully load it thru gdb, i see that: > > $ arm-eabi-gdb demo1.elf > GNU gdb (eCos GNU Tools 4.6.3-20120623) 7.4.1 > Copyright (C) 2012 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. Type "show copying" > and "show warranty" for details. > This GDB was configured as "--host=i686-pc-cygwin --target=arm-eabi". > For bug reporting instructions, please see: > ... > Reading symbols from /cygdrive/h/Works/Arm/PyIde/proj/demo1/Debug/demo1.elf...do > ne. > (gdb) target remote 12.13.14.216:9000 > Remote debugging using 12.13.14.216:9000 > update_arp_entry (netif=0x0, ipaddr=0x0, ethaddr=0x0, flags=) > at /cygdrive/h/Works/Arm/PyIde/build/ecos/packages/net/lwip_tcpip/current/sr > c/netif/etharp.c:480 > 480 ip_addr_ismulticast(ipaddr)) { > (gdb) load > Loading section .rom_vectors, size 0x8 lma 0x0 > Loading section .kinetis_misc, size 0x3b0 lma 0x8 > Loading section .flash_conf, size 0x10 lma 0x400 > Loading section .ARM.exidx, size 0x8 lma 0x410 > Loading section .text, size 0x11f10 lma 0x418 > Ignoring packet error, continuing... > Ignoring packet error, continuing... > Remote communication error. Target disconnected.: Connection reset by peer. > (gdb) > (gdb) > > I suppose some problem comes from the fact that this application was > compiled to work "stand-alone", > without any redboot support (I mean I used to download the image with > openocd, without any redboot > thing build and debugging with openocd only). > What kind of configuration change should I do to make an application > "redboot-aware"? > Is there any of the available templates (for the TWR-K70F120M) already > built for that? > Or, can I start from the usual template (I use the lwip_eth template) > and modify it to > support redboot? > Or am I missing something else? > > Thanks! > > Pyper > -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss