This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Issue with starting application on eCos


The posix thread is created from cyg_posix_pthread_start() and your main() function will be called from cyg_libc_invoke_main() once the scheduler is started. Is your application reaching any of this points?

Christophe

-----Original Message-----
From: ecos-discuss-owner@ecos.sourceware.org [mailto:ecos-discuss-owner@ecos.sourceware.org] On Behalf Of Heidet, Christophe
Sent: 16. juni 2010 15:38
To: José Mendes; eCos Discussion
Subject: RE: [ECOS] Issue with starting application on eCos

Have you got an explication ?

-----Original Message-----
From: ecos-discuss-owner@ecos.sourceware.org [mailto:ecos-discuss-owner@ecos.sourceware.org] On Behalf Of José Mendes
Sent: Tuesday, June 23, 2009 4:54 PM
To: eCos Discussion
Subject: [ECOS] Issue with starting application on eCos

Hello all,

I am trying to start an application on ecos where I am required to use
the posix interface, more specifically, pthreads.

This forces me to set the "startup context for main()" as "Invoked
Elsewhere", essentially enabling the CYGSEM_LIBC_STARTUP_MAIN_OTHER
macro.
This options specifies: With this option selected, main() must be
invoked by a separate package, or by the user.

My question is, exactly where should I invoke the main() from? I could
not find anything in the documentation, and eCos is not passing
control to my main...

Thanks,
Jose

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss




-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]