DSPRelated.com
Forums

urgently ........how to read an image in C5000 (code composer simulator)?

Started by B.yasmine May 26, 2004
hello all,
please help me :
is it possible to read an image with (200x200) pixels ??
when i build my program the error message is:
 error: can't allocate '.bss'
so how to change the commnade file (.cmd) for read a big pixels matrix ?!!!
yasmine_boulfani@yahoo.fr (B.yasmine) wrote in message news:<71db2c9f.0405260130.37d7465f@posting.google.com>...
> hello all, > please help me : > is it possible to read an image with (200x200) pixels ?? > when i build my program the error message is: > error: can't allocate '.bss' > so how to change the commnade file (.cmd) for read a big pixels matrix ?!!!
Dear Yasmine The Possible problem I can guess is that your memory is less than size of your image , if you define your images data in the external memory (you can define this in SECTIONS in your cmd fileand use a DATA_SECTION pragma to put your data there) , it slows down your algorithm as the data would be in external memory but it fits there. I'm not sure if it helps but I hope it does. Regards, Hamid
Hamid wrote:

> yasmine_boulfani@yahoo.fr (B.yasmine) wrote in message news:<71db2c9f.0405260130.37d7465f@posting.google.com>... > >>hello all, >>please help me : >>is it possible to read an image with (200x200) pixels ?? >>when i build my program the error message is: >> error: can't allocate '.bss' >>so how to change the commnade file (.cmd) for read a big pixels matrix ?!!! > > > Dear Yasmine > > The Possible problem I can guess is that your memory is less than size > of your image , if you define your images data in the external memory > (you can define this in SECTIONS in your cmd fileand use a > DATA_SECTION pragma to put your data there) , it slows down your > algorithm as the data would be in external memory but it fits there. > > I'm not sure if it helps but I hope it does. > > Regards, Hamid
Keep in mind that that 200 x 200 matrix is 40000 elements -- that's at least 40000 words. Assuming that your particular processor has that much memory at all you'll need to futz with the command file to shoehorn it in there. -- Tim Wescott Wescott Design Services http://www.wescottdesign.com