1.3 DesignDRIVE Development Kit (IDDK) Getting Started with the Project

Hello and welcome to the Getting Started Walk Through of the C2000 design drive kit. This video assumes that you have a basic understanding of this kit. If you're not familiar with it, I recommend that you watch some of the other design drive IDDK kit overview videos before moving ahead. Doing this will help you understand what this kit does, and will make your first experience with this kit go much smoother.
Before going too far, I do want to mention that this is a high voltage kit and should only be used by qualified professionals. Let's get started.
If you ordered the IDDK bundle as I have, you'll received two boxes. The big box will contain a design drive inverter board, a control card based on the TMS320F28379D, a banana cable, which we won't use, a USB cable to connect the control cord to your computer, and a few documents.
In the second box, you'll find a permanent magnet synchronous motor and various cabling associated with it. This motor was used in the development of this kit software, and the controller gains for this software tuned around this particular motor.
This board is capable of being powered and used in many different ways. Today I will be configuring and using the board in one of the more safe configurations, one that we use most frequently in our lab.
I will power the low voltage portions of the board, including the C2000 MCU, using two external 15 volt DC power supplies. These are not included with the kit but can be bought from many different vendors. I will then power the high voltage portions of the board, including the motor, with a current limited high voltage DC/DC power supply that we have in our lab. If you'd like to use the board in other configurations, the IDDK kits documentation provides additional details on this.
Let's start setting up the hardware using both the IDDK user's guide and IDDK hardware guide for reference. First make sure that J1 and J2 do not have jumpers, and that J3 through J8 do have jumpers. This configures the board to use the external 15 volt DC power supplies.
Once configured, plug these supplies into M3JP1 M9JP1. If you see any LEDs come on once you plug these supplies in, flip M3 switch 1 and M9SW1 such that the LEDs turn off to reduce risk as we continue to plug things into the board.
Next plug in the control card from the kit into connector H1. Finally, plug the USB mini cable into the control cards AJ1 and then to your computer.
For this demo, we'll only run the first software build in the IDDK project. The purpose of this build is to ensure that the software and various parts of the board are working correctly. The high voltage supply, the motor, and its encoder will not be necessary until later in build level 1 once we feel more confident that things are working as expected. As a result, we won't connect them in this video.
Now that we've set up the hardware, let's get the software up and running. To do this we need to make sure that we have Code Composer Studio Integrated Development Environment version 6 or greater installed. This IDE will be used to develop with the C2000 MCU. We also need to have the ControlSUITE installed, the primary place to find C2000 software.
Open Code Composer Studio from the desktop and create a new workspace. I'll label mine designdrive_iddk. Next import the IDDK project into the workspace by clicking project, import CCS Project, and then selecting the correct project.
The next thing we need is a target configuration. This project includes a target configuration as part of the project so we do not need to do anything. However, for transparency, we should be using an XDS100 version 2 emulator and a F28379D MCU target.
Now let's take a look at some of the source files in the project. Click on the project's settings.h file. The compiler constant build level defines which build level we'll be using. Here we want to experiment at build level 1. While not necessary for this build, the constant current sense defines which current sensing strategy we'll use to close the torque control loop once we get to build level 3. I have chosen to use the [INAUDIBLE] current sensors.
Similarly, several other high level settings may be edited here. For more details about this, check out the IDDK user's guide and the project guide, censoredfocfpmsm_iddk.
When you open up the main file for this project, you'll find that it is separated into two major parts, the main function and the primary ISR. Scroll down to the incremental build 1 portion of the ISR and notice that the system has been coded as shown in the level 1 block diagram of the project guide. Here you will also notice that the output of the RAM generator and the three space vector generator outputs are connected to the data logger for viewing and graphs when the device is running.
Now that we're done inspecting the project, we can try to run it. First let's turn on the board by flipping M3SW1 and M9SW1 into the on position.
Returning to CCS, let's right click on the project name and select rebuild project. This will both compile and build the output file. Next click on the debug button. CCS will now use the settings from our target configuration to attempt to connect to the MCU, load the output file, and prepare us for debugging. This project only uses CPU1 so we only need to enable loading to it when and if the choice comes up.
Let's add some variables into the watch window so that we can easily control the system. Right click on the expressions window, click import, and then browse to the appropriate expressions file. Click on the continuous refresh button.
Now let's add four graph windows into the workspace so that we can monitor the key signals we need to validate in this build. We'll import two dual time graphs, graph1.graphprops and graph2.graphprops. Let's configure them to continuously refresh as well.
Next, we should enable real time mode so that we're able to edit variables without affecting the processor. Finally, click the green run button so that the code begins to run on the C2000 MCU.
At this point, we need to change the variable enable flag in the expressions window to 1. Notice that the variable ISR ticker begins to increment and that the graph windows begin to show various waveforms that we would expect to see.
In between major incremental builds we should shut down the system. To do this, click the suspend button to stop the processor, then click the terminate button to end the debug session.
You've just completed level 1A in the validation of the system as described in the project guide. Continue to go through this document and slowly build up the system and your confidence using the provided incremental builds.
I hope that you've enjoyed learning a little bit about how to get started with the C2000 Design Drive IDDK kit. For additional resources and training, visit ti.com/designdrive. Thank you for watching.

Details

Date:
March 2, 2016

For first time user’s of the DesignDRIVE Development Kits: TMDXIDDK377D & TMDXIDDK379D. We will take you through the setup, configuration and use of the DesignDRIVE Development Kit & the associated controlSUITE industrial servo drive example project.