public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] at91sam7x256 tm_basic problem
@ 2008-03-20  9:59 Alexander Neundorf
  2008-03-20 10:05 ` Andrew Lunn
  0 siblings, 1 reply; 4+ messages in thread
From: Alexander Neundorf @ 2008-03-20  9:59 UTC (permalink / raw)
  To: ecos-discuss

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 ?

Thanks
Alex




-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ECOS] at91sam7x256 tm_basic problem
  2008-03-20  9:59 [ECOS] at91sam7x256 tm_basic problem Alexander Neundorf
@ 2008-03-20 10:05 ` Andrew Lunn
  2008-03-20 10:18   ` Alexander Neundorf
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Lunn @ 2008-03-20 10:05 UTC (permalink / raw)
  To: Alexander Neundorf; +Cc: ecos-discuss

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.

          Andrew

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ECOS] at91sam7x256 tm_basic problem
  2008-03-20 10:05 ` Andrew Lunn
@ 2008-03-20 10:18   ` Alexander Neundorf
  2008-03-20 15:56     ` Alexander Neundorf
  0 siblings, 1 reply; 4+ messages in thread
From: Alexander Neundorf @ 2008-03-20 10:18 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: ecos-discuss


> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ECOS] at91sam7x256 tm_basic problem
  2008-03-20 10:18   ` Alexander Neundorf
@ 2008-03-20 15:56     ` Alexander Neundorf
  0 siblings, 0 replies; 4+ messages in thread
From: Alexander Neundorf @ 2008-03-20 15:56 UTC (permalink / raw)
  To: ecos-discuss


> > 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" ?

Ok, it e.g. works with:
#define STACK_SIZE (2*1024)
#define NTEST_THREADS        2

Alex

-- 
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-03-20 10:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-20  9:59 [ECOS] at91sam7x256 tm_basic problem Alexander Neundorf
2008-03-20 10:05 ` Andrew Lunn
2008-03-20 10:18   ` Alexander Neundorf
2008-03-20 15:56     ` Alexander Neundorf

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).