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)