UsingTheHeap
The default heap in the Blackfin is too small to support doing much with it in terms of image processing (at the moment it's 16k). In order to be able to malloc more memory you need to increase the size of the heap. To do this:
Go to Project -> Project Options -> Linker -> LDF Processing. In the field "Preprocessor Macro Definitions" enter "USE_SDRAM", this instruct the linker to use SDRAM space for the heap.
Open ADSP-BF537_C.ldf in a text editor Find the lines:
MEM_SDRAM0 { START(0x00004000) END(0x1FFFFFFF) TYPE(RAM) WIDTH(8) }
MEM_SDRAM0_HEAP { START(0x00000004) END(0x00003FFF) TYPE(RAM) WIDTH(8) }
Changing the above lines to:
MEM_SDRAM0 { START(0x00400000) END(0x1FFFFFFF) TYPE(RAM) WIDTH(8) }
MEM_SDRAM0_HEAP { START(0x00000004) END(0x003FFFFF) TYPE(RAM) WIDTH(8) }
Increases the heap from 16k to 4MB. The major downside is that the SDRAM is roughtly 10x slower than the L1 cache.