Version conflicts during build/debug program or asm/cmd file ?

Dear All,

I am working in a project where, a AC to DC converter is taking part for a battery charger( 120vdc/50A). F28069 is my goal for control the whole system considering ADC, PWM switching, shunt sensing and battery charging and discharging monitoring.( very complex algorithm and PID)

I have a reference design F\W, It was debug in CCS version  v.5. Some other people might use other versionV10.1, V.1  as well. 

For three phase I started with following for AC R phase  initialization 

include "AC_SYNC.h"
#include "Register.h"
#include "LED.h"
#include "Message.h"
#include "PWM.h"


BOOL bACSync;
int AC_R_SyncIndex;


////////////////////////////////////////// AC Sync
void InitAC_Sync(void)
{
GpioIntRegs.GPIOXINT1SEL.bit.GPIOSEL = 23; // XINT1 is GPIO23, XINT1 Source Select Register,This is multiplexing MUX PIE table 


XINT1 = &XINT_AC_R_ISR; // XINT1 External Interrupt 1,that is called as a function of Interrupt enable register(IER) in pie vector table
PieCtrlRegs.PIEIER1.bit.INTx4 = 1; // Enable PIE Group 1 INT4
XIntruptRegs.XINT1CR.bit.POLARITY = 1; // Riging edge, XINT1CR is external intrurrept control from GPIOINT1SL MUX [ 4:0], polarity determines rising or falling edge of a signal, 1 means EN

GpioCtrlRegs.GPAPUD.bit.GPIO23 = 0; // Pull UP,GPAPUD Enable the internal pullup on the specified pin,default for GPIO12-GPIO31
GpioCtrlRegs.GPAMUX2.bit.GPIO23 = 0; // GPIO, GPIO23 is A MUX 2 Register, address 0x6F88, size 2*16,EALLOW-Protected
GpioCtrlRegs.GPADIR.bit.GPIO23 = 0; // INPUT, GPIO Port A Direction, 0 means Configures the GPIO pin as an input( default)

BOOL is not a assembly language or floating unit? 

Currently I am using Project>properties>General > In advance setting I am using compiler v TIv6.0.2 , Liner command file  F28069_CLA_lnk.cmd  and rts2800_fpu32.lib for runtime support lib.

At Project>properties>Built>C2000 Compiler> at add  # include search path I have have  adding F2806x common and header files and CG_TOOL_ROOT.

in  F28069_CLA_lnk.cmd file its written that

 / For Code Composer Studio V2.2 and later
// ---------------------------------------
// In addition to this memory linker command file,
// add the header linker command file directly to the project.
// The header linker command file is required to link the
// peripheral structures to the proper locations within
// the memory map.
//
// The header linker files are found in <base>\F2806x_headers\cmd
//
// For BIOS applications add: F2806x_Headers_BIOS.cmd
// For nonBIOS applications add: F2806x_Headers_nonBIOS.cmd

In this project some assembly files are not activated not sure does it need modification or not.

Take a look..

Take a look the build console for this file.

C:\ti\ccsv5\utils\bin\gmake -k all
'Building file: ../AC_SYNC.c'
'Invoking: C2000 Compiler'
"C:/ti/ccsv5/tools/compiler/c2000/bin/cl2000" -v28 -mt -ml -g -O3 --include_path="C:/ti/ccsv5/tools/compiler/c2000/include" --include_path="C:/ti/ccsv5/tools/compiler/c2000/lib" --include_path="C:/F2806x_common" --include_path="C:/F2806x_headers" --diag_warning=225 --display_error_number --cla_support=cla0 --float_support=fpu32 --vcu_support=vcu0 --preproc_with_compile --preproc_dependency="AC_SYNC.pp" "../AC_SYNC.c"
"..\DSP28x_Project.h", line 173: fatal error #5: could not open source file "F2806x_Adc.h"
1 fatal error detected in the compilation of "../AC_SYNC.c".
Compilation terminated.

Just one error says ' fatal error #5: could not open source file "F2806x_Adc.h"

Kindly suggest what should I do.

    • Hello Sir,

      I found that some of driver files used in this project is mismatched on date.

      So, again I created this project with those same .src, asm, .h and .c files.

      Now looking that the previous version ccs v.5,  I found a document named " TMS320C28x Optimizing C/C++
      Compiler v6.0" which was exactly same compiler I used previously.

      I managed to build this program with this instruction with "Invoking the C/C++ Compiler". Lot of Compiler's Behavior With Options chages accordingly. And as a result I got 0 error.

      C2000Ccompiler.pdf

      but, console says following warning, but just for only 

      >> WARNING: invalid compiler option -tack (ignored)

      **** Build of configuration Debug for project Demo ****
      C:\ti\ccsv5\utils\bin\gmake -k all
      'Invoking: C2000 Compiler'
      "C:/ti/ccsv5/tools/compiler/c2000/bin/cl2000" --cmd_file="C:\F2806x_common\cmd\F28069_CLA_lnk.cmd" --cmd_file="C:\F2806x_common\cmd\F28069.cmd" --cmd_file="C:\F2806x_common\cmd\28069_RAM_CLA_C_lnk.cmd" -v28 -mt -ml -g -O2 -ms --embedded_cpp --relaxed_ansi --rtti --program_level_compile --include_path="C:/ti/ccsv5/tools/compiler/c2000/include" --include_path="C:/F2806x_headers/F2806x_headers/include" --include_path="C:/F2806x_common/include" --diag_warning=225 --write_diagnostics_file --diag_remark=Number of errors --display_error_number --no_warnings --issue_remarks --tool_version --gen_func_subsections=on --sat_reassoc=off --no_fast_branch --cla_support=cla0 --float_support=fpu32 --vcu_support=vcu0 --optimizer_interlist --call_assumptions=2 --remove_hooks_when_inlining --opt_for_speed=1 --gen_opt_info=1 --entry_parm=name --exit_parm=name --printf_support=minimal --std_lib_func_redefined -k --c_src_interlist --asm_listing --output_all_syms --syms_ignore_case --asm_remarks --cdebug_asm_data --asm_includes --cross_reference --asm_dependency --asm_directory="C:/F2806x_common/cmd" "../AC_SYNC.c" "../ADC.c" "../CAN_Module.c" "../CLA.c" "../ChargeNDischarge.c" "../Control.c" "../D_OUT.c" "../EEPRom.c" "../F2806x_CpuTimers.c" "../F2806x_DefaultIsr.c" "../F2806x_GlobalVariableDefs.c" "../F2806x_PieCtrl.c" "../F2806x_PieVect.c" "../F2806x_SysCtrl.c" "../Global.c" "../LED.c" "../Main_Timer.c" "../Message.c" "../PRCharger.c" "../PRRect.c" "../PWM.c" "../Register.c" "../SCI.c" "../Serial.c" "../eCAN.c" "../main.c" "../CLATask.cla" "../F2806x_CSMPasswords.asm" "../F2806x_CodeStartBranch.asm" "../F2806x_DBGIER.asm" "../F2806x_DisInt.asm" "../F2806x_usDelay.asm"
      TMS320C2000 C/C++ Compiler v6.0.2
      Build Number 1LHVJ-KDADEMDK-RTARQ-TAV-ZAZH_W_Q_S
      >> WARNING: invalid compiler option -tack (ignored)
      >> WARNING: invalid compiler option --undef_sym=__cla_scratchpad_start (ignored)
      TMS320C2000 C/C++ Parser v6.0.2
      Build Number 1LHVJ-KDADEMDK-RTARQ-TAV-ZAZH_W_Q_S
      TMS320C2000 C/C++ File Merge v6.0.2
      Build Number 1LHVI-KDADEMDK-RTARQ-TAV-ZAZH_W_Q_S
      TMS320C2000 C/C++ Optimizer v6.0.2
      Build Number 1LHVJ-KDADEMDK-RTARQ-TAV-ZAZH_W_Q_S
      TMS320C2000 C/C++ Codegen v6.0.2
      Build Number 1LHVJ-KDADEMDK-RTARQ-TAV-ZAZH_W_Q_S
      TMS320C2000 Assembler v6.0.2
      Build Number 1LHVJ-KDADEMDK-RTARQ-TAV-ZAZH_W_Q_S
      TMS320C2000 Embed Utility v6.0.2
      Build Number 1LHVI-KDADEMDK-RTARQ-TAV-ZAZH_W_Q_S
      TMS320C2000 C Source Interlister v6.0.2
      Build Number 1LHVI-KDADEMDK-RTARQ-TAV-ZAZH_W_Q_S
      TMS320C2000 Linker v6.0.2
      Build Number 1LHVJ-KDADEMDK-RTARQ-TAV-ZAZH_W_Q_S
      TMS320C2000 Absolute Lister v6.0.2
      Build Number 1LHVI-KDADEMDK-RTARQ-TAV-ZAZH_W_Q_S
      TMS320C2000 Strip Utility v6.0.2
      Build Number 1LHVJ-KDADEMDK-RTARQ-TAV-ZAZH_W_Q_S
      TMS320C2000 Post Link Optimizer v6.0.2
      Build Number 1LHVJ-KDADEMDK-RTARQ-TAV-ZAZH_W_Q_S
      TMS320C2000 XREF Utility v6.0.2
      Build Number 1LHVJ-KDADEMDK-RTARQ-TAV-ZAZH_W_Q_S
      TMS320C2000 C++ Demangler v6.0.2
      Build Number 1LHVI-KDADEMDK-RTARQ-TAV-ZAZH_W_Q_S
      TMS320C2000 Hex Converter v6.0.2
      Build Number 1LHVI-KDADEMDK-RTARQ-TAV-ZAZH_W_Q_S
      TMS320C2000 Library Builder v6.0.2
      Build Number 1LHVI-KDADEMDK-RTARQ-TAV-ZAZH_W_Q_S
      TMS320C2000 Name Utility v6.0.2
      Build Number 1LHVI-KDADEMDK-RTARQ-TAV-ZAZH_W_Q_S
      TMS320C2000 Object File Display v6.0.2
      Build Number 1LHVJ-KDADEMDK-RTARQ-TAV-ZAZH_W_Q_S
      TMS320C2000 Archiver v6.0.2
      Build Number 1LHVJ-KDADEMDK-RTARQ-TAV-ZAZH_W_Q_S
      'Finished building: AC_SYNC.obj'
      ' '
      'Building target: Demo.out'
      'Invoking: C2000 Linker'
      "C:/ti/ccsv5/tools/compiler/c2000/bin/cl2000" --cmd_file="C:\F2806x_common\cmd\F28069_CLA_lnk.cmd" --cmd_file="C:\F2806x_common\cmd\F28069.cmd" --cmd_file="C:\F2806x_common\cmd\28069_RAM_CLA_C_lnk.cmd" -v28 -mt -ml -g -O2 -ms --embedded_cpp --relaxed_ansi --rtti --program_level_compile --diag_warning=225 --write_diagnostics_file --diag_remark=Number of errors --display_error_number --no_warnings --issue_remarks --tool_version --gen_func_subsections=on --sat_reassoc=off --no_fast_branch --cla_support=cla0 --float_support=fpu32 --vcu_support=vcu0 --optimizer_interlist --call_assumptions=2 --remove_hooks_when_inlining --opt_for_speed=1 --gen_opt_info=1 --entry_parm=name --exit_parm=name --printf_support=minimal --std_lib_func_redefined -k --c_src_interlist --asm_listing --output_all_syms --syms_ignore_case --asm_remarks --cdebug_asm_data --asm_includes --cross_reference --asm_dependency --asm_directory="C:/F2806x_common/cmd" -z -m"Demo.map" --stack_size=0x300 --disable_pp --set_error_limit=100 --emit_warnings_as_errors --no_demangle --warn_sections -i"C:/ti/ccsv5/tools/compiler/c2000/lib" -i"C:/F2806x_common/lib" -i"C:/ti/ccsv5/tools/compiler/c2000/include" --priority --reread_libs --relocatable --make_static --no_symtable --scan_libraries --undef_sym=% --rom_model --disable_clink --runpath="C:/" -o "Demo.out" "AC_SYNC.obj" -l"C:\F2806x_common\lib\SFO_TI_Build_V6b_FPU.lib" -l"C:\F2806x_common\cmd\F28069_CLA_lnk.cmd" -l"C:\F2806x_common\cmd\28069_RAM_CLA_C_lnk.cmd" "../28069_RAM_lnk.cmd" "../F28069_CLA_lnk.cmd" "../F2806x_Headers_nonBIOS.cmd" "F2806x_CSMPasswords.obj" "F2806x_CodeStartBranch.obj" "F2806x_DBGIER.obj" "F2806x_DisInt.obj" "F2806x_usDelay.obj"
      TMS320C2000 C/C++ Compiler v6.0.2
      Build Number 1LHVJ-KDADEMDK-RTARQ-TAV-ZAZH_W_Q_S
      >> WARNING: invalid compiler option -tack (ignored)
      >> WARNING: invalid compiler option --undef_sym=__cla_scratchpad_start (ignored)
      TMS320C2000 C/C++ Parser v6.0.2
      Build Number 1LHVJ-KDADEMDK-RTARQ-TAV-ZAZH_W_Q_S
      TMS320C2000 C/C++ File Merge v6.0.2
      Build Number 1LHVI-KDADEMDK-RTARQ-TAV-ZAZH_W_Q_S TMS320C2000 C/C++ File Merge