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.

BOOSTXL-BUCKCONV: error with c2000 read12M-Voltage Controller Simulink example implemented with f280049c launchpad

Part Number: BOOSTXL-BUCKCONV
Other Parts Discussed in Thread: TIDM-DC-DC-BUCK, C2000WARE

Hello,

I tried to apply the simulink example (https://www.mathworks.com/help/supportpkg/texasinstrumentsc2000/ug/dc-dc-buck-converter.html) on the f280049c microcontroller modifying the ADC block for Vout FB and IL FB and changing the ePWM. I managed to build and deploy the programm on the microcontroller but once I try to imput the c2000_read 12M with the new COM ports it says that there is an error in the callback. I have no idea why this is happening if you can help me please. I checked the com port and I selected the com 3.

Best,

Thibaut Harzig

  • Thibaut,

    You want to use COM4 based on you screenshot, this is the UART connection.  COM3 is the physical XDS110 connection for the debug probe.

    You'll also need to make sure that Switch S8 and S6 correspond to the GPIOs you have selected for the UART in the MW example(since you are porting over).

    Best,

    Matthew

  • Hello Matthew,

    Thank you for your quick answer. 

    I actually tried com 4 with with S6 and S8 in the default configuration (see picture) I saw on the datasheet it is the way to connect to the virtual com port so it should be good. I had another information checking the status of COM4 on the matlab and I got the datasetready bit to 0 if it can help debugging the problem. I still have the problem applying the com 4 for the c2000 read 12M.

    Also another question I have is about the buck converter itself. What is the maximum input voltage Vin measured? I need it to make transformation from 4095 adc count to the actual measured value. 

    Thank you,

    Best,

    Thibaut Harzig

  • I actually have this error executing the c2000 read12M. I just saved the code for the controller and the c2000read 12M in the same folder but outside the example folder of simulink.

  • Thibaut,
    I'm going to pull in some other to help here(both MW and TI), appreciate your patience here.

    Best,

    Matthew

  • Also another question I have is about the buck converter itself. What is the maximum input voltage Vin measured? I need it to make transformation from 4095 adc count to the actual measured value. 

    The input voltage scaling allows for sampling up to 13.3V on Vin. You can find the derivation in the TIDM-DC-DC-BUCK_Calculations.xlsx spreadsheet from the SDK: ~\C2000Ware_DigitalPower_SDK_XXXX\solutions\tidm_dc_dc_buck\hardware\

  • Hi Thibaut,

    Please contact MathWorks Support at:

    Contact Us - MATLAB & Simulink (mathworks.com)

    by creating a service request.

    We will probably need to have a WebEx meeting to debug the issue.

    Regards,

    Venkatesh C