Environment
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;
Issue
When debugging the Hello World project (Blink your first LED), it shows below error:
Error initializing emulator: No USB FET was found
Resolution
1. First, I noticed that `ID_MM_DEVICE_IGNORE` didn't prevent the ModemManager from grabbing the ez430 device.
/etc/udev/rules.d/70-mm-no-ti-emulators.rules
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:
http://processors.wiki.ti.com/index.php/Linux_Host_Support_CCSv6#Not_Supported_2
So I followed this post to configure mspdebug:
https://e2e.ti.com/support/microcontrollers/msp430/f/166/t/376857
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
workspace_ti/Blink_LED/Debug/Blink_LED.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"
Voila!