6
Getting
Started
PC application is the HyperTerminal, which is installed as part of a Windows and is therefore
available on any Windows-based PC.
The USB API stacks and all the demo example codes/applications that use the USB CDC API
can be downloaded from the MSP430F6638 product folder online, under the Tools & Software
section. For detailed information regarding the USB stacks, refer to the documents
MSP430
USB CDC API Examples.pdf
that is located within the zip file.
4.4.4
Using CCS/IAR to Compile/Download/Run the Firmware
If the default power jumper settings are used: make sure the USB cable is connected between
the Type B connector on the target board and a spare serial port on the PC.
First download the
“MSP430 USB CDC+HID API Stacks”
present in the MSP430F6638 online
product folder under the Tools & Software section to a known location on the PC.
The following steps help compile and debug the API firmware in both CCS and IAR development
platforms:
If using CCS:
a)
Copy and extract the contents of the USB CDC API firmware
USB CDCv1.19 for
CCSv4 .zip
, that is present in the
“MSP430 USB CDC+HID API Stacks”
zip file, to a
known location on the PC
<...Your Working Directory \ USB CDCv1.19 for CCSv4 >
b)
Start CCSv4 Core Edition (Start
Æ
Programs
Æ
Texas Instruments
Æ
Code
Composer Studio v4
Æ
Code Composer Studio v4 Core Edition)
c)
If opening the example projects for the first time:
Upon being asked to select a workspace directory in the “Workspace Launcher”
dialog, use the ‘Browse’ button to select the folder path,
<...Your Working
Directory \ USB CDCv1.19 for CCSv4 \ Workspace
>. CCSv4 creates a new
workspace in this folder path.
Once CCS has created the workspace, import the project USBCDC_Example1
that is present at the PC location
<...Your Working Directory \ USB CDCv1.19 for
CCSv4 >
into the workspace using PROJECT
Æ
Open Existing Project. An
“Open Existing Project” window appears; use the ‘Browse’ button next to the
Select Root Directory option to select the folder path
<...Your Working Directory \
USB CDCv1.19 for CCSv4 \ USBCDC_Example1>.
The project
“USBCDC_Example1” gets selected in the ‘Projects:’ space. Then click ‘Finish’.
Multiple projects can be imported into this workspace
Jump to Step (d)
If project is already linked to a workspace that you want to use:
Upon being asked to select a workspace directory in the “Workspace Launcher”
dialog, use the ‘Browse’ button to select the folder path,
<...Your Working
Directory \ USB CDCv1.19 for CCSv4 \ Workspace
> where the CCS workspace
was previously created for the project.