gcb 0 Posted October 14, 2012 Share Posted October 14, 2012 I can never get any serial output on the serial window. void setup(){ Serial.begin(9600); } void loop(){ Serial.print('A'); // or Serial.write('TEST'); delay(500); } i'm building from source. currently from d5632bb6a844dd59c57029ec7a56d890db80201b (also, my window says "Energia ${version}" so there's may be something wrong with the way i'm building... i.e. just typing `ant`) i'm using a rev1.4 board with a G2553, nothing else attached. also tried using minicom to listen on port /dev/ttyS0 to S3 and ttyACM0 with 8N1 9600, same silence. lsusb Bus 003 Device 003: ID 0451:f432 Texas Instruments, Inc. eZ430 Development Tool Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 1.10 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 8 idVendor 0x0451 Texas Instruments, Inc. idProduct 0xf432 eZ430 Development Tool bcdDevice 1.00 iManufacturer 1 Texas Instruments iProduct 2 Texas Instruments MSP-FET430UIF iSerial 3 AAFF426C50060E3A bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 85 bNumInterfaces 2 bConfigurationValue 1 iConfiguration 0 bmAttributes 0x80 (Bus Powered) MaxPower 100mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 3 bInterfaceClass 2 Communications bInterfaceSubClass 2 Abstract (modem) bInterfaceProtocol 1 AT-commands (v.25ter) iInterface 5 MSP430 Application UART CDC Header: bcdCDC 1.10 CDC Call Management: bmCapabilities 0x00 bDataInterface 0 CDC ACM: bmCapabilities 0x02 line coding and serial state Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x82 EP 2 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 255 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x03 EP 3 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 255 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x83 EP 3 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 255 Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 1 bAlternateSetting 0 bNumEndpoints 2 bInterfaceClass 3 Human Interface Device bInterfaceSubClass 0 No Subclass bInterfaceProtocol 0 None iInterface 4 MSP430 Debug-Interface HID Device Descriptor: bLength 9 bDescriptorType 33 bcdHID 1.01 bCountryCode 0 Not supported bNumDescriptors 1 bDescriptorType 34 Report wDescriptorLength 694 Report Descriptors: ** UNAVAILABLE ** Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 1 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x01 EP 1 OUT bmAttributes 3 Transfer Type Interrupt Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 1 Device Status: 0x0000 (Bus Powered) dmesg: [ 526.216039] usb 3-1: new full-speed USB device number 3 using uhci_hcd [ 526.417105] usb 3-1: New USB device found, idVendor=0451, idProduct=f432 [ 526.417111] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 526.417115] usb 3-1: Product: Texas Instruments MSP-FET430UIF [ 526.417118] usb 3-1: Manufacturer: Texas Instruments [ 526.417121] usb 3-1: SerialNumber: AAFF426C50060E3A [ 526.426137] cdc_acm 3-1:1.0: This device cannot do calls on its own. It is not a modem. [ 526.426145] cdc_acm 3-1:1.0: No union descriptor, testing for castrated device [ 526.426175] cdc_acm 3-1:1.0: ttyACM0: USB ACM device [ 536.477073] generic-usb 0003:0451:F432.0003: usb_submit_urb(ctrl) failed [ 536.477088] generic-usb 0003:0451:F432.0003: timeout initializing reports [ 536.478095] generic-usb 0003:0451:F432.0003: hiddev0,hidraw1: USB HID v1.01 Device [Texas Instruments Texas Instruments MSP-FET430UIF] on usb-0000:00:1d.2-1/input1 Quote Link to post Share on other sites
energia 485 Posted October 14, 2012 Share Posted October 14, 2012 Not sure if you have already done so but LP 1.4 w/ G2553 requires RX/TX to be cross connected at jumper J3. Also see https://github.com/energia/Energia/wiki ... munication and https://github.com/energia/Energia/wiki/Hardware Quote Link to post Share on other sites
gcb 0 Posted October 14, 2012 Author Share Posted October 14, 2012 tried all the ways... with it in parallel (as the board comes) with it crossed, with the pins opens still nothing... I do get different kernel messages depending on how i plug it: dmesg with pins in parallel Oct 14 11:54:10 hobo kernel: [ 4924.852052] usb 3-1: new full-speed USB device number 8 using uhci_hcd Oct 14 11:54:10 hobo kernel: [ 4925.056066] usb 3-1: New USB device found, idVendor=0451, idProduct=f432 Oct 14 11:54:10 hobo kernel: [ 4925.056072] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 Oct 14 11:54:10 hobo kernel: [ 4925.056075] usb 3-1: Product: Texas Instruments MSP-FET430UIF Oct 14 11:54:10 hobo kernel: [ 4925.056078] usb 3-1: Manufacturer: Texas Instruments Oct 14 11:54:10 hobo kernel: [ 4925.056081] usb 3-1: SerialNumber: AAFF426C50060E3A Oct 14 11:54:10 hobo kernel: [ 4925.066116] cdc_acm 3-1:1.0: No union descriptor, testing for castrated device Oct 14 11:54:10 hobo kernel: [ 4925.066143] cdc_acm 3-1:1.0: ttyACM0: USB ACM device Oct 14 11:54:20 hobo kernel: [ 4935.118079] generic-usb 0003:0451:F432.0008: timeout initializing reports Oct 14 11:54:20 hobo kernel: [ 4935.119098] generic-usb 0003:0451:F432.0008: hiddev0,hidraw1: USB HID v1.01 Device [Texas Instruments Texas Instruments MSP-FET430UIF] on usb-0000:00:1d.2-1/input1 Oct 14 11:54:20 hobo mtp-probe: checking bus 3, device 8: "/sys/devices/pci0000:00/0000:00:1d.2/usb3/3-1" Oct 14 11:54:20 hobo mtp-probe: bus: 3, device: 8 was not an MTP device Oct 14 11:58:24 hobo kernel: [ 5178.656070] usb 3-1: USB disconnect, device number 8 with rx/tx crossed Oct 14 11:59:31 hobo kernel: [ 5245.952047] usb 3-1: new full-speed USB device number 9 using uhci_hcd Oct 14 11:59:31 hobo kernel: [ 5246.155071] usb 3-1: New USB device found, idVendor=0451, idProduct=f432 Oct 14 11:59:31 hobo kernel: [ 5246.155077] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 Oct 14 11:59:31 hobo kernel: [ 5246.155081] usb 3-1: Product: Texas Instruments MSP-FET430UIF Oct 14 11:59:31 hobo kernel: [ 5246.155085] usb 3-1: Manufacturer: Texas Instruments Oct 14 11:59:31 hobo kernel: [ 5246.155088] usb 3-1: SerialNumber: AAFF426C50060E3A Oct 14 11:59:31 hobo kernel: [ 5246.165118] cdc_acm 3-1:1.0: No union descriptor, testing for castrated device Oct 14 11:59:31 hobo kernel: [ 5246.165144] cdc_acm 3-1:1.0: ttyACM0: USB ACM device Oct 14 12:00:16 hobo kernel: [ 5291.169097] generic-usb: probe of 0003:0451:F432.0009 failed with error -110 Oct 14 12:00:16 hobo mtp-probe: checking bus 3, device 9: "/sys/devices/pci0000:00/0000:00:1d.2/usb3/3-1" Oct 14 12:00:17 hobo mtp-probe: bus: 3, device: 9 was not an MTP device Oct 14 12:00:50 hobo kernel: [ 5324.976078] usb 3-1: USB disconnect, device number 9 with the pins crossed sometimes the serial port mentioned by the kernel does not show up on the energia list. and minicom gives me "cannot open /dev/ttyACM0: Input/output error" Also, i'm assuming this would all work via the USB interface right? on both those pages there's no info about extra pins to be used. Quote Link to post Share on other sites
Rickta59 589 Posted October 14, 2012 Share Posted October 14, 2012 Did you cross tx/rx using something like this? viewtopic.php?f=8&t=1703&p=12094&hilit=female+jumper#p11633 -rick Quote Link to post Share on other sites
gcb 0 Posted October 14, 2012 Author Share Posted October 14, 2012 nothing too complex. just used two female jumper cables. Quote Link to post Share on other sites
olivluca 12 Posted October 14, 2012 Share Posted October 14, 2012 Maybe you need this patched version of cdc-acm (I do) https://github.com/energia/Energia/wiki ... munication gcb 1 Quote Link to post Share on other sites
gcb 0 Posted October 15, 2012 Author Share Posted October 15, 2012 hum... it didn't showed up on the wiki before ... ah, i was looking at home, not "Pages" let me try this. thanks. update: took some time to build the module... the zip file had a all files with DOS termination and i was getting errors in the build logs such as: "directory /perfectly/valid/dir do not exist" only to find out the ^M at the end of the path didn't show up in the logs as well :? after converting to unix ( vim file -c "set ff=unix" -c "wq" ) install.sh, Makefile, *.c, *.conf it worked. My new dmesg: [26834.944045] usb 3-1: new full-speed USB device number 17 using uhci_hcd [26835.147078] usb 3-1: New USB device found, idVendor=0451, idProduct=f432 [26835.147084] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [26835.147088] usb 3-1: Product: Texas Instruments MSP-FET430UIF [26835.147091] usb 3-1: Manufacturer: Texas Instruments [26835.147094] usb 3-1: SerialNumber: AAFF426C50060E3A [26835.157145] cdc_acm 3-1:1.0: This device cannot do calls on its own. It is not a modem. [26835.157152] cdc_acm 3-1:1.0: No union descriptor, testing for castrated device [26835.157184] cdc_acm 3-1:1.0: ttyACM0: USB ACM device [26845.209080] generic-usb 0003:0451:F432.000F: usb_submit_urb(ctrl) failed [26845.209095] generic-usb 0003:0451:F432.000F: timeout initializing reports [26845.209994] generic-usb 0003:0451:F432.000F: hiddev0,hidraw1: USB HID v1.01 Device [Texas Instruments Texas Instruments MSP-FET430UIF] on usb-0000:00:1d.2-1/input1 Update: now i do get data! thanks. (at first thought not because was using tail -f but it was set for another baud, after setting to the right one i got my "A"s filling the screen) Quote Link to post Share on other sites
gcb 0 Posted October 15, 2012 Author Share Posted October 15, 2012 also, using PIN 1.1 and 1.2 was jamming the data on my other test... i though it was required only for software serial... but if I have a led there as soon as i start the serial code i get led on 1.2 lit. 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.