public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Ilija Kocho <ilijak@siva.com.mk>
To: Michael Jones <mjones@linear.com>
Cc: Lukas Riezler <lukas.riezler@gmx.net>, ecos-discuss@sourceware.org
Subject: Re: [ECOS] RedBoot necessary for porting ecos?
Date: Fri, 11 Jan 2013 08:37:00 -0000	[thread overview]
Message-ID: <50EFCF2F.3020307@siva.com.mk> (raw)
In-Reply-To: <6A3BFC82-752B-47C0-80A0-FE00F3F2CA37@linear.com>

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

  reply	other threads:[~2013-01-11  8:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-11  0:55 Lukas Riezler
2013-01-11  4:33 ` Michael Jones
2013-01-11  8:37   ` Ilija Kocho [this message]
2013-01-11  7:55 ` Ilija Kocho
2013-01-11 15:25   ` Michael Jones
     [not found]   ` <CAM0fDaeUunmB91FGSVA9XXp4PEYTjs7m48fikrmXsv3YngvW0A@mail.gmail.com>
2013-01-14 21:13     ` Ilija Kocho

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50EFCF2F.3020307@siva.com.mk \
    --to=ilijak@siva.com.mk \
    --cc=ecos-discuss@sourceware.org \
    --cc=lukas.riezler@gmx.net \
    --cc=mjones@linear.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).