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.

TMS320F28P650DK: BOOSTXL-BUCKCONV

Part Number: TMS320F28P650DK
Other Parts Discussed in Thread: TIDM-DC-DC-BUCK, BOOSTXL-BUCKCONV, LAUNCHXL-F280049C, POWERSUITE, SFRA

Tool/software:

Hi @Peter Luong1

You had sent me this ACMC code in a previous conversation thread (shown below) a while ago. I'm looking into it now and I don't see the #define ACMC in the buck_user_settings.h file. Also I  don't see the lab2_acmc.js file either. 

Regards,

Mike Allette

Peter Luong said:

"Hi Mike,

This zip contains the CCS project to demonstrate ACMC on the TIDM-DC-DC-BUCK project interfacing on the BOOSTXL-BUCKCONV hardware with F28004x LaunchPad. This has been fully tested on hardware but compensators are generic and not tuned. From my testing, this works as expected

buck_F28004x_ACMC.zip

ACMC is implemented on top of the closed-loop VMC build (build 2).

Project can switch between closed-loop VMC and closed-loop ACMC by changing the #define ACMC in the buck_user_settings.h file. Setting to 1 will be ACMC and setting it to 0 will be VMC.

Also, I have created a different debug environment so you can execute this script to see the desired ACMC variables used in the code. Refer to the lab2_acmc.js file

Regards,

Peter"

  • Hi Mike,

    Nice to talk with you again

    Not sure how I didn't notice this when I sent over the previous files but it seems I included the wrong project. Here's the actual ACMC project I was referring to, it should have all the necessary files. Note I haven't tested this code in quite some time but I don't believe I have made any major modifications and it should still work on LAUNCHXL-F280049C + BOOSTXL-BUCKCONV hardware. Everything builds as expected on my machine

    buck_F28004x_updated_ACMC.zip

    Regards,

    Peter

  • Thank you so much Peter.

    For some reason I keep getting an error when trying to debug the project. It looks like it builds fine though. I recently went through all 4 labs in the TIDM-DC-DC-BUCK Design Guide and it worked fine. I tried running it in Code Composer Studio Version 12.8.1 and in CCS Theia Version 1.5.1 and was getting the same error. Which version of code composer should I use for this project?

    Code Composer Studio Version 12.8.1:

    CCS Theia Version 1.5.1:

  • Hi Mike,

    I haven't tested this project with Theia or v20 but it should be working on CCS v12. The message seems to indicate that the board is not connected to the PC. Can you try testing the JTAG connection using the .ccxml file in the project? You may need to try remaking a new .ccxml depending on your file directory.

    Regards,

    Peter

  • Hi Peter,

    Creating a new .ccxml worked. Thanks!

    Now I'm getting a few errors in the buck_main.c code. do you know what these could be? I'm also not seeing any voltage in the BUCK_vInSensed_Volts expression where I should be seeing approx. 9V. (Not sure if that's connected to the errors) I double checked with the regular buck_F28004 project and it works.

  • Hi Mike,

    What changes have you made in the code from the provided?

    The code has been developed to showcase ACMC so other builds apart from ACMC have not been tested. I don't believe there is an open-loop implementation either, it is just closed-loop from what I recall

    Regards,

    Peter

  • Hi Peter,

    I didn't change anything in the code. The only things I noticed is when building the project, I get a gmake error (not sure what that means).

    Also, when attempting to debug, a popup showed up asking me to select a debug setting, I wasn't sure so I selected the buck_F28004x_teradyne_ACMC.launch. Maybe that was the wrong one to select?

  • Hi Mike,

    The error you have seems to occur during the powerSUITE build part of the project. I assume if you open up the .syscfg file it will throw some error. 

    Since powerSUITE isn't really necessary for the testing, here is a project which doesn't have that powerSUITE setting so it should need to invoke any extra build steps. This may resolve your issue

    buck_nonpowerSUITE_F28004x_ACMC.zip

    Regards,

    Peter

  • Hi Peter,

    Thank you! Project builds and is able to debug. 

    When I try to run the SFRA, the BUCK_iOutTripFlag keeps tripping. Not sure what could cause an overcurrent condition. I tried with BUCK_activeLoadContEnable enabled only  and also tried with BUCK_activeLoadEnable and BUCK_activeLoadContEnable enabled together. Does it work fine for you?

  • Hi Mike,

    I haven't run this example project with SFRA before. But if everything builds correctly, I don't see why the trip is occurring. Could you scope ILFB on the board with a current probe, as well as the driver signals? Would be good to compare the ACMC scope shots with and without SFRA enabled to identify the issue

    Regards,

    Peter

  • Ok, will do.

    How familiar are you with how the ACMC is implemented in the code? Are you able to go on a call to explain it a bit when you get a chance? Which portion of the code is it being accomplished?

  • Hi Mike,

    Yes I wrote the ACMC code so I am familiar with the implementation. The following video is quite helpful and was used as reference during the code development: https://youtu.be/bjU9Jn0nRZg?si=I51C3MFzWeZk4O4U

    Essentially the key concepts are the two control loops in the code, an outer voltage loop which feeds into the inner current loop. The main difference this entailed was adding an additional controller into the original BUCK code and then adjusting the control loop to produce the calculations for the control loop parameters. 

    If you would like to set up a meeting, you can reach out through email as we have some other email threads previously. I have some testing data I can provide through email as well

    Regards,

    Peter