Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Code Composer Studio (CCS) is the integrated development environment for TI's
DSPs, microcontrollers and application processors. It includes compilers for both of MSP430
and ARM Cortex-M3 microcontroller device families, source code editor, project build
environment, debugger, profiler, simulators and many other features.
This lab describes how to make a project and set the target configurations for MSP430 and ARM
Cortex-M3 experimenter boards.
The MSP-EXP430F5438 Experimenter Board is an evaluation board meant to assess the
capabilities of the MSP430F5438 family of microcontrollers. Built to complement the MSP430's
high degree of mixed-signal integration, the Experimenter Board showcases external peripherals
such a dot-matrix LCD, two-axis accelerometer, microphone, audio output, a serial USB
connection and RF add-ons. It features a 100-pin socket which supports the MSP430F5438A and
other devices with similar pinout.
The EVALBOT is a robotic evaluation kit with a Stellaris ARM CORTEX M3-based
LM3S9B92 microcontroller. It features integrated 10/100 Ethernet MAC/PHY, USB Host and
Device connectors, CAN, MicroSD card connector and OLED display. The board also includes
motor drivers, opto-sensors to detect wheel rotation, power supply and wireless communication
expansion connectors.
1 Lab Objectives
2 Pre-Lab
Read EVALBOT and MSP-EXP430F5438 Quick users guide manuals and learn how to
assemble and setup the boards for debugging.
2.1
Tools Requirements
Software: Code Composer Studio v5
Hardware:
A MSP430 Flash Emulation Tool (MSP-FET430UIF) and MSP-EXP430F5438
Experimenter Board
The Stellaris Robotic Evaluation Board (EVALBOT)
3 Lab Procedure
3.1 Compiler Installation - Perform if Compiler not Installed
Code Composer Studio v5 can be downloaded directly from TI website:
http://processors.wiki.ti.com/index.php/Download_CCS
and then follow the instructions to install and activate it.
http://processors.wiki.ti.com/index.php/GSG:CCSv5_Running_for_the_first_time
Note: CCS can be used in software simulator mode without any external hardware and it is
very useful for practicing and debugging your codes
Open CCSv5
Click on File --> New --> CCS Project
In the Project name field choose a name and a location for the project
In the Device section select Family as MSP430
Select MSP430x5xx Family and MSP430F5438A as Variant
An empty C file, <main.c>, is created. You can create more source or header files and add
them to the project by selecting Project Explorer on the left side of main view and then rightclick and select New.
In order to add existing file to the project go to Project --> Add Files
Select <LAB0_MSP430.c> which is available on the course website. You can either copy
the file into project folder or link to it in the import method dialog box.
Since you have two main in your project remove <main.c> using Project Explorer.
Now you will compile and debug the project with F11 or click on green bug icon. Make
sure the FET debugger is connected to the board and PC and the board is on.
If the hardware setup is correct and no error exists in the code, debugger will start and the
screen changes to the debug perspective. Press F8 to resume the code execution and LED blinks.
In the source code view, the first line to be executed is highlighted. Here, it is the first line
after main. To control the debugger, use debugging toolbar on the top-left side of the screen.
Debugging functionalities are Run, Halt, Terminate, Step into/over/return. Become familiar with
their functionalities.
You can watch Registers and Expressions in the watch list. It is also possible to see the
values by placing the mouse curser over variables in the source code view.
Either full or custom version should already been installed on your system.
Note : Debugger is embedded in the EVALBOT boards and external JTAG is not required.
Connect the board directly to the PC using ICDI connector and a mini-USB cable.
Before adding the code and compiling the project, the location of included library needs to
be specified.
Open Project-->Properties
Select Build-->TMS470 Compiler-->Include Options
Add the StellarisWare directory to the #include search path with the icon shown
o How can you place breakpoints? What are they used for?
o In the MSP430 example code, how many lines accept breakpoint? Why it is not
possible to add breakpoint to others?
o In the watch list, right-click in the value of counter and select number format as
Hex. What is the difference between format of this variable in MSP430 project and
Cortex M3 project? Why?
5 Lab Report
Include the following in your report:
Answers to Questions
6 Documents
There are many useful documents you will need as reference for this lab, these include:
o