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.

Compiler/TMDXLCDK6748: TMDSLCDK6748

Part Number: TMDXLCDK6748

Tool/software: TI C/C++ Compiler

I am new to LCDK, I am trying to compile sine wave generation example. Can you guide me as to how to setup the project.

I will  appreciate if you can walk me through the procedure to build the project.

My file has the following code

// L138_sine48_buf_intr.c
#include "L138_LCDK_aic3106_init.h"
#define LOOPLENGTH 48
#define BUFLENGTH 256

int16_t sine_table[LOOPLENGTH] =
{0, 1305, 2588, 3827, 5000, 6088, 7071, 7934,
8660, 9239, 9659, 9914, 10000, 9914, 9659, 9239,
8660, 7934, 7071, 6088, 5000, 3827, 2588, 1305,
0, -1305, -2588, -3827, -5000, -6088, -7071, -7934,
-8660, -9239, -9659, -9914, -10000, -9914, -9659, -9239,
-8660, -7934, -7071, -6088, -5000, -3827, -2588, -1305};

int16_t sine_ptr = 0; // pointer into lookup table

int32_t buffer[BUFLENGTH];
int16_t buf_ptr = 0;

interrupt void interrupt4(void) // interrupt service routine
{
int16_t sample;

sample = sine_table[sine_ptr]; // read sample from table
output_left_sample(sample); // output sample
sine_ptr = (sine_ptr+1)%LOOPLENGTH; // increment table index
buffer[buf_ptr] = (int32_t)(sample); // store sample in buffer
buf_ptr = (buf_ptr+1)%BUFLENGTH; // increment buffer index
return;
}

int main(void)
{
L138_initialise_intr(FS_48000_HZ,ADC_GAIN_0DB,DAC_ATTEN_0DB,LCDK_LINE_INPUT);
while(1);
}

I do a build to get the following  results

**** Build of configuration Debug for project sinwave ****

"D:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
'Building file: ../L138_LCDK_aic3106_init.c'
'Invoking: C6000 Compiler'
"D:/ti/ccsv6/tools/compiler/c6000_7.4.14/bin/cl6x" -mv6740 --abi=eabi -g --include_path="D:/ti/ccsv6/tools/compiler/c6000_7.4.14/include" --define=c6748 --display_error_number --diag_warning=225 --diag_wrap=off --preproc_with_compile --preproc_dependency="L138_LCDK_aic3106_init.pp" "../L138_LCDK_aic3106_init.c"
'Finished building: ../L138_LCDK_aic3106_init.c'
' '
'Building file: ../L138_sine48_buf_intr.c'
'Invoking: C6000 Compiler'
"D:/ti/ccsv6/tools/compiler/c6000_7.4.14/bin/cl6x" -mv6740 --abi=eabi -g --include_path="D:/ti/ccsv6/tools/compiler/c6000_7.4.14/include" --define=c6748 --display_error_number --diag_warning=225 --diag_wrap=off --preproc_with_compile --preproc_dependency="L138_sine48_buf_intr.pp" "../L138_sine48_buf_intr.c"
'Finished building: ../L138_sine48_buf_intr.c'
' '
'Building target: sinwave.out'
'Invoking: C6000 Linker'
"D:/ti/ccsv6/tools/compiler/c6000_7.4.14/bin/cl6x" -mv6740 --abi=eabi -g --define=c6748 --display_error_number --diag_warning=225 --diag_wrap=off -z --stack_size=0x800 -m"sinwave.map" --heap_size=0x800 -i"D:/ti/ccsv6/tools/compiler/c6000_7.4.14/lib" -i"D:/ti/ccsv6/tools/compiler/c6000_7.4.14/include" --reread_libs --warn_sections --display_error_number --diag_wrap=off --xml_link_info="sinwave_linkInfo.xml" --rom_model -o "sinwave.out" "./L138_LCDK_aic3106_init.obj" "./L138_sine48_buf_intr.obj" "../C6748.cmd" -l"libc.a"
<Linking>

undefined first referenced
symbol in file
--------- ----------------
AIC3106_writeRegister ./L138_LCDK_aic3106_init.obj
EVMOMAPL138_lpscTransition ./L138_LCDK_aic3106_init.obj
EVMOMAPL138_pinmuxConfig ./L138_LCDK_aic3106_init.obj
GPIO_getInput ./L138_LCDK_aic3106_init.obj
GPIO_setDir ./L138_LCDK_aic3106_init.obj
USTIMER_init ./L138_LCDK_aic3106_init.obj
vectors ./L138_LCDK_aic3106_init.obj


error #10234-D: unresolved symbols remain
>> Compilation failure
error #10010: errors encountered during linking; "sinwave.out" not built
gmake: *** [sinwave.out] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****