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: at91sam7x256 tm_basic problem


> On Thu, Mar 20, 2008 at 10:49:25AM +0100, Alexander Neundorf wrote:
> > Hi,
> > 
> > I'm trying to run the tm_basic test on the at91sam7x256 (64kB RAM) but
> this doesn't seem to work out of the box.
> > tm_basic.cxx has this code:
> > 
> > #define STACK_SIZE (CYGNUM_HAL_STACK_SIZE_TYPICAL+4*1024)
> > #define CYG_THREAD_OVERHEAD (STACK_SIZE+ <some more...>)
> > 
> > #define NTEST_THREADS       
> ((CYGMEM_REGION_ram_SIZE/16)/CYG_THREAD_OVERHEAD)
> > 
> > which is here:
> > 64kb/16 / ( <something> + 4kb), i.e. 4 kb/(x+4 kb), which is always
> zero.
> > I could start hacking around that, but before that I'd like to ask
> > what the recommended way to run tm_basic on the at91sam7 is ?
> 
> You need to hack around with it a bit. It is a while since i did this,
> but i guess i set STACK_SIZE to 4K and NTEST_THREADS to 2. Or
> something like that.

Ok. Why is CYGMEM_REGION_ram_SIZE actually divided by 16 ? Does this just mean "don't use all available RAM for the threads" ?

Alex

-- 
Psst! Geheimtipp: Online Games kostenlos spielen bei den GMX Free Games! 
http://games.entertainment.gmx.net/de/entertainment/games/free

-- 
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]