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/LAUNCHXL-F28027F: Help getting started with instaspin

Part Number: LAUNCHXL-F28027F
Other Parts Discussed in Thread: MOTORWARE, DRV8303, DRV8301

Tool/software: Code Composer Studio

Dear Colleagues,

I'm using a TIDA-00285 board with a Launchpad F28027F and trying to get instaspin up and running. I tried reading this document and InstaSPIN Projects and Labs User’s Guide provided inside MotorWare, but I am still unable to get going with this.

Are there any resources such as videos I can use to get started? I have no experience with CCS or motorware, but I have used other programming environments.

Who is the right person to get in touch to ask for support or maybe arrange a Webex?

  • 1. Follow the TIDA-00285 design guide to setup the board, to ensure the power supply of board works well first.
    2. As the chapter 7 design guide, it is compatible with "boostxldrv8301_revB" hardware and has the same pin configurations. You can use the labs projects for boostxldrv8301_revB kit in motorWare, but you need to modify the user.h for the design board which has a description in chapter 7.1.
    3. Set a correct USER_PWM_FREQ_kHz in user.h based on your motor.
    You can find more detail quick start instruction in instaSPIN lab guide in motorWare, you can use lab01b and lab01c to verify the board first.
  • Hi Yanming,

    I'm sitting with the printed manual in front of me and trying to follow the steps.

    It might be that the manual refers to an older version of CCS that the one I have installed and therefore I'm having some difficulty following all of the steps mentioned.

    Is the motorware manual the only resource available to get started?

  • Carlos,

    Motorware is the only resource currently available for InstaSPIN software support. Aside from the TI Design guide, there is no additional tools to develop InstaSPIN with.

    What issues are you seeing?

    Sean
  • I'm having issues configuring the software.

    Lab 1 is straightforward and provides all the required instructions, which don't match 100% but I was able to run it. Lab 1b starts by giving out some code. I have no idea where to find the files I should modify with this code or if I require hardware inputs.

    As to chapter 76.2 mentioned above, its says to modify a few values in user.h. I included a screenshot of that page, which links to a few macros.

    Shall  I delete the thse and replace with the values given such as

    pUserParams->iqFullScaleFreq_Hz = 800;

    or shall I write a config somewhere such as :

    #define USER_IQ_FULL_SCALE_FREQ_Hz 800.

    Is there a chance I can arrange to get some training on this subject, perhaps a live demo?

  • Hi Carlos,

    The picture you have shown is the user.c source file, but the values that need to be changed are in user.h, the accompanying header file. All of the editing should be done in user.h - this file, in essence, becomes the "unique identifier" for your board and motor combination.

    Lab1b is an open loop lab intended to verify the SVGEN and PWM integrity for custom hardware. You can run it, but I think the TI Design should provide enough details to skip 1b and 1c. These labs are mainly intended for customers who have used TI Designs or EVMs and now want to start development with their own boards.

    Please email me directly regarding additional training.

    Sean
  • Good point, hence why I could not find the #includes.

    Actually whenever I try to open user.h, user.c comes instead.
    Do I have to edit user.h on a text editor, external to CCS or am I missing something?

    Thanks
  • No, it should be able to be edited in CCS. Typically, user.h resides in C:\ti\motorware\motorware_1_01_00_18\sw\solutions\instaspin_foc\boards\boostxldrv8301_revB\f28x\f2802xF\src, but for this TI Design (which uses the DRV8303), you may need to create an additional entry in "\boards" subfolder for the F28027F user.h entry

    Sean
  • Thank you. I added the code, compiled and programmed the flash, but the motor doesn't run. How is the speed command given?

    Thank you.

  • Speed command is given by gMotorVars.SpeedRef_krpm. In CCS, try loading the corresponding JavaScript file into the Scripting Console for whichever lab you're working with, that will load the Watch Window with the corresponding variables necessary for that project. The .js files can be found in

    C:\ti\motorware\motorware_1_01_00_18\sw\solutions\instaspin_foc\src

    Sean
  • Thank you Sean. Would you be able to provide me with some guidance on how to add this module?

    I tried to create a define for the gMotorVars.SpeedRef_krpm variable as a fix, but I still don't have a PWM.
  • Looking through the TI Design user's guide, I see that they recommend using the F28027F LaunchPad + DRV8301 BoosterPack combination for the InstaSPIN labs, and then using labs 2c, 5a, and 9. Afterwards, they show you what changes to make to the corresponding user.h to ensure you're correctly referencing the TID hardware (instead of the BoosterPack). Is that correct? I'm trying to get a baseline for what potion of the development you're on.

    When you say "how to add this module," are you referring to running the corresponding JavaScript for whichever lab you're currently on?

    Sean