xpg 127 Posted March 23, 2012 Author Share Posted March 23, 2012 Try going to your Eclipse preferences, and select "C/C++ -> Editor -> Content Assist -> Advanced" in the left-side pane. Ensure that the "Parsing-Based Proposals" are checked. I did that before but it does not work. Hmm.. Have you tried building the project? In order for Eclipse to correctly identify where the include files are, it needs the project to be build once. Quote Link to post Share on other sites
aadeesh 0 Posted March 24, 2012 Share Posted March 24, 2012 Try going to your Eclipse preferences, and select "C/C++ -> Editor -> Content Assist -> Advanced" in the left-side pane. Ensure that the "Parsing-Based Proposals" are checked. I did that before but it does not work. Hmm.. Have you tried building the project? In order for Eclipse to correctly identify where the include files are, it needs the project to be build once. Ya I build the project after including the header file. But today it works magically. Any reasons? Also now I cannot upload to Launchpad (MSP430G2231). MSPDebug gives error: Trying to open interface 1 on 009 rf2500: warning: can't detach kernel driver: Operation not permitted rf2500: can't claim interface: Operation not permitted rf2500: failed to open RF2500 device I then added udev rule and restart udev as instructed on hackaday post. And still MSPDebug gives the same error. My Project MSP430 Properties are: Target: msp430g2231 Driver: rf2500 Connection: USB Protocol: SBW dmesg shows Launchpad on ttyACM0. Quote Link to post Share on other sites
OppaErich 25 Posted March 24, 2012 Share Posted March 24, 2012 dmesg shows Launchpad on ttyACM0. You're probably missing the firmware for the TI USB chip. tifw.tgz Quote Link to post Share on other sites
xpg 127 Posted March 24, 2012 Author Share Posted March 24, 2012 Ya I build the project after including the header file. But today it works magically. Any reasons? Probably, but I can't think of on any right now. Please let me know if this is something that occurs again. I then added udev rule and restart udev as instructed on hackaday post. And still MSPDebug gives the same error. dmesg shows Launchpad on ttyACM0. The Launchpad registers two USB devices: A serial device (ttyACM*) and an HID device, which is used to communicate with the FET. I have the following in my dmesg when attaching the Launchpad: 1339.528536] usb 1-3.2: new full speed USB device number 8 using ehci_hcd [ 1349.696458] generic-usb 0003:0451:F432.0003: usb_submit_urb(ctrl) failed [ 1349.696473] generic-usb 0003:0451:F432.0003: timeout initializing reports [ 1349.696705] generic-usb 0003:0451:F432.0003: hiddev0,hidraw2: USB HID v1.01 Device [Texas Instruments Texas Instruments MSP-FET430UIF] on usb-0000:00:02.1-3.2/input1 [ 1350.285576] cdc_acm 1-3.2:1.0: This device cannot do calls on its own. It is not a modem. [ 1350.285582] cdc_acm 1-3.2:1.0: No union descriptor, testing for castrated device [ 1350.285627] cdc_acm 1-3.2:1.0: ttyACM0: USB ACM device [ 1350.288275] usbcore: registered new interface driver cdc_acm [ 1350.288280] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters If you don't have the USB HID line, then I suspect there is something wrong with either your kernel or udev setup. I know this is silly, but have you tried replugging the Launchpad? Cheers, Paul Quote Link to post Share on other sites
aadeesh 0 Posted March 25, 2012 Share Posted March 25, 2012 dmesg shows Launchpad on ttyACM0. You're probably missing the firmware for the TI USB chip. Do you mean that I have to burn the attached firmware to Launchpad using TI firmware update tool? Quote Link to post Share on other sites
aadeesh 0 Posted March 25, 2012 Share Posted March 25, 2012 If you don't have the USB HID line, then I suspect there is something wrong with either your kernel or udev setup. I know this is silly, but have you tried replugging the Launchpad? Cheers, Paul Yes. That's the first thing I do when something does not work. It came in me from Window$. Here is my dmesg output after plugging Launchpad. [ 223.840024] usb 2-1: new full speed USB device using uhci_hcd and address 4 [ 224.042191] usb 2-1: configuration #1 chosen from 1 choice [ 224.052089] cdc_acm 2-1:1.0: This device cannot do calls on its own. It is not a modem. [ 224.052095] cdc_acm 2-1:1.0: No union descriptor, testing for castrated device [ 224.052120] cdc_acm 2-1:1.0: ttyACM0: USB ACM device [ 234.101528] /build/buildd/linux-2.6.32/drivers/hid/usbhid/hid-core.c: usb_submit_urb(ctrl) failed [ 234.101543] generic-usb 0003:0451:F432.0004: timeout initializing reports [ 234.101725] generic-usb 0003:0451:F432.0004: hiddev96,hidraw0: USB HID v1.01 Device [Texas Instruments Texas Instruments MSP-FET430UIF] on usb-0000:00:1d.0-1/input1[/b] Is the failing of usb_sumit_urb(ctrl) normal? I google-d it and found that it is a bug and should upgrade to the latest release. (I'm using Ubuntu 10.04 and don't want to upgrade until 12.04). Quote Link to post Share on other sites
gordon 229 Posted March 25, 2012 Share Posted March 25, 2012 dmesg shows Launchpad on ttyACM0. You're probably missing the firmware for the TI USB chip. Do you mean that I have to burn the attached firmware to Launchpad using TI firmware update tool? No, that means install the linux-firmware package to get /lib/firmware/ti_{3410,5052}.fw. Quote Link to post Share on other sites
OppaErich 25 Posted March 25, 2012 Share Posted March 25, 2012 linux-firmware was installed on my system but I had to manually install them. But I've attached them. Download and sudo tar -xvzf tifw.tgz that should give #oppa@oppa-mag:~$ ls /lib/firmware b43-open hp ti_3410.fw ti_5052.fw Quote Link to post Share on other sites
aadeesh 0 Posted March 28, 2012 Share Posted March 28, 2012 linux-firmware was installed on my system but I had to manually install them. But I've attached them. Download and sudo tar -xvzf tifw.tgz that should give #oppa@oppa-mag:~$ ls /lib/firmware b43-open hp ti_3410.fw ti_5052.fw No luck. I tried each and every workaround except upgrading my OS. Quote Link to post Share on other sites
Sir Ferdek 8 Posted March 28, 2012 Share Posted March 28, 2012 How about running mspdebug with root privileges? :roll: I'm on Linux Mint Debian Edition and had to add udev rule TWICE, dunno why but first time it just didn't work, probably some kind of typo. Quote Link to post Share on other sites
xpg 127 Posted March 28, 2012 Author Share Posted March 28, 2012 No luck. I tried each and every workaround except upgrading my OS. The udev rule you added gives a group name, which will get write permissions to the device. Have you verified that your user is actually in that group? Cheers, Paul Quote Link to post Share on other sites
aadeesh 0 Posted March 28, 2012 Share Posted March 28, 2012 The udev rule you added gives a group name, which will get write permissions to the device. Have you verified that your user is actually in that group? Cheers, Paul udev rule also seems ok to me. Here are the groups I belong to: ab-work@ubuntu:~$ groups ab-work ab-work : ab-work adm dialout cdrom plugdev lpadmin admin sambashare And my /etc/udev/rules.d/46-TI_launchpad.rules udev rule file contents ATTRS{idVendor}=="0451", ATTRS{idProduct}=="f432", MODE="0660", GROUP="plugdev" (source: http://hackaday.com/2010/08/11/how-to-l ... ith-linux/) Am I not in plugdev group? How about running mspdebug with root privileges? :roll: I'm on Linux Mint Debian Edition and had to add udev rule TWICE, dunno why but first time it just didn't work, probably some kind of typo. It works with root privileges. Quote Link to post Share on other sites
Rickta59 589 Posted March 28, 2012 Share Posted March 28, 2012 ATTRS{idVendor}=="0451", ATTRS{idProduct}=="f432", MODE="0660", GROUP="plugdev" Do you have actually have " instead of " in your entry? If so change all the &qout; to " and save then unplug and replug the launchpad usb cable. -rick aadeesh 1 Quote Link to post Share on other sites
Sir Ferdek 8 Posted March 28, 2012 Share Posted March 28, 2012 ROFL! I've just remembered -> " was the name of the problem on my PC. :wave: Quote Link to post Share on other sites
aadeesh 0 Posted March 29, 2012 Share Posted March 29, 2012 ATTRS{idVendor}=="0451", ATTRS{idProduct}=="f432", MODE="0660", GROUP="plugdev" Do you have actually have " instead of " in your entry? If so change all the &qout; to " and save then unplug and replug the launchpad usb cable. -rick Well that's embarrassing :oops: . I tried to post the udev rules with my first post itself, but did not qualify the new user rules (It seemed as URL to bulletin board software). Thanks Rickta59. And yes it is now working. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.