Re: usb/149283: avrdude unable to talk to Arduino board (via uftdi)

2010-08-10 Thread Marcin Cieslak
The following reply was made to PR usb/149283; it has been noted by GNATS.

From: Marcin Cieslak 
To: freebsd-gnats-sub...@freebsd.org
Cc: freebsd-usb@freebsd.org
Subject: Re: usb/149283: avrdude unable to talk to Arduino board (via
 uftdi)
Date: Tue, 10 Aug 2010 15:15:58 +

 The problem got solved. I got:
 
 hw.usb.ucom.cons_unit=0
 
 Resetting this value to -1 enabled the communication.
 
 The problem was because ucom_get_data() didn't fetch
 user-supplied data.
 
 Please close this PR.
 
 --Marcin
 
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Re: usb/149283: avrdude unable to talk to Arduino board (via uftdi)

2010-08-10 Thread Marcin Cieslak


The problem got solved. I got:

hw.usb.ucom.cons_unit=0

Resetting this value to -1 enabled the communication.

The problem was because ucom_get_data() didn't fetch
user-supplied data.

Please close this PR.

--Marcin

___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Re: usb/149283: avrdude unable to talk to Arduino board (via uftdi)

2010-08-05 Thread Marcin Cieslak
The following reply was made to PR usb/149283; it has been noted by GNATS.

From: Marcin Cieslak 
To: Hans Petter Selasky 
Cc: freebsd-usb@freebsd.org, freebsd-gnats-sub...@freebsd.org
Subject: Re: usb/149283: avrdude unable to talk to Arduino board (via
 uftdi)
Date: Thu, 5 Aug 2010 09:35:10 +

 On Wed, 4 Aug 2010, Hans Petter Selasky wrote:
 
 > You can try to comment out:
 >
 >/* clear stall at first run */
 >mtx_lock(&sc->sc_mtx);
 >usbd_xfer_set_stall(sc->sc_xfer[UFTDI_BULK_DT_WR]);
 >usbd_xfer_set_stall(sc->sc_xfer[UFTDI_BULK_DT_RD]);
 >mtx_unlock(&sc->sc_mtx);
 >
 > In uftdi_attach in sys/dev/usb/serial/uftdi.c.
 
 That did not fix it ...
 
 --Marcin
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Re: usb/149283: avrdude unable to talk to Arduino board (via uftdi)

2010-08-05 Thread Marcin Cieslak

On Wed, 4 Aug 2010, Hans Petter Selasky wrote:


You can try to comment out:

   /* clear stall at first run */
   mtx_lock(&sc->sc_mtx);
   usbd_xfer_set_stall(sc->sc_xfer[UFTDI_BULK_DT_WR]);
   usbd_xfer_set_stall(sc->sc_xfer[UFTDI_BULK_DT_RD]);
   mtx_unlock(&sc->sc_mtx);

In uftdi_attach in sys/dev/usb/serial/uftdi.c.


That did not fix it ...

--Marcin
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Re: usb/149283: avrdude unable to talk to Arduino board (via uftdi)

2010-08-04 Thread Hans Petter Selasky
The following reply was made to PR usb/149283; it has been noted by GNATS.

From: Hans Petter Selasky 
To: freebsd-usb@freebsd.org
Cc: Marcin Cieslak ,
 Joerg Wunsch ,
 freebsd-gnats-sub...@freebsd.org
