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.

[FAQ] DRV8316REVM: DRV8316REVM Source Code for MotorControl SDK

Part Number: DRV8316REVM
Other Parts Discussed in Thread: LAUNCHXL-F280049C, C2000WARE

The DRV8316REVM can be used with the LAUNCHXL-F280049C to provide sensorless Field-oriented control (FOC) via the MotorControl Software Development Kit from C2000. MotorControl is a cohesive set of software infrastructure, tools, and documentation designed to minimize C2000 MCU based motor control system development time targeted for various three-phase motor control applications. It includes InstaSPIN-FOC firmware that runs on motor control evaluation modules, such as the DRV8316REVM. This E2E FAQ provides the pre-production firmware for the DRV8316REVM intended for integration with MotorControl SDK.

The firmware is compatible for both the DRV8316R (SPI variant) and the DRV8316T (Hardware variant). Note that the DRV8316REVM is populated by default with the DRV8316R but it is also compatible with the DRV8316T. Follow the section “DRV8316T Compatibility” in the DRV8316REVM User’s Guide to configure the evaluation mode for the intended variant.

MotorControl SDK provides a variety of labs (described in the MotorControl SDK InstaSPIN User’s Guide) to validate the InstaSPIN-FOC algorithm on the evaluation hardware and develop advanced control techniques such as field weakening and MTPA control. The source code can be used to generate binary output files (.out) after the project has been built by the compiler. You can run or debug the .out file in CCS or import the .out file into the DRV8316REVM InstaSPIN Universal GUI, which is available for evaluation and download on the Gallery.


Version Follow the steps below. 

Steps for integrating DRV8316REVM Sensorless-FOC firmware:

  1. Download Code Composer Studio. Ensure to install compiler options for “C2000 Real Time MCUs”.
  2. Download MotorControl SDK version
  3. Download the “” solution folder:
  4. Extract all files of “” into C:\ti\c2000\C2000Ware_MotorControl_SDK_3_01_00_00\solutions.
  5. Open up Code Composer Studio.
  6. Under “Project”, click on “Import CCS Projects”. Then click "Browse".
  7. Navigate to the following directory: C:\ti\c2000\C2000Ware_MotorControl_SDK_3_01_00_00\solutions\drv8316revm\f28004x\ccs\sensorless_foc
  8. Click "Select Folder" and import the desired projects as detailed in the MotorControl SDK InstaSPIN User’s Guide. The MotorControl SDK InstaSPIN User’s Guide can be found here: C:\ti\c2000\C2000Ware_MotorControl_SDK_3_01_00_00\solutions\common\sensorless_foc\docs\labs