From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23109 invoked by alias); 11 Jan 2013 08:37:19 -0000 Received: (qmail 22625 invoked by uid 22791); 11 Jan 2013 08:37:11 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from tirion.supremecenter202.com (HELO tirion.supremecenter202.com) (209.25.195.243) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 11 Jan 2013 08:37:06 +0000 Received: from [195.189.206.101] (port=33859 helo=[192.168.209.11]) by tirion.supremecenter202.com with esmtps (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.80) (envelope-from ) id 1Tta6r-0005nE-US; Fri, 11 Jan 2013 08:37:06 +0000 Message-ID: <50EFCF2F.3020307@siva.com.mk> Date: Fri, 11 Jan 2013 08:37:00 -0000 From: Ilija Kocho User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Michael Jones CC: Lukas Riezler , ecos-discuss@sourceware.org References: <20130111005517.19900@gmx.net> <6A3BFC82-752B-47C0-80A0-FE00F3F2CA37@linear.com> In-Reply-To: <6A3BFC82-752B-47C0-80A0-FE00F3F2CA37@linear.com> Content-Type: text/plain; charset=ISO-8859-1 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] RedBoot necessary for porting ecos? X-SW-Source: 2013-01/txt/msg00015.txt.bz2 Hi Mike and Lukas Some comments on RedBoot. On 11.01.2013 05:33, Michael Jones wrote: > Lukas, > > I just went through the newbie problems, so I'll give some advice. I am not an expert, but I can tell you my thoughts based on my newbie experience. > > RedBoot is basically a program that runs in the target device's flash, and loads an application over some serial device and then becomes a GDB server. In this case, RedBoot is an eCos application just like the application you are debugging. > > The issues with using RedBoot are that the application being debugged can corrupt RedBoot, and RedBoot uses up memory that the application could use. I managed to get this to work on a K60, which is also CortexM3, but eventually I decided to use a JTAG debugger instead. I found the experience using JTAG much better. However, if you need to debug over an ethernet, RedBoot could do it. RedBoot usability can be, indeed, limited by memory constrains. On single chip systems with about 128KiB RAM it is possible to run and even debug eCos application under RedBoot, but the application size will be severely limited, because a part of RAM is allocated by RedBoot itself. But there are other examples such as TWR-K70F120M, a system with 128MiB external RAM where memory constrain is no issue and RedBoot debugging runs smoothly. Even more, in order to load the application into external memory you need initialization of DDRAM controller, which requires initialised clock - a tedious work for JTAG. On the other hand when running/debugging from RedBoot you start with initialised clock and DDRAM controller. Ilija -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss