Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

problem with code size"need help"

hello,

I have a problem with code size..

I am running an application to view a 24bit color picture on a 480x272 touch screen, I used a 8 Mbyte SDRAM on DE1 board cycloneII and a scatter gather DMA, the only memory in my system is the SDRAM.

so the reset vector is at 0x00 and the exception vector is at 0x20(and i tried others like 0x2000)

the problem is that when I include a small picture size like 100x50 pixels every thing is ok, but when I try to include a larger size like 200x100 or full picture 480x272 this message appears:

mallocr.c:2150: warning: unable to reach (null) (at 0x0023814c) from the global pointer (at 0x0022addc) because the offset (54128) is out of the allowed range, -32678 to 32767.

collect2: ld returned 1 exit status

make: *** error 1

what is the problem?

I have a 8 MByte sdram and the size 480x272 only needs 0.5MByte???

can you help me please??

15 Replies