Because of the holidays, TI E2E™ design support forum responses will be delayed from Dec. 25 through Jan. 2. Thank you for your patience.

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.

Instaspin-FOC DRV8312 -69M-KIT Software

Other Parts Discussed in Thread: DRV8312, MOTORWARE, CONTROLSUITE

Hi All,

   I'm using DRV8312 -69M-KIT EVM, I have installed Motorware V1.01.00.09 with path:C:\ti\MotorWare\MotorWare_1_01_00_09 and have installed  CCS5.4, but we I import Instaspin-FOC projects code to CCS5 with project path C:\ti\MotorWare\MotorWare_1_01_00_09\sw , then when I compiler the project proj_lab01,there have some errors as the following picutre show. I'm wondering that in Includes I can find the file"user.h". why display could not open source file "user.h", and how can I fix this issues.thanks!

  • Hello,

    Maybe you can refer to this thread:

    http://e2e.ti.com/support/microcontrollers/c2000/f/902/t/279072.aspx

    I think your user.h should be in C:\ti\motorware\MotorWare_1_01_00_09\sw\solutions\instaspin_motion\boards\drv8312kit_revD\f28x\f2806xM\src

    You can copy it to your workspace and refer it in Include path of your project in CCS.

    Best regards,

    Maria

  • elan,

    I just tested this with a fresh download of MotorWare version _09 and everything worked fine.

    I would tell you to make sure that this file exists

    C:\ti\motorware\MotorWare_1_01_00_09\sw\solutions\instaspin_foc\boards\drv8312kit_revD\f28x\f2806xF\src\user.h

    but from your screen shot it looks like it does....very strange.

    Did you make any changes as you installed or make any changes to your CCS variables?

    you can right click user.c, properties, and make sure that your install location variables are set like my attached image (they should be by default).

  • Dear ChrisClearman,

      I have checked as your mentioned. The following is my setting.

      My original setting(default) as below:

    it can't work. so I tried as the following two ways:

    1). copy can't  find files such as user.h, drv_obj.h,drv.c to workspace prj_lab01 folder, then compiler OK;

    2. Delete all importing Instaspin-FOC lab projects from CCS and workspace, then importing projects from the same path:C:\ti\MotorWare\MotorWare_1_01_00_09\sw and not select " copy projects into workspace";compiler it and it works OK. check the varibles setting as bleow:

    It seems these two ways can make it work, but I'm still wonder why ?  If I importing ControlSuit projects and other TI C2000 example projects, I select " copy projects into workspace", all can complier OK and it works OK. But Motorware have this trouble. thanks!

     

  • elan,

    Oh, I understand what is happening now.

    with controlSUITE all of the project files are in the folder where the .project resides. so if you import a project and choose to copy into a workspace it works fine

    With MotorWare we recommend that you work out of the MotorWare directory. We think this is better to make sure you are referencing files in the latest revision.

    But looking at MotorWare "Copy projects into workspace" I see that it ALMOST works. The problem is that several of the .c/.h files at 

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

    include #user.h

    but user.h is not at this level, the user.h is always at the .project, up three levels, then down to src\user.h {since there is a user.h for each solution + board + mcu target}

    Let me see if we can fix this going forward, but for now please

    IMPORT and DESELECT "Copy projects into workspace"

  • Dear ChrisClearman,

       Thanks for your reply, I'm understanding it now.