public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: Gary Thomas <gary@mlbassoc.com>
To: anton yakovlev <antony@inbox.ru>
Cc: ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] One question..
Date: Sat, 26 Jun 2004 11:50:00 -0000	[thread overview]
Message-ID: <1088250606.16739.53.camel@hermes> (raw)
In-Reply-To: <40DD3AF5.6010609@inbox.ru>

On Sat, 2004-06-26 at 02:59, anton yakovlev wrote:
> Gary Thomas wrote:
> 
> >On Fri, 2004-06-25 at 02:09, anton yakovlev wrote:
> >  
> >
> >>Hi, all!
> >>
> >>I have a programm:
> >>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> >>#include <stdio.h>
> >>#include <cyg/kernel/kapi.h>
> >>
> >>void first(cyg_addrword_t threadData) {
> >>
> >>    (void) threadData;
> >>    printf("the first thread\n");
> >>
> >>}
> >>
> >>static char stack_a[4096];
> >>static cyg_thread thread_a;
> >>static cyg_handle_t handle_a;
> >>
> >>void cyg_user_start(void) {
> >>   
> >>    cyg_thread_create(10, first, 0, "first", stack_a, 4096, &handle_a, 
> >>&thread_a);
> >>    cyg_thread_resume(handle_a);
> >>
> >>}
> >>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> >>but when i try to executing it, i see only following:
> >>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> >>RedBoot> load -r -m y -b 0x205000
> >>Raw file loaded 0x00205000-0x00210500
> >>xyzModem - CRC mode, 363(SOH)/0(STX)/0(CAN) packets, 3 retries
> >>RedBoot> go 0x205000
> >>    
> >>
> >
> >Why did you specify raw mode (-r)?  When you do this, RedBoot loads the 
> >file directly into memory without any processing at all, probably not
> >what you want to do.
> >  
> >
> Because I upload exactly raw image.. neither elf-image, nor s-record..

That's fine (many people make mistakes here, but you've not). 

Was the program linked to load at 0x205000?  eCos programs are *not* 
position independent and must be loaded to memory that matches how they
are built/linked.

> 
> >How did you create the file that's being downloaded?  Is it an 
> >executable (ELF) image?  or possibly S-records?
> >  
> >
>  From elf-image using objcopy..
> 
> >>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> >>i.e. thread want not to start.. Why so?..
> >>
> >>I have Falcom fx35xxlsi (based on NEC V850 processors family) platform 
> >>with eCos 2.0.. I build eCos from the sources.. Maybe I have broken 
> >>configuration?..
> >>    
> >>
-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates


-- 
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:[~2004-06-26 11:50 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-25  8:09 anton yakovlev
2004-06-25 10:13 ` [ECOS] configtool David Lewin
2004-06-25 15:36   ` [ECOS] configtool John Dallaway
2004-06-25 15:52     ` David Lewin
2004-06-25 11:28 ` [ECOS] One question Gary Thomas
2004-06-26  8:59   ` anton yakovlev
2004-06-26 11:50     ` Gary Thomas [this message]
2004-06-26 12:26       ` anton yakovlev
2004-06-26 12:31         ` Gary Thomas
2004-06-26 15:40           ` anton yakovlev
     [not found] ` <40DBE222.8040603@codito.com>
2004-06-26  8:49   ` anton yakovlev
2006-05-31  5:15 Zhao.Green
2006-05-31  6:12 ` Fabian Scheler
2006-05-31  6:28 ` Paul D. DeRocco
2006-05-31  6:50 Zhao.Green
2006-05-31  7:58 ` Michele Portolan
2006-05-31 11:49   ` Edgar Grimberg

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=1088250606.16739.53.camel@hermes \
    --to=gary@mlbassoc.com \
    --cc=antony@inbox.ru \
    --cc=ecos-discuss@sources.redhat.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).