On 2007-10-12, shane.luttrell@gmail.com <shane.luttrell@gmail.com> wrote:
> Plugged in...
>:~$ ls /dev/ttyUSB*
> /dev/ttyUSB0
OK, that's good. But that means you shouldn't be telling
msp430-gdbproxy to use a device named "TIUSB". The device is
named "/dev/ttyUSB0", so that's what you should tell
msp430-gdbproxy to use (as you did in the example below).
> strace start
> ************************************************************************
>
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0) = 0xb7f23000
> write(1, "\n", 1) = 1
> write(1, "Remote proxy for GDB, v0.7.1, Co"..., 69) = 69
> write(1, "MSP430 adaption Copyright (C) 20"..., 70) = 70
> write(1, "GDBproxy comes with ABSOLUTELY N"..., 56) = 56
> write(1, "use `--warranty\' option. This is"..., 63) = 63
> write(1, "welcome to redistribute it under"..., 61) = 61
> write(1, "\'--copying\' option for details.\n"..., 33) = 33
> write(2, "debug: ", 11) = 11
> write(2, "msp430: msp430_open()", 21) = 21
> write(2, "\n", 1) = 1
> open("/dev/ttyUSB0", O_RDWR) = -1 EILSEQ (Invalid or incomplete multibyte or wide character)
That's a new one. I've never seen nor heard of that error
before. It looks like that error is returned by various
drivers for what appears to be widely varying reasons:
$ find /usr/src/linux-2.6.22-gentoo-r5 -name '*.c' | xargs grep EILSEQ
/usr/src/linux-2.6.22-gentoo-r5/arch/sparc/kernel/errtbls.c: SOL_EILSEQ,
/usr/src/linux-2.6.22-gentoo-r5/arch/sparc/kernel/errtbls.c: BSD_EILSEQ,
/usr/src/linux-2.6.22-gentoo-r5/fs/befs/linuxvfs.c: return -EILSEQ;
/usr/src/linux-2.6.22-gentoo-r5/fs/befs/linuxvfs.c: return -EILSEQ;
/usr/src/linux-2.6.22-gentoo-r5/fs/ntfs/unistr.c: i = -EILSEQ;
/usr/src/linux-2.6.22-gentoo-r5/fs/ntfs/unistr.c: wc = -EILSEQ;
/usr/src/linux-2.6.22-gentoo-r5/drivers/block/ub.c: case -EILSEQ: /* unplug timeout on uhci */
/usr/src/linux-2.6.22-gentoo-r5/drivers/bluetooth/bt3c_cs.c: err = -EILSEQ;
/usr/src/linux-2.6.22-gentoo-r5/drivers/bluetooth/bfusb.c: return -EILSEQ;
/usr/src/linux-2.6.22-gentoo-r5/drivers/bluetooth/bfusb.c: return -EILSEQ;
/usr/src/linux-2.6.22-gentoo-r5/drivers/bluetooth/bfusb.c: return -EILSEQ;
/usr/src/linux-2.6.22-gentoo-r5/drivers/bluetooth/bpa10x.c: return -EILSEQ;
/usr/src/linux-2.6.22-gentoo-r5/drivers/bluetooth/hci_usb.c: return -EILSEQ;
/usr/src/linux-2.6.22-gentoo-r5/drivers/bluetooth/hci_usb.c: return -EILSEQ;
/usr/src/linux-2.6.22-gentoo-r5/drivers/bluetooth/hci_usb.c: return -EILSEQ;
/usr/src/linux-2.6.22-gentoo-r5/drivers/hid/usbhid/hid-core.c: case -EILSEQ: /* protocol error or unplug */
/usr/src/linux-2.6.22-gentoo-r5/drivers/hid/usbhid/hid-core.c: case -EILSEQ: /* protocol error or unplug */
/usr/src/linux-2.6.22-gentoo-r5/drivers/hid/usbhid/hid-core.c: case -EILSEQ: /* protocol error or unplug */
/usr/src/linux-2.6.22-gentoo-r5/drivers/i2c/chips/isp1301_omap.c: return -EILSEQ;
/usr/src/linux-2.6.22-gentoo-r5/drivers/input/misc/ati_remote2.c: case -EILSEQ:
/usr/src/linux-2.6.22-gentoo-r5/drivers/input/misc/ati_remote2.c: case -EILSEQ:
/usr/src/linux-2.6.22-gentoo-r5/drivers/isdn/gigaset/bas-gigaset.c: case -EILSEQ:
/usr/src/linux-2.6.22-gentoo-r5/drivers/media/video/ov511.c: { -EILSEQ, "CRC/Timeout (bad cable?)" },
/usr/src/linux-2.6.22-gentoo-r5/drivers/media/video/pwc/pwc-if.c: case -EILSEQ: errmsg = "CRC/Timeout (could be anything)"; break;
/usr/src/linux-2.6.22-gentoo-r5/drivers/media/video/w9968cf.c: { -EILSEQ, "CRC/Timeout" },
/usr/src/linux-2.6.22-gentoo-r5/drivers/net/irda/irda-usb.c: case -EILSEQ:
/usr/src/linux-2.6.22-gentoo-r5/drivers/net/usb/usbnet.c: // we avoid the highspeed version of the ETIMEOUT/EILSEQ
/usr/src/linux-2.6.22-gentoo-r5/drivers/net/usb/usbnet.c: case -EILSEQ:
/usr/src/linux-2.6.22-gentoo-r5/drivers/net/usb/usbnet.c: case -EILSEQ:
/usr/src/linux-2.6.22-gentoo-r5/drivers/net/wireless/prism54/islpci_dev.c: return -EILSEQ; /* Illegal byte sequence */;
/usr/src/linux-2.6.22-gentoo-r5/drivers/net/wireless/zd1201.c: case -EILSEQ:
/usr/src/linux-2.6.22-gentoo-r5/drivers/net/wireless/zd1201.c: case -EILSEQ:
/usr/src/linux-2.6.22-gentoo-r5/drivers/usb/atm/ueagle-atm.c: return -EILSEQ;
/usr/src/linux-2.6.22-gentoo-r5/drivers/usb/atm/ueagle-atm.c: return -EILSEQ;
/usr/src/linux-2.6.22-gentoo-r5/drivers/usb/atm/ueagle-atm.c: ret = -EILSEQ;
/usr/src/linux-2.6.22-gentoo-r5/drivers/usb/atm/ueagle-atm.c: usbatm->flags |= UDSL_USE_ISOC | UDSL_IGNORE_EILSEQ;
/usr/src/linux-2.6.22-gentoo-r5/drivers/usb/atm/usbatm.c: (!(channel->usbatm->flags & UDSL_IGNORE_EILSEQ) ||
/usr/src/linux-2.6.22-gentoo-r5/drivers/usb/atm/usbatm.c: urb->status != -EILSEQ ))
/usr/src/linux-2.6.22-gentoo-r5/drivers/usb/gadget/at91_udc.c: req->req.status = -EILSEQ;
/usr/src/linux-2.6.22-gentoo-r5/drivers/usb/gadget/fsl_usb2_udc.c: status = -EILSEQ;
/usr/src/linux-2.6.22-gentoo-r5/drivers/usb/gadget/omap_udc.c: status = -EILSEQ;
/usr/src/linux-2.6.22-gentoo-r5/drivers/usb/host/uhci-q.c: return -EILSEQ;
/usr/src/linux-2.6.22-gentoo-r5/drivers/usb/misc/auerswald.c:-EILSEQ CRC mismatch
/usr/src/linux-2.6.22-gentoo-r5/drivers/usb/misc/auerswald.c: case -EILSEQ:
/usr/src/linux-2.6.22-gentoo-r5/drivers/usb/misc/ftdi-elan.c: } else if (retval == -EILSEQ) {
/usr/src/linux-2.6.22-gentoo-r5/drivers/usb/misc/ftdi-elan.c: } else if (retval == -EILSEQ) {
/usr/src/linux-2.6.22-gentoo-r5/net/bluetooth/bnep/core.c: return -EILSEQ;
/usr/src/linux-2.6.22-gentoo-r5/net/bluetooth/bnep/core.c: return -EILSEQ;
/usr/src/linux-2.6.22-gentoo-r5/net/bluetooth/bnep/core.c: return -EILSEQ;
/usr/src/linux-2.6.22-gentoo-r5/net/bluetooth/bnep/core.c: return -EILSEQ;
/usr/src/linux-2.6.22-gentoo-r5/net/bluetooth/bnep/core.c: err = -EILSEQ;
/usr/src/linux-2.6.22-gentoo-r5/net/bluetooth/bnep/core.c: err = -EILSEQ;
/usr/src/linux-2.6.22-gentoo-r5/net/bluetooth/rfcomm/core.c: return -EILSEQ;
/usr/src/linux-2.6.22-gentoo-r5/net/dccp/ackvec.c: return -EILSEQ;
/usr/src/linux-2.6.22-gentoo-r5/sound/usb/usbmidi.c: case -EILSEQ:
Do you get an error when you do this at the shell prompt?
$ cat /dev/ttyUSB0
> write(2, "open: Invalid or incomplete mult"..., 56) = 56
> write(2, "error: ", 11) = 11
> write(2, "msp430: Could not initialize dev"..., 49) = 49
> write(2, "\n", 1) = 1
> nanosleep({5, 0}, NULL) = 0
> write(2, "debug: ", 11) = 11
> write(2, "msp430: msp430_open()", 21) = 21
> write(2, "\n", 1) = 1
> open("/dev/ttyUSB0", O_RDWR) = -1 ENOENT (No such file or directory)
That means /dev/ttyUSB0 doesn't exist. Is there still a
/dev/ttyUSB0 after you kill msp430-gdbproxy.
> write(2, "open: No such file or directory\n", 32) = 32
> write(2, "error: ", 11) = 11
> write(2, "msp430: Could not initialize dev"..., 49) = 49
> write(2, "\n", 1) = 1
> nanosleep({5, 0}, 0) = ? ERESTART_RESTARTBLOCK (To be restarted)
> --- SIGINT (Interrupt) @ 0 (0) ---
> +++ killed by SIGINT +++
--
Grant Edwards grante Yow! Clear the laundromat!!
at This whirl-o-matic just had
visi.com a nuclear meltdown!!