2.2.2 Creating a Project From Scratch
Using KickStart
This section presents step-by-step instructions to create an assembler or C project from scratch, and to
download and run the application on the MSP430 (see also Section 2.2.1 , Project Settings). The MSP430
IAR Embedded Workbench IDE User's Guide presents a more comprehensive overview of the process.
1. Start the Workbench (Start → Programs → IAR Systems → IAR Embedded Workbench KickStart for
MSP430 V3 → IAR Embedded Workbench).
2. Create a new text file (File → New → File).
3. Enter the program text into the file.
Note: Use .h files to simplify your code development.
KickStart is supplied with files for each device that define the device registers and the bit
names, and these files can greatly simplify the task of developing your program. The files
are located in <Installation Root>\Embedded Workbench x.x\430\inc. Include the .h file
corresponding to your target device in your text file (#include "msp430xyyy.h").
Additionally, files io430xxxx.h are provided and are optimized to be included by C source
files.
4. Save the program text file (File → Save).
It is recommended that assembler text files be saved with a file-type suffix of ".s43" and that C text files
be saved with a file-type suffix of ".c".
5. Create a new workspace (File → New → Workspace).
6. Create a new project (Project → Create New Project). Select Tool chain: MSP430, Project Templates:
Empty project and click OK. Specify a project name and click Save.
7. Add the program text file to the project (Project → Add Files). Select the program text file and click
Open. Alternatively, double-click on the file to add it to the project.
Note: How to add assembler source files to your project
The default file type presented in the Add Files window is "C/C++ Files". To view
assembler files (.s43), select "Assembler Files" in the "Files of type" drop-down menu.
8. Save the workspace (File → Save Workspace). Specify a workspace name and click Save.
9. Configure the project options (Project → Options). For each of the subcategories (General Options,
C/C++ Compiler, Assembler, Linker, Debugger), accept the default Factory Settings with the following
exceptions:
• Specify the target device (General Options → Target → Device).
• Enable an assembler project or a C/assembler project (General Options → Target →
Assembler-only project).
• Enable the generation of an executable output file (General Options → Output → Output file →
Executable).
• To debug on the FET (i.e., the MSP430), click Debugger → Setup → Driver → FET Debugger.
• Specify the active port used to interface to the FET (FET Debugger → Setup → Connection).
10. Build the project (Project → Rebuild All).
11. Debug the application using C-SPY (Project → Debug). This starts C-SPY, and C-SPY takes control of
the target, erases the target memory, programs the target memory with the application, and resets the
target.
See FAQ Debugging #1 if C-SPY is unable to communicate with the device.
12. Click Debug → Go to start the application.
13. Click Debug → Stop Debugging to stop the application, to exit C-SPY, and to return to the Workbench.
14. Click File → Exit to exit the Workbench.
Development Flow18 SLAU138F – June 2004 – Revised March 2007
Submit Documentation Feedback