This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Truncation error when more than 16000 samples are sent on line out of dsk

I am working on CCSv2 and the problem i have is that whenever the audio samples exceed a value of 16000, they are truncated on dsk. so 16000 is the threshold. How can i access the 16MB external memory of DSKC6713 so that my header file containing samples is not truncated.


#include<stdio.h>


#include "DSK6713_AIC23.h"    //codec-DSK support file
Uint32 fs=DSK6713_AIC23_FREQ_44KHZ;    //set sampling rate
#include "decod.h"


int i=1;
short start_freq=1;                //initial frequency
short stop_freq=18000;                //maximum frequency
short step_freq=100;                 //increment/step frequency
short add=1;
short s=0;
short freq;

 


void main()
{
 

      
    
 comm_poll();
   
                       //init DSK, codec, McBSP
{

  for(freq=start_freq;freq<=stop_freq;freq+=step_freq)
    {                            //step thru freqs
     for(i=1; i<=s+100; i++)    //output 8*delay_msecs samples   

      {    
                                  
       output_sample(decod(i));
    
      }
      add=i;
      s=add-1;
    
    
      }
 }
 

}
i have modofied a program according to my requirement but the header is truncated if exceeds 16000 samples.

6457.decod.h

3480.decod.txt

  • Hello,

    Anum Pirzada said:
    How can i access the 16MB external memory of DSKC6713 so that my header file containing samples is not truncated.

    You would need modify your linker command file (*.cmd) to to place your data in external SDRAM.

    I would strongly suggest you carefully read section 7.5 of the Assembly Language User's Guide. This should have the information you need to do this:

    http://www.ti.com/lit/ug/spru186p/spru186p.pdf

    thanks

    ki