Subject: Re: usb/149283: avrdude unable to talk to Arduino board (via uftdi)
Date: Wed, 4 Aug 2010 22:53:39 +0200

 On Wednesday 04 August 2010 22:21:32 Marcin Cieslak wrote:
 > On Wed, 4 Aug 2010, Joerg Wunsch wrote:
 > > As Marcin Cieslak wrote:
 > >> Checked with the same hardware (dual-boot) and Microsoft
 > >> Vista (with arduino-0018 IDE) and the board can be
 > >> contacted and programmed without any problems.
 > > 
 > > Your check on Windows has been using a stock AVRDUDE (e.g., a WinAVR
 > > compilation), too?  Or another tool?
 > 
 > On Windows I have used arduino Java IDE. Arduino IDE distribution
 > actually includes a whole WinAVR stack including avrdude.exe,
 > but I didn't pay attention what is actually used.
 > I will reboot to Windows now and check the commandline invocation.
 > 
 > On FreeBSD arduino the Java IDE tries to use avrdude and fails the same
 > was as from commandline.
 > 
 > > IIRC, the Arduino bootloader requires some special tricks in order to
 > > talk to it.  I think AVRDUDE v5.10 still lacks that feature.  Could
 > > you try the SVN version of AVRDUDE?
 > 
 > AVRDUDE is mentioned for example here
 > http://www.arduino.cc/playground/FreeBSD/CLI as the tool to use.
 > 
 > I have tried "-c arduino" or "-c stk500v1" with trunk and I get still
 > the same affect as with 5.10 (Programmer timeout).
 > 
 > What maybe important: TX/RX LED on the board don't react at all
 > when trying to use avrdude (there is only a single blink
 > on firmware LED - which means bootloader start).
 > 
 > With Windows - TX/RX indicated clearly some activity.
 > 
 > > (I don't see a GNATS ID in the subject.  Has this been actually filed
 > > via send-pr?)
 > 
 
 You can try to comment out:
 
 /* clear stall at first run */
 mtx_lock(&sc->sc_mtx);
 usbd_xfer_set_stall(sc->sc_xfer[UFTDI_BULK_DT_WR]);
 usbd_xfer_set_stall(sc->sc_xfer[UFTDI_BULK_DT_RD]);
 mtx_unlock(&sc->sc_mtx);
 
 In uftdi_attach in sys/dev/usb/serial/uftdi.c.
 
 --HPS
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Re: usb/149283: avrdude unable to talk to Arduino board (via uftdi)

2010-08-04 Thread Hans Petter Selasky
On Wednesday 04 August 2010 22:21:32 Marcin Cieslak wrote:
> On Wed, 4 Aug 2010, Joerg Wunsch wrote:
> > As Marcin Cieslak wrote:
> >> Checked with the same hardware (dual-boot) and Microsoft
> >> Vista (with arduino-0018 IDE) and the board can be
> >> contacted and programmed without any problems.
> > 
> > Your check on Windows has been using a stock AVRDUDE (e.g., a WinAVR
> > compilation), too?  Or another tool?
> 
> On Windows I have used arduino Java IDE. Arduino IDE distribution
> actually includes a whole WinAVR stack including avrdude.exe,
> but I didn't pay attention what is actually used.
> I will reboot to Windows now and check the commandline invocation.
> 
> On FreeBSD arduino the Java IDE tries to use avrdude and fails the same
> was as from commandline.
> 
> > IIRC, the Arduino bootloader requires some special tricks in order to
> > talk to it.  I think AVRDUDE v5.10 still lacks that feature.  Could
> > you try the SVN version of AVRDUDE?
> 
> AVRDUDE is mentioned for example here
> http://www.arduino.cc/playground/FreeBSD/CLI as the tool to use.
> 
> I have tried "-c arduino" or "-c stk500v1" with trunk and I get still
> the same affect as with 5.10 (Programmer timeout).
> 
> What maybe important: TX/RX LED on the board don't react at all
> when trying to use avrdude (there is only a single blink
> on firmware LED - which means bootloader start).
> 
> With Windows - TX/RX indicated clearly some activity.
> 
> > (I don't see a GNATS ID in the subject.  Has this been actually filed
> > via send-pr?)
> 

You can try to comment out:

/* clear stall at first run */
mtx_lock(&sc->sc_mtx);
usbd_xfer_set_stall(sc->sc_xfer[UFTDI_BULK_DT_WR]);
usbd_xfer_set_stall(sc->sc_xfer[UFTDI_BULK_DT_RD]);
mtx_unlock(&sc->sc_mtx);

