Ubuntu CCSv6 debug MSP430G2: "Error initializing emulator: No USB FET was found"


1. MSP-EXP430G2 LaunchPad with MSP430G2452 chip;
2. Ubuntu 14.04 64bit;
3. CCSv6 installed as TI's user guide; (http://www.ti.com/tool/msp430-gcc-opensource)
4. Drivers (udev rules) installed using `ccsv6/install_scripts/install_drivers.sh` under installation directory;


When debugging the Hello World project (Blink your first LED), it shows below error:

Error initializing emulator: No USB FET was found


1. First, I noticed that `ID_MM_DEVICE_IGNORE` didn't prevent the ModemManager from grabbing the ez430 device.

ATTRS{idVendor}=="0451", ATTRS{idProduct}=="F432", ENV{ID_MM_DEVICE_IGNORE}="1"

Instead of figuring out how to make above rules work, I remove the ModemManager straightly. (ModemManager is needed when using mobile boardband to access Internet.)

$ sudo apt-get remove modemmanager

2. Then I found that CCSv6 doesn't support MSP430G2's debug probe. Refer:

So I followed this post to configure mspdebug:

a. Install mspdebug

$ sudo apt-get install mspdebug

b. Let CCS build the project, and you will find `.out` file under the debug directory of project space.

$ ls workspace_ti/Blink_LED/Debug/*.out 

c. Launch `mspdebug` to burn and start:

~/workspace_ti/Blink_LED/Debug$ sudo mspdebug -n --fet-force-id MSP430G2452 rf2500 "prog Blink_LED.out"