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.

Average current control loop for boost converter using TMS320F2802x

Other Parts Discussed in Thread: CONTROLSUITE, UCC28070EVM

Im working on a universirty project and i need to implement avearge current control for my boost converter(power factor correction) using a microcontroller. I bought TMS320F2802x to use it. i Was trying to find an example from controlsuite. The example i found was PFC2Phil, this example it doesnt debug when i use my microcontroller it says: i copied the information it display when i debug below. Please help me figure out what to change from the code so as it runs on my microcontrller. Thank You


**** Build of configuration F2802x_RAM for project PFC2PhiL ****

"C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
'Building target: PFC2PhiL.out'
'Invoking: C2000 Linker'
"C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/bin/cl2000" --silicon_version=28 -g --define="_DEBUG" --define="LARGE_MODEL" --diag_warning=225 --large_memory_model --cla_support=cla0 -z -m"PFC2PhiL.map" --stack_size=0x380 --warn_sections -i"C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/lib" -i"C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include" --reread_libs --xml_link_info="PFC2PhiL_linkInfo.xml" --rom_model -o "PFC2PhiL.out" "./ADC_SOC_Cnf.obj" "./Comp_DrvGlobalVars.obj" "./DSP2802x_CodeStartBranch.obj" "./DSP2802x_GlobalVariableDefs.obj" "./DSP2802x_usDelay.obj" "./DacDrvCnf.obj" "./PFC2PHIL-DevInit_F2802x.obj" "./PFC2PhiL-DPL-ISR.obj" "./PFC2PhiL-Main.obj" "C:/ti/controlSUITE/device_support/f2802x/v125/DSP2802x_headers/cmd/DSP2802x_Headers_nonBIOS.cmd" "../F28027_RAM_PFC2PHIL.CMD" "C:/ti/controlSUITE/libs/math/IQmath/v15b/lib/IQmath.lib"  -l"libc.a"
<Linking>
"../F28027_RAM_PFC2PHIL.CMD", line 90: error: program will not fit into
   available memory.  run placement with alignment/blocking fails for section
   "DLOG_BUFF" size 0x400 page 1.  Available memory ranges:
   dataRAM      size: 0x3b0        unused: 0x173        max hole: 0x172     


>> Compilation failure
 undefined         first referenced   
  symbol               in file        
 ---------         ----------------   
 _PWM_PFC2PHIL_CNF ./PFC2PhiL-Main.obj

error: unresolved symbols remain
error: errors encountered during linking; "PFC2PhiL.out" not built
gmake: *** [PFC2PhiL.out] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****

  • Hello,

    The unresolved symbol error occurs when a symbol isn't defined in one of the files included in the project. Please check that you've linked in the file that defines PWM_PFC2PHIL_CNF.

    Elizabeth
  • Hi, I'm new in c2000 picollo, can you please show me how do I link in the file that defines PWM_PFC2PHIL _CNF. Thank you

  • Hello,

    First you’ll have to search through the files to find where this is defined. You can check through the project’s header files to see which files are included with the # include. This variable should be defined in one of these included files.

    Once you’ve found this file and its location, right click on your project in the 'Project Explorer' and select 'Add Files...' Navigate to the file’s directory and select it. After you select the file, you’ll have the option to copy the file into the project or link it. You can link this file to the project if you do not need to modify it.

    Elizabeth

  • Hi,

    when i do that it says,

    'Building target: PFC2PhiL.out'
    'Invoking: C2000 Linker'
    "C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/bin/cl2000" --silicon_version=28 -g --define="_DEBUG" --define="LARGE_MODEL" --diag_warning=225 --large_memory_model --cla_support=cla0 -z -m"PFC2PhiL.map" --stack_size=0x380 --warn_sections -i"C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/lib" -i"C:/ti/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include" --reread_libs --xml_link_info="PFC2PhiL_linkInfo.xml" --rom_model -o "PFC2PhiL.out" "./ADC_SOC_Cnf.obj" "./Comp_DrvGlobalVars.obj" "./DSP2802x_CodeStartBranch.obj" "./DSP2802x_GlobalVariableDefs.obj" "./DSP2802x_usDelay.obj" "./DacDrvCnf.obj" "./PFC2PhiL-DPL-ISR.obj" "./PFC2PhiL-DevInit_F2802x.obj" "./PFC2PhiL-Main.obj" "./PWM_PFC2PhiL_Cnf.obj" "C:/ti/controlSUITE/device_support/f2802x/v125/DSP2802x_headers/cmd/DSP2802x_Headers_nonBIOS.cmd" "../F28027_RAM_PFC2PHIL.CMD" "C:/ti/controlSUITE/libs/math/IQmath/v15b/lib/IQmath.lib"  -l"libc.a" -l"C:\ti\controlSUITE\development_kits\C2000_LaunchPad\f2802x_common\lib\IQmath.lib" -l"C:\ti\controlSUITE\development_kits\C2000_LaunchPad\f2802x_common\lib\driverlib.lib"
    <Linking>
    "../F28027_RAM_PFC2PHIL.CMD", line 90: error: program will not fit into

    >> Compilation failure
       available memory.  run placement with alignment/blocking fails for section
       "DLOG_BUFF" size 0x400 page 1.  Available memory ranges:
       dataRAM      size: 0x3b0        unused: 0x173        max hole: 0x172     
    error: errors encountered during linking; "PFC2PhiL.out" not built
    gmake: *** [PFC2PhiL.out] Error 1
    gmake: Target `all' not remade because of errors.

    **** Build Finished ****


    Thank you

  • Hello,

    Here is a resource on linker command files:

    processors.wiki.ti.com/.../C28x_Compiler_-_Understanding_Linking

    This should help you modify the given linker command file to fit your project's needs.

    Elizabeth
  • Hi,
    thank you very much. i managed to get the code working. I was following the pdf attached with the project PFC2PHIL, this document it has a step where it says ,"Power the AC input with an AC input voltage within the abilities of the board (110Vac to 230Vac is recommended)." so i don't understand if it means now i must connect my circuit or the launchpad(board). thank you.
  • Hello,

    I'm not experienced with this project or the documentation, so I'll ask others with the expertise to answer this question.

    Elizabeth

  • Hi,

    I would really appreciate that. Thank you
  • "Power the AC input with an AC input voltage within the abilities of the board (110Vac to 230Vac is recommended)."

    It means that you need to connect the power cable that supplies AC volt to the board, while keeping the AC source off. This AC voltage should be supplied by an isolated AC source.

    Which pdf file you mentioned? Pls send the name of the file and the page number you are looking at.

    Shamim

  • Hi,

    Thanks for the reply, the pdf is HVPFC2PHIL, is in controlsuite, page 20 step 25. From the answer you gave me, where to the board to JP2 or where, like im struggling to understand how that is done. Please help me understand how do i do that and where to the board. You help would be highly appreciated. Thank you

    Sifiso

  • Hi,

    I think i understand what i should do,but i dont havr the board.I bought a launchpad only and it says it can be powered from a computer or with 3.3 V or 5 V.

  • Hi,
    I am facing the same problems while building project PFC2PHIL. Could you tell me what changes you made for code to work.Your help would be highly appreciated.
    Thank You.

    Regards,
    Kalpesh
  • Please download UCC28070EVM User guide from TI website. This is the documentation for the PFC power stage used in this project. See page 3 Figure 1. It shows the AC input and DC output terminals. Use this to connect your AC source and DC bus load.

    Shamim