NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/49814: USB Quirk for Texas Instrument MSP430 FET programmer

>Number:         49814
>Category:       kern
>Synopsis:       A fix to prevent the MSP430 Launchpad being detected as a HID
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 05 04:55:00 +0000 2015
>Originator:     Chris Baird
>Release:        NetBSD 7.99.9 snapshot 20150405
World Wide Weasels
System: NetBSD brushtail 7.99.9 NetBSD 7.99.9 (BRUSHTAIL) #599: Sun Apr 5 12:29:00 AEST 2015 cjb@brushtail:/root/Brushtail amd64
Architecture: x86_64
Machine: amd64

The USB debugging interface of the Texas Instrument MSP430 Launchpad
evalutation board is detected and attached as a USB HID device, which
is incorrect, and interferes with utilities such as mspdebug.

Applying this fix allows (the unknown to pkgsrc) mspdebug-0.22 to
work on NetBSD as-is, and puts my Raspbian Raspberry Pi out of a job
as an MSP430 programming platform.

Also, Texas Instruments not been bought out by Intel as yet...

dmesg output on attaching a Launchpad mcu eval board:

uhidev2 at uhub1 port 1 configuration 1 interface 1
uhidev2: Texas Instruments Texas Instruments MSP-FET430UIF, rev 1.10/1.00, addr 2, iclass 3/0
uhidev2: 211 report ids
uhid3 at uhidev2 reportid 1: input=1, output=1, feature=0
uhid4 at uhidev2 reportid 2: input=2, output=2, feature=0
uhid5 at uhidev2 reportid 3: input=3, output=3, feature=0
uhid28 at uhidev2 reportid 205: input=0, output=0, feature=1
uhid29 at uhidev2 reportid 210: input=0, output=0, feature=1
uhid30 at uhidev2 reportid 211: input=0, output=0, feature=1

Attempting to use mspdebug (that's already supporting OpenBSD) reports
not being able to locate the device.


Index: dev/usb/usbdevs
RCS file: /cvsroot/src/sys/dev/usb/usbdevs,v
retrieving revision 1.693
diff -r1.693 usbdevs
< /* Texas Intel products */
> /* Texas Instruments products */
> product TI TUSB3410           0x3410  TUSB3410
> product TI MSP430_JTAG                0xf430  MSP-FET430UIF JTAG
> product TI MSP430             0xf432  MSP-FET430UIF

Index: dev/usb/usb_quirks.c
RCS file: /cvsroot/src/sys/dev/usb/usb_quirks.c,v
retrieving revision 1.82
diff -r1.82 usb_quirks.c
>  { USB_VENDOR_TI, USB_PRODUCT_TI_MSP430,            ANY,   { UQ_HID_IGNORE }},

Home | Main Index | Thread Index | Old Index