From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23744 invoked by alias); 11 Jan 2013 04:33:25 -0000 Received: (qmail 23696 invoked by uid 22791); 11 Jan 2013 04:33:23 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from p02c12o142.mxlogic.net (HELO p02c12o142.mxlogic.net) (208.65.145.75) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 11 Jan 2013 04:33:15 +0000 Received: from unknown [12.218.215.72] (EHLO p02c12o142.mxlogic.net) by p02c12o142.mxlogic.net(mxl_mta-6.16.0-0) with ESMTP id b069fe05.5ee78940.219833.00-583.525594.p02c12o142.mxlogic.net (envelope-from ); Thu, 10 Jan 2013 21:33:15 -0700 (MST) X-MXL-Hash: 50ef960b1710adbe-324dda17d5295c0a79199bc8514e6762c14e5443 Received: from unknown [12.218.215.72] (EHLO smtpauth1.linear.com) by p02c12o142.mxlogic.net(mxl_mta-6.16.0-0) with ESMTP id 6069fe05.0.219814.00-396.525560.p02c12o142.mxlogic.net (envelope-from ); Thu, 10 Jan 2013 21:33:14 -0700 (MST) X-MXL-Hash: 50ef960a7a0b31a2-a5355614d641ea1b48c46d7c75a4af0981868c45 Received: from smtpauth1.linear.com (localhost [127.0.0.1]) by smtpauth1.linear.com (Postfix) with ESMTP id D8B2B740B5; Thu, 10 Jan 2013 20:33:09 -0800 (PST) Received: from [192.168.0.119] (75-163-188-247.clsp.qwest.net [75.163.188.247]) by smtpauth1.linear.com (Postfix) with ESMTPSA id 9373A740B3; Thu, 10 Jan 2013 20:33:09 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) From: Michael Jones In-Reply-To: <20130111005517.19900@gmx.net> Date: Fri, 11 Jan 2013 04:33:00 -0000 Cc: ecos-discuss@sourceware.org Content-Transfer-Encoding: quoted-printable Message-Id: <6A3BFC82-752B-47C0-80A0-FE00F3F2CA37@linear.com> References: <20130111005517.19900@gmx.net> To: Lukas Riezler X-AnalysisOut: [v=2.0 cv=Q7xlFfKa c=1 sm=1 a=glloKNylpeYNumXQcclYyA==:17 a] X-AnalysisOut: [=gW3_bppFgTcA:10 a=D2_GN2MmYMYA:10 a=BLceEmwcHowA:10 a=kj9] X-AnalysisOut: [zAlcOel0A:10 a=MqDINYqSAAAA:8 a=JVgNN-mkaAoA:10 a=VVlED5B4] X-AnalysisOut: [AAAA:8 a=CCpqsmhAAAAA:8 a=Lkl3OlOIGvoRjugO1T8A:9 a=CjuIK1q] X-AnalysisOut: [_8ugA:10 a=BFDKbZatV3MA:10] X-MAIL-FROM: 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/msg00013.txt.bz2 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 c= orrupt 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 eventua= lly 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 c= ould do it. For JTAG, find the openocd website and find it's pdf manual. In that manual= is a list of supported JTAG devices. Then look in its script files to see = if there is a script for your target, JTAG device, etc. Once you are satisf= ied, buy the JTAG device. I used one from Amontec. If you choose that, my b= log post explains how to compile openocd and deal with drivers for the JTag= Key (on linux). Once openocd is running and connected to the target, GDB will debug using a= n IP address and port. Openocd is basically a GDB server that talks to JTAG. You can also buy more expensive solutions based on ethernet that have GDB s= ervers built in, but JTAG is a reasonable place to start. I also use Eclipse, but that took a bit of effort. But I did post a blog on= how I did it if you want to try it. Using Eclipse does not give you a task= aware debugger, because neither does GDB. But you can eventually purchase = a task aware debugger if you need one. Mike On Jan 10, 2013, at 5:55 PM, Lukas Riezler wrote: > Hello everyone! >=20 > First I have to say, that I'm quite new in microcontroller theme (and my = english is not so good). > But I'm interested to get ecos run on my IAR-EvalBoard with CortexM3 (FM3= ). > I've read a lot of stuff but though I have some elementary questions: >=20 > - is it a requirement to work with RedBoot or is it also possible to port= ecos without using RedBoot? > - I know that RedBoot is based on the ecos-HAL. Does it mean, if I port R= edBoot to my target, that I can use later the same HAL-Code for ecos? >=20 > With kind regards, > Lukas R.=20 >=20 > --=20 > Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos > and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss >=20 -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss