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.

C2000WARE-MOTORCONTROL-SDK: Running lab02

Part Number: C2000WARE-MOTORCONTROL-SDK
Other Parts Discussed in Thread: LAUNCHXL-F280049C, BOOSTXL-DRV8320RS, TMS320F280049C, C2000WARE

This is the lab for the LAUNCHXL-F280049C and BOOSTXL-DRV8320RS (but I accessed it from the CCS in my computer, not the cloudvariant):

https://dev.ti.com/tirex/explore/node?node=AC.UeGQ8OV1RHmPomRJIag__0.jXikd__LATEST

My problem is that the code seem to be broken, it's said in the manual that the it should generate 50% dutycycle pwm at startup, it does not.

And the boosterpack needs a DAC to generate the bias voltage for the current meassurement, this is not activated and produce no bias.

The voltage measurement seems ok.  Another thing is that the "TMS320F280049C_LaunchPad.ccxml" file in the project is missing when the project has been generated, so i had to make a copy of it from 

C:\ti\c2000\C2000Ware_MotorControl_SDK_3_02_00_00\c2000ware\device_support\f28004x\common\targetConfigs

  • You might download and instasll the MotorControl software development kit (SDK) on your PC. It should be ok to run these labs within CCS.

    C2000WARE-MOTORCONTROL-SDK: http://www.ti.com/tool/C2000WARE-MOTORCONTROL-SDK

     

    And follow the MotorControl SDK InstaSPIN Lab Guide to run this lab using CCS, the guide can be found in 

    \ti\c2000\C2000Ware_MotorControl_SDK_<version>\solutions\common\sensorless_foc\docs\labs

  • Yes, that is exactly what i did, or do i misunderstand something here? I am running both the SDK anc CCS on my PC. The laboration does not run properly. Can someone set up the same laboration on their machine with the same hardware and prove that the code is ok, and try to figure out whats wrong here?

  • The laboration does not run properly.

    What do you mean by this? Anny error reported when you run this lab? You need to connect BOOSTXL-DRV8320RS to LAUNCHXL-F280049C , and connect a dc power supply to the and BOOSTXL-DRV8320RS as well. And then follow the lab guide to set the "motorVars.flagEnableSys" to "1" in debug watch window.

    The "TMS320F280049C_LaunchPad.ccxml" was not missed in the project, you just need to refresh the project or open this file and save it again if showed any error on this file.

  • Please read my first post again: 

    "My problem is that the code seem to be broken, it's said in the manual that the it should generate 50% dutycycle pwm at startup, it does not. And the boosterpack needs a DAC to generate the bias voltage for the current meassurement, this is not activated and produce no bias."

    It can be seen i the picture in the first post the board is powered by 24V according to the  adc.DataDcBus_V = 24V. The problem is that the board does not produce any pwm signal with 50% duty cycle, and that the bias from LAUNCHXL-F280049C to the BOOSTXL-DRV8320RS for the current measurement bias is not there, thats why the adcData.I_A gives -0.26, when they should be close to middle of the full current range.

    Should "motorVars.flagEnableSys" be set to 1 for the generation of bias for current measurement? I actually think i did enable this flag, but not 100% percent sure, so i will check that tomorrow again. DOes the adc conversion run if this flag is not set?

  • Lab02 is only for checking the ADC offset and doesn't need to connect the motor to the BOOSTXL-DRV8320RS. The motor phase current should be equal to zero since 50% pwm duty is implemented on the three-phase at the same time.

    The ADC is still working, but the PWM will not output and the phase voltage sensing values are not correct if the "motorVars.flagEnableSys" is not set to "1".

    You should find the step below in lab guide

    5. To start the project, set the variable “motorVars.flagEnableSys” equal to 1 in the “Expressions” watch window.

  • Did you read my problem message? 
    "it's said in the manual that the it should generate 50% dutycycle pwm at startup, it does not. And the boosterpack needs a DAC to generate the bias voltage for the current meassurement, this is not activated and produce no bias."

    NO, the current reading SHOULD NOT be equal to zero, have you read the lab guide yourself? (page 27). 

  • Now I have removed the project and imported it again to CCS.And after the “motorVars.flagEnableSys” has been set it works.. PWM is  running, the current measurement deliveres -21 A, as a iddle value. And yes, it where the “motorVars.flagEnableSys” i had missed to enable. Thanks for the help  :-)