This is the mail archive of the ecos-discuss@sources.redhat.com 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: cyg_user_start fails to start


id like to add some data.
the size of final execuable downloaded is around 770KBytes
Size of interrupt stack size in Hal interrupt handling in .ecc file is 4K


On Wed, 26 Jan 2005 17:42:15 -0800, Harshit Suri <h.r.suri@gmail.com> wrote:
> In the attached C Code file I am creating two threads one that
> reads a chunk of serial data from port serial B.
> The other thread writes a part of the received data
> back to serial B.
> The board is based on at91eb40a and has 1MegaByte of external SRAM.
> Weve changed our memory layout files to accomodate.
> also i have increased the buffer size for port B in the
> configtool in the serial driver section to 32KBytes
> Read buffer is allocated thus in C code:
> char readBuffer[1600]={'c'};
> Code works perfectly in RAM startup mode, for both small and
> large readBuffer allocation
> Code works perfectly in RAMROM startup mode also ONLY IF
> readBuffer is given a small enough size eg.
> char readBuffer[1600]={'c'};
> 
> Problem1: Code *fails* in ROMRAM startup mode if you assign
> a large readBuffer eg. :
> char readBuffer[8192]={'c'};
> 
> Problem/Symptom2: The cyg_user_start is supposed to blink
> the LEDs twice when it is entered. It does not blink if i
> increase the readBuffer size from 1600 to 8192.
> This leads me to believe that when the readBuffer size is large ecos
> does not even initialize correctly. Im *guessing* that its
> happening during hal or kernel initializations when memory is
> being allocated for the line of code
> char readBuffer[8192]={'c'};
> Kindly advise.
> Thanks
> 
> 
>

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