Embedded Target for Texas Instruments C6000 DSPs | ![]() ![]() |
Running Models on Your C6711 DSK
Texas Instruments markets a complete set of tools for use with the C6711 DSK. These tools are primarily intended for rapid prototyping of control systems and hardware-in-the-loop applications. This section provides a brief example of how the TI development tools work with Real-Time Workshop, the Embedded Target for TI C6000 DSP, and the DSK block library.
Executing code generated from Real-Time Workshop on a particular target in real-time requires target-specific code. Target-specific code includes I/O device drivers and an interrupt service routine. Other components, such as a communication link with Simulink, are required if you need the ability to download parameters on-the-fly to your target hardware.
Since these components are specific to particular hardware targets (in this case, the C6711 DSK), you must ensure that the target-specific components are compatible with the target hardware. To allow you to build an executable, the Embedded Target for TI C6000 DSP provides a target makefile specific to C6000 hardware targets. This target makefile invokes the optimizing compiler provided as part of CCS.
Used in combination with the Embedded Target for TI C6000 DSP and Real-Time Workshop, TI products provide an integrated development environment that, once installed, needs no additional coding.
After you have installed the C6711 DSK development board and supporting TI products on your PC, launch MATLAB. At the MATLAB command prompt, type c6711dsklib
. This opens a Simulink block library, c6711dsklib, that includes a set of blocks for C6711 DSK I/O devices:
These devices are associated with your C6711 DSK board.
With your model open, select Simulation -> Simulation parameters from the menu bar to open the Simulation Parameters dialog. From this dialog, click the Real-Time Workshop tab. You must specify the appropriate versions of the system target file and template makefile. For the C6711 DSK, in the Real-Time Workshop pane of the dialog, specify:
With this configuration, you can generate and download a real-time executable to your TI C6711 DSP starter kit. Start the Real-Time Workshop build process by clicking Build on the Real-Time Workshop property pane. Real-Time Workshop automatically generates C code and inserts the I/O device drivers as specified by the ADC and DAC blocks in your block model.
These device drivers are inserted in the generated C code as inline S-functions. Inlined S-functions offer speed advantages and simplify the generated code. For more information about inlining S-functions, refer to Target Language Compiler Reference Guide. For a complete discussion of S-functions, refer to Writing S-Functions.
During the same build operation, the template makefile and block parameter dialog entries are combined to form the target makefile for your TI evaluation module. This makefile invokes the TI compiler to build an executable file. If you select the Build_and_execute
option, the executable file is automatically downloaded via the peripheral component interface (PCI) bus to the TI evaluation board. After downloading the executable file to the C6711 DSK, the build process runs the file on the digital signal processor.
Starting and Stopping DSP Applications on the C6711 DSK
When you create, build, and download a Simulink model to the C6701 EVM, you are not running a simulation of your DSP application. You are running the actual machine code corresponding to the block diagram you built in Simulink. To start running your DSP application on the evaluation module, you must open your Simulink model and rebuild the machine executable by clicking Build on the Real-Time Workshop pane. Each time you want to start the application on the C6711 DSK, you use Real-Time Workshop to rebuild the executable from the Simulink model and download the code to the board.
Your model runs until the model encounters one of the following actions:
halt
from the MATLAB command prompt
Clicking the Reset block stops the running application and restores the digital signal processor to its initial state.
![]() | Configuring Simulation Parameters for Your Model | C6711 DSK Tutorial 2-4--A More Complex Application | ![]() |