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.

CCS/TMS320F28379D: Problem with ADC

Part Number: TMS320F28379D

Tool/software: Code Composer Studio

Hello, I'm using LAB3 to do my project. In this LAB3 does not have the file F2837xD_ADC.c, so I added it to be able to use according to my project. But compiling generates many errors. How to solve?

**** Build of configuration Debug for project Lab3_cpu01 ****

"C:\\ti\\ccsv7\\utils\\bin\\gmake" -k all
'Building file: ../Constantes.c'
'Invoking: C2000 Compiler'
"C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 --fp_mode=relaxed --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/include" --include_path="C:/F2837xD/Device_support/F2837xD_common/include" --include_path="C:/F2837xD/Device_support/F2837xD_headers/include" --define=CPU1 -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="Constantes.d_raw" "../Constantes.c"
'Finished building: ../Constantes.c'
' '
'Building file: ../F2837xD_Adc.c'
'Invoking: C2000 Compiler'
"C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 --fp_mode=relaxed --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/include" --include_path="C:/F2837xD/Device_support/F2837xD_common/include" --include_path="C:/F2837xD/Device_support/F2837xD_headers/include" --define=CPU1 -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="F2837xD_Adc.d_raw" "../F2837xD_Adc.c"

>> Compilation failure
subdir_rules.mk:16: recipe for target 'F2837xD_Adc.obj' failed
"../F2837xD_Adc.c", line 24: warning #225-D: function "CalAdcINL" declared implicitly
"../F2837xD_Adc.c", line 26: error #20: identifier "GetAdcOffsetTrimOTP" is undefined
"../F2837xD_Adc.c", line 42: error #20: identifier "ADC_ADCA" is undefined
"../F2837xD_Adc.c", line 46: error #20: identifier "ADC_RESOLUTION_12BIT" is undefined
"../F2837xD_Adc.c", line 49: error #137: struct "ADC_REGS" has no field "ADCINLTRIM1"
"../F2837xD_Adc.c", line 50: error #137: struct "ADC_REGS" has no field "ADCINLTRIM2"
"../F2837xD_Adc.c", line 51: error #137: struct "ADC_REGS" has no field "ADCINLTRIM4"
"../F2837xD_Adc.c", line 52: error #137: struct "ADC_REGS" has no field "ADCINLTRIM5"
"../F2837xD_Adc.c", line 55: error #20: identifier "ADC_ADCB" is undefined
"../F2837xD_Adc.c", line 62: error #137: struct "ADC_REGS" has no field "ADCINLTRIM1"
"../F2837xD_Adc.c", line 63: error #137: struct "ADC_REGS" has no field "ADCINLTRIM2"
"../F2837xD_Adc.c", line 64: error #137: struct "ADC_REGS" has no field "ADCINLTRIM4"
"../F2837xD_Adc.c", line 65: error #137: struct "ADC_REGS" has no field "ADCINLTRIM5"
"../F2837xD_Adc.c", line 68: error #20: identifier "ADC_ADCC" is undefined
"../F2837xD_Adc.c", line 75: error #137: struct "ADC_REGS" has no field "ADCINLTRIM1"
"../F2837xD_Adc.c", line 76: error #137: struct "ADC_REGS" has no field "ADCINLTRIM2"
"../F2837xD_Adc.c", line 77: error #137: struct "ADC_REGS" has no field "ADCINLTRIM4"
"../F2837xD_Adc.c", line 78: error #137: struct "ADC_REGS" has no field "ADCINLTRIM5"
"../F2837xD_Adc.c", line 81: error #20: identifier "ADC_ADCD" is undefined
"../F2837xD_Adc.c", line 88: error #137: struct "ADC_REGS" has no field "ADCINLTRIM1"
"../F2837xD_Adc.c", line 89: error #137: struct "ADC_REGS" has no field "ADCINLTRIM2"
"../F2837xD_Adc.c", line 90: error #137: struct "ADC_REGS" has no field "ADCINLTRIM4"
"../F2837xD_Adc.c", line 91: error #137: struct "ADC_REGS" has no field "ADCINLTRIM5"
"../F2837xD_Adc.c", line 102: warning #161-D: declaration is incompatible with previous "CalAdcINL" (declared at line 24)
"../F2837xD_Adc.c", line 105: error #20: identifier "ADC_ADCA" is undefined
"../F2837xD_Adc.c", line 106: error #20: identifier "CalAdcaINL" is undefined
"../F2837xD_Adc.c", line 114: error #20: identifier "ADC_ADCB" is undefined
"../F2837xD_Adc.c", line 115: error #20: identifier "CalAdcbINL" is undefined
"../F2837xD_Adc.c", line 123: error #20: identifier "ADC_ADCC" is undefined
"../F2837xD_Adc.c", line 124: error #20: identifier "CalAdccINL" is undefined
"../F2837xD_Adc.c", line 132: error #20: identifier "ADC_ADCD" is undefined
"../F2837xD_Adc.c", line 133: error #20: identifier "CalAdcdINL" is undefined
30 errors detected in the compilation of "../F2837xD_Adc.c".
gmake: *** [F2837xD_Adc.obj] Error 1
'Building file: ../F2837xD_CodeStartBranch.asm'
'Invoking: C2000 Compiler'
"C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 --fp_mode=relaxed --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/include" --include_path="C:/F2837xD/Device_support/F2837xD_common/include" --include_path="C:/F2837xD/Device_support/F2837xD_headers/include" --define=CPU1 -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="F2837xD_CodeStartBranch.d_raw" "../F2837xD_CodeStartBranch.asm"
'Finished building: ../F2837xD_CodeStartBranch.asm'
' '
'Building file: ../F2837xD_CpuTimers.c'
'Invoking: C2000 Compiler'
"C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 --fp_mode=relaxed --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/include" --include_path="C:/F2837xD/Device_support/F2837xD_common/include" --include_path="C:/F2837xD/Device_support/F2837xD_headers/include" --define=CPU1 -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="F2837xD_CpuTimers.d_raw" "../F2837xD_CpuTimers.c"
'Finished building: ../F2837xD_CpuTimers.c'
' '
'Building file: ../F2837xD_DefaultISR.c'
'Invoking: C2000 Compiler'
"C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 --fp_mode=relaxed --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/include" --include_path="C:/F2837xD/Device_support/F2837xD_common/include" --include_path="C:/F2837xD/Device_support/F2837xD_headers/include" --define=CPU1 -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="F2837xD_DefaultISR.d_raw" "../F2837xD_DefaultISR.c"
'Finished building: ../F2837xD_DefaultISR.c'
' '
'Building file: ../F2837xD_EPwm.c'
'Invoking: C2000 Compiler'
"C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 --fp_mode=relaxed --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/include" --include_path="C:/F2837xD/Device_support/F2837xD_common/include" --include_path="C:/F2837xD/Device_support/F2837xD_headers/include" --define=CPU1 -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="F2837xD_EPwm.d_raw" "../F2837xD_EPwm.c"
'Finished building: ../F2837xD_EPwm.c'
' '
'Building file: ../F2837xD_GlobalVariableDefs.c'
'Invoking: C2000 Compiler'
"C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 --fp_mode=relaxed --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/include" --include_path="C:/F2837xD/Device_support/F2837xD_common/include" --include_path="C:/F2837xD/Device_support/F2837xD_headers/include" --define=CPU1 -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="F2837xD_GlobalVariableDefs.d_raw" "../F2837xD_GlobalVariableDefs.c"
'Finished building: ../F2837xD_GlobalVariableDefs.c'
' '
'Building file: ../F2837xD_Gpio.c'
'Invoking: C2000 Compiler'
"C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 --fp_mode=relaxed --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/include" --include_path="C:/F2837xD/Device_support/F2837xD_common/include" --include_path="C:/F2837xD/Device_support/F2837xD_headers/include" --define=CPU1 -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="F2837xD_Gpio.d_raw" "../F2837xD_Gpio.c"
'Finished building: ../F2837xD_Gpio.c'
' '
'Building file: ../F2837xD_Ipc.c'
'Invoking: C2000 Compiler'
"C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 --fp_mode=relaxed --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/include" --include_path="C:/F2837xD/Device_support/F2837xD_common/include" --include_path="C:/F2837xD/Device_support/F2837xD_headers/include" --define=CPU1 -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="F2837xD_Ipc.d_raw" "../F2837xD_Ipc.c"
'Finished building: ../F2837xD_Ipc.c'
' '
'Building file: ../F2837xD_PieCtrl.c'
'Invoking: C2000 Compiler'
"C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 --fp_mode=relaxed --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/include" --include_path="C:/F2837xD/Device_support/F2837xD_common/include" --include_path="C:/F2837xD/Device_support/F2837xD_headers/include" --define=CPU1 -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="F2837xD_PieCtrl.d_raw" "../F2837xD_PieCtrl.c"
'Finished building: ../F2837xD_PieCtrl.c'
' '
'Building file: ../F2837xD_PieVect.c'
'Invoking: C2000 Compiler'
"C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 --fp_mode=relaxed --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/include" --include_path="C:/F2837xD/Device_support/F2837xD_common/include" --include_path="C:/F2837xD/Device_support/F2837xD_headers/include" --define=CPU1 -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="F2837xD_PieVect.d_raw" "../F2837xD_PieVect.c"
'Finished building: ../F2837xD_PieVect.c'
' '
'Building file: ../F2837xD_SysCtrl.c'
'Invoking: C2000 Compiler'
"C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 --fp_mode=relaxed --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/include" --include_path="C:/F2837xD/Device_support/F2837xD_common/include" --include_path="C:/F2837xD/Device_support/F2837xD_headers/include" --define=CPU1 -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="F2837xD_SysCtrl.d_raw" "../F2837xD_SysCtrl.c"
'Finished building: ../F2837xD_SysCtrl.c'
' '
'Building file: ../F2837xD_usDelay.asm'
'Invoking: C2000 Compiler'
"C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 --fp_mode=relaxed --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/include" --include_path="C:/F2837xD/Device_support/F2837xD_common/include" --include_path="C:/F2837xD/Device_support/F2837xD_headers/include" --define=CPU1 -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="F2837xD_usDelay.d_raw" "../F2837xD_usDelay.asm"
'Finished building: ../F2837xD_usDelay.asm'
' '
'Building file: ../Lab3_cpu01.c'
'Invoking: C2000 Compiler'
"C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 --fp_mode=relaxed --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/include" --include_path="C:/F2837xD/Device_support/F2837xD_common/include" --include_path="C:/F2837xD/Device_support/F2837xD_headers/include" --define=CPU1 -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="Lab3_cpu01.d_raw" "../Lab3_cpu01.c"
'Finished building: ../Lab3_cpu01.c'
' '
'Building file: ../Tabela_Seno.c'
'Invoking: C2000 Compiler'
"C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 --fp_mode=relaxed --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.4.LTS/include" --include_path="C:/F2837xD/Device_support/F2837xD_common/include" --include_path="C:/F2837xD/Device_support/F2837xD_headers/include" --define=CPU1 -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="Tabela_Seno.d_raw" "../Tabela_Seno.c"
'Finished building: ../Tabela_Seno.c'
' '
gmake: Target 'all' not remade because of errors.

**** Build Finished ****