On Sun, Nov 13, 2011 at 12:21:47PM +0100, Nils Faerber wrote: > Hmm... I think I have the same problem but with different reason... > I have a board (custom) and want to attach the FET430UIF to it. Using > Windows it works. But with mspdebug ti does not... neither using raw USB > nor ttyUSB mode. > > This is what happens using the serial port (yes, ttyUSB1 is correct): > > Trying to open UIF on /dev/ttyUSB1... > Initializing FET... > FET protocol version is 20408002 > Configured for Spy-Bi-Wire > Set Vcc: 3000 mV > fet: FET returned error code 4 (Could not find device (or device not > supported)) > fet: command C_IDENT1 failed > fet: identify failed > Trying again... > Initializing FET... > FET protocol version is 20408002 > Configured for Spy-Bi-Wire > Sending reset... > uif: read error: Connection timed out > warning: fet: reset failed > fet: FET returned error code 4 (Could not find device (or device not > supported)) > warning: fet: set VCC failed > fet: reply type mismatch > fet: command C_IDENT1 failed > fet: identify failed
Hi Nils, What happens if you apply this patch and try again using ttyUSB1? I'm suspecting that this firmware version might just take a little longer to respond than earlier versions. diff --git a/drivers/ti3410.c b/drivers/ti3410.c index 1bf8fbb..7a46e7d 100644 --- a/drivers/ti3410.c +++ b/drivers/ti3410.c @@ -132,7 +132,7 @@ struct ti3410_transport { #define USB_FDL_OUT_EP 0x01 #define TIMEOUT 1000 -#define READ_TIMEOUT 5000 +#define READ_TIMEOUT 20000 static int open_device(struct ti3410_transport *tr, struct usb_device *dev) diff --git a/util/sport.c b/util/sport.c index c24963d..0eb6a6c 100644 --- a/util/sport.c +++ b/util/sport.c @@ -71,7 +71,7 @@ int sport_read(sport_t s, uint8_t *data, int len) do { struct timeval tv = { - .tv_sec = 5, + .tv_sec = 20, .tv_usec = 0 }; @@ -176,7 +176,7 @@ static int xfer_wait(sport_t s, LPOVERLAPPED ovl) return -1; } - r = WaitForSingleObject(ctrlc_win32_event(), 5000); + r = WaitForSingleObject(ctrlc_win32_event(), 20000); if (r == WAIT_TIMEOUT) { CancelIo(s); SetLastError(WAIT_TIMEOUT); ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ Mspgcc-users mailing list Mspgcc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mspgcc-users