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.
Tool/software: Code Composer Studio
CCS Support,
I try to combine two examples in the device support. There are many similar errors after project build. I don't know what's wrong.
adc_soc_continuous_dma_cpu01.rar
Can you help me?
Best Regards,Jingtai
Hi Jintai,
I tried to run you project and it is giving some other error, missing a dependent project.
Buildfile generation error occurred.. Referenced project 'buffdac_sine_cpu01' does not exist in the workspace. Project 'adc_soc_continuous_dma_cpu01' may not build as expected. Build stopped..
Hi! Santosh,
I copied the buffdac contents into the adc file and there are many errors. I don't know how to resolve this issue.
Regards,
Jingtai
Jintai,
I am not sure how you are copying the contents of bufdac to the adc file. I think first of all, make a local copy of linker command file, and then make sure the sections needed for bufdac is present there.
/* Sine Table */ SINTBL : > RAMGS2, PAGE = 1
Then make a local copy of adc_soc_continuous_dma_cpu01.c and then add the content function-wise. It should be able to bring all the functions from bufdac to the adc file and compile it.
You will also need to add ${ORIGINAL_PROJECT_ROOT}/../../../../../../../libraries/dsp/SGEN/c28/include to the C2000 Compiler include path.
I tried locally, and I was able to compile it. Here is project for your reference.
Santosh,
Concerning links I didn't include
${ORIGINAL_PROJECT_ROOT}/../../../../../../../libraries/dsp/SGEN/c28/include
instead I added
C:\ti\c2000\C2000Ware_2_01_00_00\device_support\f2837xs\common\cmd\2837xS_RAM_SGEN_lnk_cpu1.cmd
${INHERITED_LIBRARY_PATH}
C:\ti\c2000\C2000Ware_2_01_00_00\libraries\dsp\SGEN\c28\lib\C28x_SGEN_Lib_fpu32.lib
Now I have added
C:\ti\c2000\C2000Ware_2_01_00_00\libraries\dsp\SGEN\c28\include
In my CCS it is this form and different from yours.
In terms other differences in my adc_soc_continuous_dms_cpu01.c posted positions are different with yours. I'm modifying.
Whenever I finished I'll inform you.
Thanks for your support.
Regards,
Jingtai
Jintai,
Yes, you will need to adjust the project for your local setup and then debug from here.
Santosh,
I've finished debug based on your instruction.
In my environment 2837xD_RAM_lnk_cpu01 causes many errors and I didn't add it.
The buffered DAC requires external reference voltage and I soldered a wire to my Launchpad to supply 3.3V. With buffdac_sine_cpu01 there is sine output signal from the DAC but with this combined adc_soc_continuous_dma_cpu01 all DACVALS are zero and no output. I can't figure out the problem in the program. Do you get the output?
Thanks for you support.
Regards,
Jingtai