Jump to content

AbhayaKumar

Members
  • Content Count

    6
  • Joined

  • Last visited

About AbhayaKumar

  • Rank
    Noob Class

Profile Information

  • Gender
    Male
  • Location
    Bangalore
  • Interests
    MSP430 Linux
  1. Peter, Thanks for the suggestions. With your recommended STEP-3, I am able to invoke energia now. I'll try programming my MSP-EXP430G2 Launchpad sometime today and will update you about the sam as well. Thanks for your support. Abhaya
  2. I would like to program MSP-EXP430G2 Launchpad from my Linux machine using energia. After installing energia-1.6.10E18, I am getting error message stating "cannot verify signature block file META-INF/BCKEY". Below are details for my setup:- OS: ubuntu 16.04 :::::::::::::: /etc/lsb-release :::::::::::::: DISTRIB_ID=Ubuntu DISTRIB_RELEASE=16.04 DISTRIB_CODENAME=xenial DISTRIB_DESCRIPTION="Ubuntu 16.04.1 LTS" :::::::::::::: /etc/os-release :::::::::::::: NAME="Ubuntu" VERSION="16.04.1 LTS (Xenial Xerus)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 16.04.1 LTS" VERSION_ID="16.04" HOME_URL="http://www.ubuntu.com/" SUPPORT_URL="http://help.ubuntu.com/" BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/" UBUNTU_CODENAME=xenial > uname -a Linux HomePC 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux My installation steps were: 1. Downloaded udev rule from http://energia.nu/files/71-ti-permissions.rules 2. sudo mv /71-ti-permissions.rules /etc/udev/rules.d/ 3. Downloaded energia from http://energia.nu/downloads/downloadv4.php?file=energia-1.6.10E18-linux64.tar.xz 4. tar -xzf energia-1.6.10E18-linux64.tar.xz I tried executing energia using following command:- 1. energia-1.6.10E18/energia 2. sudo energia-1.6.10E18/energia In both energia execution, I got same error message in a pop-up window stating "cannot verify signature block file META-INF/BCKEY". Kindly guide me on how can I fix this issue.
  3. Thanks for all the support. I could successfully see the messages printed by my code on Serial Monitor window of eneergia running on my ubuntu 12.04 64-Bit machine. So far it seems to be working fine in user as well as sudo mode. Since I am a beginner, I may have taken some redundant steps and for sake of subsequent readers, it would be good if somebody can fine tune the same. Below are the list of steps taken by me:- 1. Since I have a 64-Bit machine, I choose 64bit version of shared library for /opt/energia-0101E0012/lib/librxtxSerial.so This was done as suggested in http://www.itopen.it/2013/03/01/msp430-energia-on-linux Now sure why this should be required for a well written code. 2. Changed the udev rule as suggested in http://www.itopen.it/2013/03/01/msp430-energia-on-linux/ (basically Mode and group) more /etc/udev/rules.d/46-TI_launchpad.rules #MSP 430 Launchpad #Bus 002 Device 005: ID 0451:f432 Texas Instruments, Inc. eZ430 Development Tool SUBSYSTEMS=="usb",ATTRS{idVendor}=="0451",ATTRS{idProduct}=="f430",MODE="666",GROUP="dialout" SUBSYSTEMS=="usb",ATTRS{idVendor}=="0451",ATTRS{idProduct}=="f432",MODE="666",GROUP="dialout" Now sure why GROUP for /dev/ttyACM0 is stuck to dialout. 3. Changed cdcacm module as suggested by bi0tech in his last suggestion. The kernel source for 3.2.0.60-generic has changed and patch should be updated, as I had to manually search patterns and then edit the code. Thus, not sure whether I did the edits correctly.
  4. Thanks for your suggestions. I have MSP430G2553 installed in my MSP-ESP430G2 Launchpad (Rev 1.5) board. As per http://energia.nu/Gu...0LaunchPad.html I changed the jumper settings from || || || || || (SW UART) to == == || || || (HW UART). This also confirms with description in Quick Start Guide shipped with the Launchpad. Below is what I observed. On same machine, when I booted into Windows 7 (Dual boot), with SW UART settings, I do not get any output. But in HW UART setting, I do get stuff printed in Serial Monitor. Hence, looks like if I am not able to fix things in my Linux (ubuntu 12.04), I'll be forced to work in windows 7 :-((. Coming to Linux OS, below is what I observed:- I observed a clear difference in dmesg output with SW/HW UART settings HW UART $ dmesg |tail [ 813.124012] usb 2-9: new full-speed USB device number 9 using ohci_hcd [ 813.369112] cdc_acm 2-9:1.0: This device cannot do calls on its own. It is not a modem. [ 813.369117] cdc_acm 2-9:1.0: No union descriptor, testing for castrated device [ 813.369140] cdc_acm 2-9:1.0: ttyACM0: USB ACM device HW UART - Launchpad disconnect $ dmesg |tail [ 833.388089] generic-usb: probe of 0003:0451:F432.0005 failed with error -110 [ 876.793044] usb 2-9: USB disconnect, device number 9 SW UART $ dmesg |tail [ 962.372013] usb 2-9: new full-speed USB device number 10 using ohci_hcd [ 962.617126] cdc_acm 2-9:1.0: This device cannot do calls on its own. It is not a modem. [ 962.617132] cdc_acm 2-9:1.0: No union descriptor, testing for castrated device [ 962.617154] cdc_acm 2-9:1.0: ttyACM0: USB ACM device [ 972.676088] generic-usb 0003:0451:F432.0006: usb_submit_urb(ctrl) failed [ 972.676097] generic-usb 0003:0451:F432.0006: timeout initializing reports [ 972.676259] generic-usb 0003:0451:F432.0006: hiddev0,hidraw3: USB HID v1.01 Device [Texas Instruments Texas Instruments MSP-FET430UIF] on usb-0000:00:02.0-9/input1 SW UART - Launchpad disconnect $ dmesg |tail [ 1047.172647] usb 2-9: USB disconnect, device number 10 With HW UART setting, when I invoke /opt/energia-0101E0012/energia (in sudo mode as well as in usermode), 1. energia window takes lot of time. 2. The Tools menu also becomes very slow. 3. Tools->Serial Monitor-> /dev/ttyACM0 is not listed (even though ls -al /dev/ttyACM0 output is same as descriped in my 1st post). 4. I am able to load my program into Launchpad (as LEDs behave the way I expect based on my program). 5. When I start Serial Monitor (in usermode as well as sudo mode), the energia window throws following message (even though ls -al /dev/ttyACM0 output is same as descriped in my 1st post after energia throws this message). processing.app.SerialNotFoundException: Serial port '/dev/ttyACM0' not found. Did you select the right one from the Tools > Serial Port menu? at processing.app.Serial.<init>(Serial.java:165) at processing.app.Serial.<init>(Serial.java:92) at processing.app.SerialMonitor.openSerialPort(SerialMonitor.java:209) at processing.app.Editor.handleSerial(Editor.java:2630) at processing.app.EditorToolbar.mousePressed(EditorToolbar.java:367) at java.awt.Component.processMouseEvent(Component.java:6502) at javax.swing.JComponent.processMouseEvent(JComponent.java:3311) at java.awt.Component.processEvent(Component.java:6270) at java.awt.Container.processEvent(Container.java:2229) at java.awt.Component.dispatchEventImpl(Component.java:4861) at java.awt.Container.dispatchEventImpl(Container.java:2287) at java.awt.Component.dispatchEvent(Component.java:4687) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4489) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422) at java.awt.Container.dispatchEventImpl(Container.java:2273) at java.awt.Window.dispatchEventImpl(Window.java:2719) at java.awt.Component.dispatchEvent(Component.java:4687) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735) at java.awt.EventQueue.access$200(EventQueue.java:103) at java.awt.EventQueue$3.run(EventQueue.java:694) at java.awt.EventQueue$3.run(EventQueue.java:692) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87) at java.awt.EventQueue$4.run(EventQueue.java:708) at java.awt.EventQueue$4.run(EventQueue.java:706) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:705) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
  5. Thanks for your suggestions. After adding myself to dialout group, in usermode, I can select Serial Port-> /dev/ttyACM0. (Ofcourse, I still don't understand why udev rule is not working). So-far I have tried the following:- 1. After reboot, /dev/ttyACM0 is part of dialout group 2. After sudo service udev restart, /dev/ttyACM0 is part of dialout group 3. After disconnect/connect MSP-EXP430 Launchpad, /dev/ttyACM0 is part of dialout group Now, my biggest concern is not being able to interact with program (i.e. ley's say print status of resisters and take input parameters). My program contain:- 1. In setup function Serial.begin(9600); 2. In loop function Serial.print("Hi Abhaya"); Serial.println(300); With above, is my expectation to see "Hi Abhaya300" (running in infinite loop) throughout Serial Monitor window correct? After uploading the code, when I open Serial Monitor window, I see a blank page and bottom drop down lists have following values:- No line ending 9600 baud Manually when I change drop down list to "4800 baud", Serial Monitor window is still blank (no output of print statement). Manually when I change drop down list to "9600 baud", Serial Monitor window is still blank (no output of print statement). Is there any other workaround to communicate with program running on launchpad (just 2 LEDs and one reset switch is not enough)?
  6. Hello, I need some guidance on Programming MSP-EXP430G2 Launchpad using Energia on Linux OS. This is the first time I am using energia. The main objective for using energia is to be able to program/debug MSP-EXP430G2 Launchpad in Linux environment (as CCS 6.0 does not support MSP-EXP430G2 Launchpad on linux) Guidance needed for: Kindly guide me on how can I get things working in usermode. Specially, I would like to be able to 1. pass any argument while my code is running in the device (equivalent to scanf/getc/getchar in C programming). 2. Print information while my code is running in the device (equivalent to printf/putc/putchar in C programming). System Information: Launchpad: MS-EXP430G2 Rev 1.5 $ uname -a Linux Home 3.2.0-60-generic #91-Ubuntu SMP Wed Feb 19 03:54:44 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux $ lsusb Bus 002 Device 008: ID 0451:f432 Texas Instruments, Inc. eZ430 Development Tool $ dmesg [ 2652.200025] usb 2-9: new full-speed USB device number 9 using ohci_hcd [ 2652.445202] cdc_acm 2-9:1.0: This device cannot do calls on its own. It is not a modem. [ 2652.445207] cdc_acm 2-9:1.0: No union descriptor, testing for castrated device [ 2652.445231] cdc_acm 2-9:1.0: ttyACM0: USB ACM device [ 2662.504177] generic-usb 0003:0451:F432.0005: usb_submit_urb(ctrl) failed [ 2662.504188] generic-usb 0003:0451:F432.0005: timeout initializing reports [ 2662.504371] generic-usb 0003:0451:F432.0005: hiddev0,hidraw3: USB HID v1.01 Device [Texas Instruments Texas Instruments MSP-FET430UIF] on usb-0000:00:02.0-9/input1 $ more /etc/udev/rules.d/46-TI_launchpad.rules #MSP 430 Launchpad #Bus 002 Device 005: ID 0451:f432 Texas Instruments, Inc. eZ430 Development Tool SUBSYSTEMS=="usb", ATTRS{idVendor}=="0451", ATTRS{idProduct}=="f430", MODE="0660", GROUP="plugdev" SUBSYSTEMS=="usb", ATTRS{idVendor}=="0451", ATTRS{idProduct}=="f432", MODE="0660", GROUP="plugdev" $ ls -al /dev/ttyACM0 crw-rw---- 1 root dialout 166, 0 May 3 10:14 /dev/ttyACM0 $ sudo service udev restart udev stop/waiting udev start/running, process 7856 $ ls -al /dev/ttyACM0 crw-rw---- 1 root dialout 166, 0 May 3 10:14 /dev/ttyACM0 $ groups adm tty cdrom sudo dip plugdev lpadmin sambashare home $ /opt/energia-0101E0012/energia IDE comes-up in usermode as well as sudo mode Current Status: In sudo mode Tools->Serial Port is active ans shows /dev/ttyACM0 selected Blink example can be loaded succesfully with following log:- Binary sketch size: 2,623 bytes (of a 16,384 byte maximum) Trying to open interface 1 on 009 rf2500: warning: can't detach kernel driver: No data available Device: MSP430G2553/G2403 Erasing... Programming... Done, 2624 bytes total In Usermode Tools->Serial Port is Greyed out Blink example can be loaded succesfully with following log:- Binary sketch size: 2,623 bytes (of a 16,384 byte maximum) Trying to open interface 1 on 009 Device: MSP430G2553/G2403 Erasing... Programming... Done, 2624 bytes total Current Issues: In sudo mode Serial Monitor window shows up without any error Following code does not show any output in Serial Monitor window or in status window of energia. void setup () { // initialize serial communications at 9600 bps: Serial.begin(9600); // Initialize the digital pin as output. // Pin 2:14 leds have connected: pinMode (14, OUTPUT); pinMode (2, OUTPUT); } void loop () { digitalWrite (14, HIGH); // Led on delay (600); // Wait 1 sec. digitalWrite (14, LOW); // LED off delay (1000); // Wait 1 second. digitalWrite (2, HIGH); // Led on delay (300); // Wait 1 second digitalWrite (2, LOW); // LED off delay (1000); // Wait 1 sec. Serial.print("Hi Abhaya"); Serial.println(300); } In Usermode Gives following error when Serial Monitor is invoked processing.app.SerialNotFoundException: Serial port '/dev/ttyACM0' not found. Did you select the right one from the Tools > Serial Port menu? at processing.app.Serial.<init>(Serial.java:165) at processing.app.Serial.<init>(Serial.java:92) at processing.app.SerialMonitor.openSerialPort(SerialMonitor.java:209) at processing.app.Editor.handleSerial(Editor.java:2630) at processing.app.Editor$20.actionPerformed(Editor.java:777) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) at javax.swing.AbstractButton.doClick(AbstractButton.java:376) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877) at java.awt.Component.processMouseEvent(Component.java:6505) at javax.swing.JComponent.processMouseEvent(JComponent.java:3311) at java.awt.Component.processEvent(Component.java:6270) at java.awt.Container.processEvent(Container.java:2229) at java.awt.Component.dispatchEventImpl(Component.java:4861) at java.awt.Container.dispatchEventImpl(Container.java:2287) at java.awt.Component.dispatchEvent(Component.java:4687) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422) at java.awt.Container.dispatchEventImpl(Container.java:2273) at java.awt.Window.dispatchEventImpl(Window.java:2719) at java.awt.Component.dispatchEvent(Component.java:4687) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735) at java.awt.EventQueue.access$200(EventQueue.java:103) at java.awt.EventQueue$3.run(EventQueue.java:694) at java.awt.EventQueue$3.run(EventQueue.java:692) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87) at java.awt.EventQueue$4.run(EventQueue.java:708) at java.awt.EventQueue$4.run(EventQueue.java:706) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:705) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
×
×
  • Create New...