have you included csl6711.lib file in your project...? Add it by clicking Project->add files to project and browse where this file is kept and add to your project and built again. Regards, k. ----- Original Message ----- From: "Fahim Sheikh" <> To: <> Sent: Wednesday, July 09, 2003 4:16 PM Subject: [c6x] csl error > hi, > > I am trying to perform data I/O using the Codec AD535 for DSK 6711 with CCS 2.0. While my aim is to receive a sin wave on J7 and process it to J6 DAC, Currently i have generated the wave via code (from http://www.ee.ic.ac.uk/pcheung/teaching/ee3_Study_Project/lab3.pdf). Although DSP/BIOS config file is used but no interrupts are enabled. I am getting the error message > > undefined first referenced > symbol in file > --------- ---------------- > _CSL6711_LIB_ C:\ti\myprojects\rt_dataout\Debug\rt_dataout.obj > >> error: symbol referencing errors - ./Debug/rt_dataout.out not built > Build Complete, > 1 Errors, 0 Warnings, 0 Remarks. > > I'll appreciate if some one can indicate the possible source of fault. > > Code Listing > ================================================================= > /******************************************************** > ** This program outputs sin wave through > the codec AD535 > ********************************************************/ > void codec_init(void); > file://void init_HWI(void); > void sine_init(void); > float sinegen(void); > /**********************************************************\ > * Include Files > \**********************************************************/ > #include <c6x.h> // C6000 compiler definitions > #include <csl.h> // CSL headers > #include <csl_irq.h> > #include <c6x11dsk.h> > #include <csl_mcbsp.h> > #include <bsl.h> // BSL headers > #include <bsl_ad535.h> > #include <bsl_suggestions.h> > #include <math.h> > #define SAMPLE_FREQ 8000.0 > #define Size_Table 256 > > AD535_Handle hAD535; > AD535_Config my_AD535_Config = > AD535_LOOPBACK_DISABLE, > AD535_MICGAIN_OFF, > AD535_GAIN_0DB, > AD535_GAIN_0DB > }; > float sine_freq000.0; > float x[Size_Table]; > int count=0; > /**********************************************************\ > * Main Routine > \**********************************************************/ > void main(void) > { > float sample; > CSL_init(); // Initialize CSL library > BSL_init(); // Initialize BSL library > file://init_HWI(); // Initialisa hardware interrupts > codec_init(); // Initialise the AD535 codec > sine_init(); > while(1){ > sample=sinegen(); > AD535_write(hAD535, (int) 32000*sample); > } > } > void codec_init() > { > hAD535 = AD535_open(AD535_localId); > AD535_reset(hAD535); > AD535_config(hAD535, &my_AD535_Config); > MCBSP_setfree(0); > } > float sinegen(void) { > int downsamplefactor=(int) SAMPLE_FREQ/sine_freq; // DAC sampling freq 8Khz > float wave; > wave=x[count*downsamplefactor]; > count=count+1; > return (wave); > } > void sine_init(){ > int i; > for(i=0;i<Size_Table;i++){ > x[i]=sin(2*PI*i/sine_freq); // 256 sample sin wave with 3kHz frequency > } > } > Best Regards, > fahim sheikh > --------------------------------- > > _____________________________________ > Note: If you do a simple "reply" with your email client, only the author of this message will receive your answer. You need to do a "reply all" if you want your answer to be distributed to the entire group. > > _____________________________________ > About this discussion group: > > To Join: Send an email to > > To Post: Send an email to > > To Leave: Send an email to > > Archives: http://www.yahoogroups.com/group/c6x > > Other Groups: http://www.dsprelated.com > ">http://docs.yahoo.com/info/terms/ > |