In uftdi_attach in sys/dev/usb/serial/uftdi.c.

--HPS
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Re: usb/149283: avrdude unable to talk to Arduino board (via uftdi)

2010-08-04 Thread Marcin Cieslak
The following reply was made to PR usb/149283; it has been noted by GNATS.

From: Marcin Cieslak 
To: Joerg Wunsch 
Cc: freebsd-gnats-sub...@freebsd.org, freebsd-usb@freebsd.org
Subject: Re: usb/149283: avrdude unable to talk to Arduino board (via
 uftdi)
Date: Wed, 4 Aug 2010 20:21:32 +

 On Wed, 4 Aug 2010, Joerg Wunsch wrote:
 
 > As Marcin Cieslak wrote:
 >
 >> Checked with the same hardware (dual-boot) and Microsoft
 >> Vista (with arduino-0018 IDE) and the board can be
 >> contacted and programmed without any problems.
 >
 > Your check on Windows has been using a stock AVRDUDE (e.g., a WinAVR
 > compilation), too?  Or another tool?
 
 On Windows I have used arduino Java IDE. Arduino IDE distribution
 actually includes a whole WinAVR stack including avrdude.exe,
 but I didn't pay attention what is actually used.
 I will reboot to Windows now and check the commandline invocation.
 
 On FreeBSD arduino the Java IDE tries to use avrdude and fails the same
 was as from commandline.
 
 > IIRC, the Arduino bootloader requires some special tricks in order to
 > talk to it.  I think AVRDUDE v5.10 still lacks that feature.  Could
 > you try the SVN version of AVRDUDE?
 
 AVRDUDE is mentioned for example here 
http://www.arduino.cc/playground/FreeBSD/CLI
 as the tool to use.
 
 I have tried "-c arduino" or "-c stk500v1" with trunk and I get still
 the same affect as with 5.10 (Programmer timeout).
 
 What maybe important: TX/RX LED on the board don't react at all
 when trying to use avrdude (there is only a single blink
 on firmware LED - which means bootloader start).
 
 With Windows - TX/RX indicated clearly some activity.
 
 > (I don't see a GNATS ID in the subject.  Has this been actually filed
 > via send-pr?)
 
 Hm, yes, sorry... You were copied on the original send-pr.
 
 --Marcin
 
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Re: usb/149283: avrdude unable to talk to Arduino board (via uftdi)

2010-08-04 Thread Marcin Cieslak

On Wed, 4 Aug 2010, Joerg Wunsch wrote:


As Marcin Cieslak wrote:


Checked with the same hardware (dual-boot) and Microsoft
Vista (with arduino-0018 IDE) and the board can be
contacted and programmed without any problems.


Your check on Windows has been using a stock AVRDUDE (e.g., a WinAVR
compilation), too?  Or another tool?


On Windows I have used arduino Java IDE. Arduino IDE distribution
actually includes a whole WinAVR stack including avrdude.exe,
but I didn't pay attention what is actually used.
I will reboot to Windows now and check the commandline invocation.

On FreeBSD arduino the Java IDE tries to use avrdude and fails the same
was as from commandline.


IIRC, the Arduino bootloader requires some special tricks in order to
talk to it.  I think AVRDUDE v5.10 still lacks that feature.  Could
you try the SVN version of AVRDUDE?


AVRDUDE is mentioned for example here 
http://www.arduino.cc/playground/FreeBSD/CLI
as the tool to use.

I have tried "-c arduino" or "-c stk500v1" with trunk and I get still
the same affect as with 5.10 (Programmer timeout).

What maybe important: TX/RX LED on the board don't react at all
when trying to use avrdude (there is only a single blink
on firmware LED - which means bootloader start).

With Windows - TX/RX indicated clearly some activity.


(I don't see a GNATS ID in the subject.  Has this been actually filed
via send-pr?)


Hm, yes, sorry... You were copied on the original send-pr.

--Marcin

___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"