public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Michael Jones <mjones@linear.com>
To: Ilija Kocho <ilijak@siva.com.mk>
Cc: eCos Discussion <ecos-discuss@ecos.sourceware.org>
Subject: Re: [ECOS] Eclipse / CDT without Makefile Project
Date: Sat, 22 Dec 2012 20:42:00 -0000	[thread overview]
Message-ID: <EFD7961B-1A2D-4BE8-9A6A-DF52A2456A08@linear.com> (raw)
In-Reply-To: <50D5E4B9.5010300@siva.com.mk>

Ilija,

Wow! That worked. Now I can set breakpoints and run.

I think I am down to one last problem. How do I control where the printf goes? I selected Allocate Console on the Common tab, the the Console in Eclipse only shows:

[Switching to Thread 2]
[New Thread 1]

If I turn that off, I get:

361,985 (gdb) 
362,026 @"Hello Mike.\n"
362,030 =breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x1fff\
e4de",func="main",file="../Sources/hello.c",fullname="/home/mike/Embedded/Freescale/app/hello_world/\
Sources/hello.c",line="46",times="1",original-location="/home/mike/Embedded/Freescale/app/hello_worl\
d/Sources/hello.c:46"}

I am not sure if the @"Hello Mike.\n" is output or just information. I assume it is output because it does not show printf.

Can you give some pointers on how to get a console that is only for input/output?

I would prefer a console that sends the data over the ethernet cable I am using with RedBoot and not try to use RS232 or USB. This way I could debug a target remotely.

Also, do you know a way to reset the target without a reset button on the Tower? If I was remote, I may not have a way to use the button. When my app exits, it seems to leave RedBoot in a hung state.

Mike

On Dec 22, 2012, at 9:50 AM, Ilija Kocho <ilijak@siva.com.mk> wrote:

> On 22.12.2012 17:07, Michael Jones wrote:
>> Iligja,
>> 
>> Hm, I am using a Debug Configuration of type GDB Hardware Debugging. There is no target path like traditional projects, but instead has a Remote Target section where you put in the IP and Port.
> 
> In Debug tab find GDB Command: It probably contains the path to your GDB
> something like: /home/opt/ecos/gnutools/arm-eabi/bin/arm-eabi-gdb
> 
> Just add your target ELF file like you would do in command line
> (probably you need to supply complete path):
> /opt/ecos/gnutools/arm-eabi/bin/arm-eabi-gdb <your_elf_file>
> 
> It works for me, I hope it will work for you.
> 
> 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

  parent reply	other threads:[~2012-12-22 20:42 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-20  7:44 Michael Jones
2012-12-20  8:32 ` [ECOS] " John Dallaway
2012-12-20 15:15   ` [ECOS] " Michael Jones
2012-12-20 15:34     ` [ECOS] " John Dallaway
2012-12-21  7:03       ` [ECOS] " Michael Jones
2012-12-22 11:00         ` Ilija Kocho
     [not found]           ` <02A08039-66E9-4427-9E68-7C66E5C4200D@linear.com>
     [not found]             ` <50D5E4B9.5010300@siva.com.mk>
2012-12-22 20:42               ` Michael Jones [this message]
     [not found]                 ` <48C70F8E-290F-4E62-98FC-E5CEA9906AAE@linear.com>
2012-12-23  0:09                   ` Ilija Kocho
2012-12-23  0:19                     ` Michael Jones
2012-12-23 17:58                       ` 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=EFD7961B-1A2D-4BE8-9A6A-DF52A2456A08@linear.com \
    --to=mjones@linear.com \
    --cc=ecos-discuss@ecos.sourceware.org \
    --cc=ilijak@siva.com.mk \
    /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).