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/UCD3138PFCEVM-026: Unable to understand PWR026_PFC code

Part Number: UCD3138PFCEVM-026
Other Parts Discussed in Thread: UCD3138

Tool/software: Code Composer Studio

Hi,

I am working on bridgeless PFC using UCD3138 for controlling, so I am referring PWR026 PFC EVM source code. But PWR026 PFC EVM source code is for interleaving, bridgeless and single-phase boost PFC. So how to configure it for only bridgeless PFC. I am also referring to the "Application Report SLUA713 – April 2014 Designing a UCD3138 Controlled Bridgeless PFC", but the code given in this application report is nowhere in the PWR026 PFC EVM source code. Since I am new to the CCS and its coding, if possible please give me a detailed explanation of my query. 

Thanks and regards,

Ishtiyaque Ahmad 

 

  • open the project in CCS, click on Project  ->Properties ->C/C++ Build ->Settings ->Advanced Options ->Predefined Symbols,  in the "Pre -deine NAME" window, change PFC_TYPE = BRIDGELESS

  • Hi, Bosheng sun

    Thank you for your reply. But what about the other half of my query i.e as I am also referring to the "Application Report SLUA713 – April 2014 Designing a UCD3138 Controlled Bridgeless PFC", but the code given in this application report is nowhere in the PWR026 PFC EVM source code. 

    Also on clicking the "Build Project" option in CCS, it is not generating the ".0x " file. Showing the following messages :

    Tektronix Extended format
    ("C:/ti/ccsv8/tools/compiler/ti-cgt-arm_5.2.9/bin/armhex.exe" -x "PWR026_PFC_UCD3138.out" -o "PWR026_PFC_UCD3138.x0" -memwidth 8)
    makefile:195: recipe for target 'post-build' failed
    process_begin: CreateProcess(NULL, (C:/ti/ccsv8/tools/compiler/ti-cgt-arm_5.2.9/bin/armhex.exe -x PWR026_PFC_UCD3138.out -o PWR026_PFC_UCD3138.x0 -memwidth 8), ...) failed.

    Please help with this also.

    Thanks and regards,

    Ishtiyaque Ahmad

  • all the code example in SLUA713 are in PWR026 PFC EVM source code

    click on project ->properties ->CCS Build ->Steps, in the "Post0build steps" window, make sure you have exact like this:

    "${CG_TOOL_HEX}.exe" -x "${BuildArtifactFileName}" -o "${BuildArtifactFileBaseName}.x0" -memwidth 8

  • Hi, Bosheng sun

    Thank you for your reply. can you please give me a snapshot, showing code example of SLUA7013 in PWR026 PFC EVM source code. That will help me as I am not able to figure it out on myself. 

    Thanks once again for helping me out.

    Regards,

    Ishtiyaque Ahmad  

  • I am the author of both SLUA713 and PWR026 PFC EVM source code, all the code example in SLUA713 can be found in the EVM source code, you just need to read through.

  • OK, but what about the error as I am not able to generate to .0x file and I have checked its exactly like what you have suggested 

    click on project ->properties ->CCS Build ->Steps, in the "Post0build steps" window, make sure you have exact like this:

    "${CG_TOOL_HEX}.exe" -x "${BuildArtifactFileName}" -o "${BuildArtifactFileBaseName}.x0" -memwidth 8

    but still it failed to generate .0x file

    Thanks and regards,

    Ishtiyaque Ahmad

     

  • which version of CCS do you use? we recommend CCS 6.1

  • I am using CCS 8.3.1