Has anyone found a convenient way to solve this issue? If not, I hope someone from TI will get involved to look into this driver problem. It's getting annoying enough that I'll probably spend the extra money on a different company's microcontroller solution.
Problem: MSP430 Launchpad driver will not create a valid serial port once the system is rebooted, sleeps or goes into hibernate mode after a fresh install of Code Composer Studio. Additionally, if another program starts using the serial port while debugging, the error will usually occur. Furthermore, it almost always stops programming before being used normally a dozen times. All situations result in Code Composer Studio displaying the error "MSP430: Error initializing emulator: Could not find MSP-FET430UIF on specified COM port" when attempting to program the device. The COM port can't be opened by any serial-port program (e.g. HyperTerminal) even though the device is present and "working properly" in Device Manager and the MSP430 is running its last program correctly.
Workaround (15-20 minutes): Uninstall the three "Windows Driver Package - Texas Instruments..." and "Code Composer Studio v5" programs, restart computer with the Launchpad disconnected, re-install Code Composer Studio and plug in the Launchpad. Code Composer Studio will now be able to program and debug the MSP430 normally until the problem happens again.
Versions and Info
I bought 3 more brand-new Launchpads from DigiKey this week and verified that the firmware is up-to-date. I verified that the driver is being started when the Launchpad is connected to the computer.
Code Composer Studio | Version: 5.1.0.09000 |
Operating System |
Windows 7 Ultimate 64-bit, fresh install, fully updated |
Microcontroller | MSP430G2231, MSP430G2211 |
MSP430 Application UART (COM6) Driver | Date: 12/11/2007, Version: 1.3.0.0 |
Driver Details (usbser.sys) | File version: 6.1.7601.17514 (win7sp1_rtm.101119-1850) |
Processor, Motherboard | Intel Core i7 2600K, DZ68DB |
Attempted and Failed Solutions
Every case below was tested without CCS running, and with it re-started in a fresh workspace with the Blinky test program after the problem occurred.
- Rebooting, multiple times
- Different Launchpad--2 brand new from the box and 1 old
- Different MSP430 (I have 10, tried 6 of them, three on each Launchpad)
- Disconnect, uninstall device from Windows, reboot, connect
- Disconnect, uninstall device & delete drivers, reboot, connect, have Windows install drivers from under C:/ti/ccsv5/ccs_base/emulation/drivers/msp430
- Verified the same set and versions of services is running every time
- Run CCS with Administrator privileges
- Run CCS in XP Service Pack 3 compatibility mode
- Connect the Launchpad to different USB ports on the computer (tried 6 different ports on 4 different on-board controllers)
- Changing the COM port assigned to the device in Windows, with and without restarting
- Adjusting the serial port device driver baud rate and flow-control settings
Notes
The drivers in "C:/ti/ccsv5/ccs_base/emulation/drivers/msp430/USB_FET_Win7_64" are never touched by Windows; it doesn't recognize them as drivers for the MSP430.
The "C:/ti/ccsv5/ccs_base/emulation/drivers/msp430/DPInst/DPInst64.exe" program doesn't find any drivers designed for my machine, and DPInst.exe is 32-bit and can't be run.
Programs on the Launchpad run fine (it's getting power) even though it can't communicate.
If a connection was previously established through HyperTerminal and it stops being programmable, occasionally HyperTerminal can still communicate with the device.
Similar Cases
http://rowley.zendesk.com/entries/258132-msp430-dll-write-operation-failed
http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/p/34821/437897.aspx
Misc
I really don't care about debugging the device, but I can't find a way to simply program it without launching the debugger in CCS.