Using the OMAP LI-137 Processor writing in C in CCS v5
Hi, I am getting 3 errors during the build of my project:
#10010 errors encountered during linking; "Audio_UART.out' not built
#10234-D unresolved symbols remain
unresolved symbol_copy, first referenced in ./Source/audioSample_io.obj
I am doing a project in my MicroComputer Systems class. I am using code already created and modifying it. I did not add any libraries to the original project. The original project took an audio input and allowed you to change the volume with the up and down arrows on the keyboard. I am modifying the code to give me a DTMF tone when any of the #'s 0-9 are pushed. the code I added I will copy and paste:
#define FS 44100 //Sampling Frequency
#define PI 3.14
#define DTMF 1 //project case
//Keyboard variables
int keypress;
char curKey;
int newKeyIn;
int i;
short *pIn, *pOut; // pointers to reclaimed buffers
int DTMF_counter=0;
// keyboard pressed do this
if(newKeyIn == 1)
{
newKeyIn = 0;
if (curKey == '0')
keypress=0;
else if (curKey == '1' )
keypress=1;
else if (curKey == '2' )
keypress=2;
else if (curKey == '3' )
keypress=3;
else if (curKey == '4' )
keypress=4;
else if (curKey == '5' )
keypress=5;
else if (curKey == '6' )
keypress=6;
else if (curKey == '7' )
keypress=7;
else if (curKey == '8' )
keypress=8;
else if (curKey == '9' )
keypress=9;
}
switch(mode)
{
//Project case for DTMF detection
case DTMF:
for ( i=0; i<BUFLEN*2 ; i++ )
DTMF_counter ++;
if (DTMF_counter==43)
{
keypress=-1;
}
switch(keypress)
{
default:
pOut[i]=sin(2.0*PI*350.0*i)+sin(2.0*PI*440.0*i);
break;
case 0:
pOut[i]=sin(2.0*PI*941.0*i)+sin(2.0*PI*1336.0*i);
break;
case 1:
pOut[i]=sin(2.0*PI*697.0*i)+sin(2.0*PI*1209.0*i);
break;
case 2:
pOut[i]=sin(2.0*PI*697.0*i)+sin(2.0*PI*1336.0*i);
break;
case 3:
pOut[i]=sin(2.0*PI*697.0*i)+sin(2.0*PI*1477.0*i);
break;
case 4:
pOut[i]=sin(2.0*PI*770.0*i)+sin(2.0*PI*1209.0*i);
break;
case 5:
pOut[i]=sin(2.0*PI*770.0*i)+sin(2.0*PI*1336.0*i);
break;
case 6:
pOut[i]=sin(2.0*PI*770.0*i)+sin(2.0*PI*1477.0*i);
break;
case 7:
pOut[i]=sin(2.0*PI*852.0*i)+sin(2.0*PI*1209.0*i);
break;
case 8:
pOut[i]=sin(2.0*PI*852.0*i)+sin(2.0*PI*1336.0*i);
break;
case 9:
pOut[i]=sin(2.0*PI*852.0*i)+sin(2.0*PI*1477.0*i);
break;
}
break;
// Copy input to output
default:
copy(pIn, pOut);
break;
}
void newKey(Int8 *buf)
{
curKey = buf[0];
newKeyIn = 1;
}
Is there some includes i am not adding that is making me have these issues?