background image

 

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.  

Summary of Contents for MSP430F5630

Page 1: ...USB Firmware for the F6638 5 4 4 4 Using CCS IAR to Compile Download Run the Firmware 6 4 5 USB Device First Time Enumeration 8 4 6 Verifying USB Device Installation and Determining COM Port Assignme...

Page 2: ...Technical Documents tab 1 Device Datasheet 2 MSP430x5xx Family User s Guide 3 Application Report PMM UCS Port Mapping and Flash Libraries for the MSP430x5xx and MSP430x6xx Devices 4 MSP430F66xx Device...

Page 3: ...C Program Files Texas Instruments MSP430_USB_DRIVERS_v3 USB IAR C ProgramFiles IAR Systems Embedded Workbench x x 430 drivers TIUSBFET WinXP The MSP430 Hardware Tool User s Guide Appendix F gives deta...

Page 4: ...ed to connect the USB FET tool MSPFET430UIF USB Connector The USB type B connector on the target board is used to connect the USB cable Type A to B between PC and the target board 4 3 2 Jumper Setting...

Page 5: ...ection below outlines getting started with development on the F6638 using a USB code example 4 4 1 Attach the USB FET Tool to the PC Connect the USB FET tool to a spare USB port on the PC using the US...

Page 6: ...ion 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 ex...

Page 7: ...py and extract the contents of the USB API firmware USB CDCv1 19 for IAR 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 CDCv...

Page 8: ...lready installed within Windows but Windows needs to be guided to an inf file MSP430_CDC inf included with this kit Using this inf file Windows can finish loading the appropriate drivers NOTE The enum...

Page 9: ...click Next 4 In the Choose your search and installation options window select Search for best driver in these locations options and use the browse button to enter the file path that contains the USB...

Page 10: ...g Started Your Working Directory USB CDCv1 19 for CCSv4 or IAR USBCDC_Example1 Once the file path has been entered in the box click Next to proceed 5 Wait while the wizard searches the driver files as...

Page 11: ...the following screen will be displayed unless installing a Microsoft WHQL certified driver Click on Continue Anyway to continue with the installation If Windows XP is configured to ignore file signat...

Page 12: ...12 Getting Started 8 Windows should then display a message indicating that the installation was successful Click Finish to complete the installation for the first port of the device...

Page 13: ...device use Device Manager which is Windows means of viewing all peripheral devices available in the system In Windows the Device Manager can be opened by browsing through Start Control Panel System an...

Page 14: ...Application using HyperTerminal All the USBCDC examples that are provided with the USB API firmware interface with HyperTerminal application on the PC The USBCDC_Example1 demo application is used to c...

Page 15: ...rted 15 Set appropriate PORT SETTINGS as shown below and press OK Find below the ASCII set up configurations for this demo This window can be opened by navigating through File Properties Settings tab...

Page 16: ...ted Appropriate phrases entered in the HyperTerminal window help control the LED on the MSP430F6638 target board Mentioned below are the valid LED control phrases that can be typed in the HyperTermina...

Page 17: ...ide a number of useful code examples that can serve as a good starting point for USB development 5 Special Considerations for the MSP430F66xx Device The document MSP430x5xx Overview Comparison to MSP4...

Page 18: ...s required to power the oscillator It is also possible to power the oscillator directly from DVcc by disabling the backup system in software This is done by setting the BAKDIS and BAKSW bits in the BA...

Page 19: ...e the RTC registers to their previous state It is important to note that this reconfiguration needs to be performed before the LOCKIO bit is cleared More details on the state of each RTC register at r...

Page 20: ...h statements TI products are not authorized for use in safety critical applications such as life support where a failure of the TI product would reasonably be expected to cause severe personal injury...

Reviews: