I recently got my TMS320C5515 eZdsp USB Stick and was working with setting up a delay buffer as a basic test of its capabilities. I do this with an Int16 array. I was noticing that the size of the array maxed out the chip's memory much quicker than it should have. When the array size up gets past 24000 (which translates to 1/2 second delay at a sample rate of 48kHz) I started getting the following build error, which I think is due to insufficient memory space:
gmake: *** [main.obj] Error 1
gmake: Target 'all' not remade because of errors.
This seems strange since the chip has 320K bytes of RAM. 48k samples at 16bits (2 bytes) per sample is 96k bytes, which is significantly below the amount of RAM on the chip.
Does anyone know what could be causing this? Is there something I need to do to ensure that the chips memory is properly configured (perhaps with SARAM vs DARAM), or perhaps something else in my program that might be taking up all my extra memory?
I declare my delay line like this:
Uint16 delayCounter = 0;
Int16 delay[36000];
My test project is based on the aic3204 audio I/O example I got on the Spectrum Digital Site: http://support.spectrumdigital.com/boards/usbstk5515_v2/reva/