Skip to main content
Visitor II
May 16, 2006
Question

usb control read

  • May 16, 2006
  • 9 replies
  • 1482 views
Posted on May 16, 2006 at 13:21

usb control read

    This topic has been closed for replies.

    9 replies

    sjoAuthor
    Visitor II
    July 25, 2005
    Posted on July 25, 2005 at 06:58

    I have written a dfu driver for the str711 device, all works ok except control read transfers (OUT transfers).

    I have traced the problem down to the usb interrupt routine (CTR_ISR) - This function below checks for a setup packet but the mask will also catch all RX (OUT) transfers including non SETUP ones. In other words the Out0_Process will never get called.

    if((wEPVal & (EP_CTR_RX|EP_SETUP)) != 0)

    {

    _ClearEP_CTR_RX(ENDP0); /* SETUP bit kept frozen while CTR_RX = 1 */

    Setup0_Process();

    }

    else if((wEPVal & EP_CTR_RX) != 0)

    {

    _ClearEP_CTR_RX(ENDP0);

    Out0_Process();

    }

    changing to

    if((wEPVal & (EP_SETUP)) != 0) fixes the problem, is this correct ?

    Regards

    sjo

    sjoAuthor
    Visitor II
    July 27, 2005
    Posted on July 27, 2005 at 13:50

    Could anyone confirm what I have done is correct ?

    Regards

    sjo

    Visitor II
    July 28, 2005
    Posted on July 28, 2005 at 07:01

    Hi Sjo,

    Sorry for the delay...

    We have already checked the USB software libray and some mistakes are alredy verified(The new version is not published yet).

    Concerning the Out0_Process section we use the following condition .

    if((wEPVal &EP_SETUP) != 0)

    {

    _ClearEP_CTR_RX(ENDP0); /* SETUP bit kept frozen while CTR_RX = 1 */

    Setup0_Process();

    }

    else if((wEPVal & EP_CTR_RX) != 0)

    {

    _ClearEP_CTR_RX(ENDP0);

    Out0_Process();

    }

    With best regards,

    Hich :o

    [ This message was edited by: Hich on 28-07-2005 12:45 ]

    Visitor II
    September 22, 2005
    Posted on September 22, 2005 at 16:38

    You inform us that you have a new version of the usb library.

    Could you publish it ? even if it's unsupported, because we use the current library that have some problem...

    Sincerely

    Chris.

    Visitor II
    October 2, 2005
    Posted on October 02, 2005 at 17:23

    Can you puublish this new version of the usb library ?

    Visitor II
    February 9, 2006
    Posted on February 09, 2006 at 05:54

    Did have you any news for the usb lib?

    Regards

    Chris.

    Visitor II
    February 9, 2006
    Posted on February 09, 2006 at 07:16

    Hi all,

    The STR71x USB software package review is on going and planned for W13.

    Then it will be published as soon as possible.

    Thank you for your comprehension.

    With best regards,

    Hich ;)

    Visitor II
    February 23, 2006
    Posted on February 23, 2006 at 08:43

    Quote:

    On 09-02-2006 at 11:46, Anonymous wrote:

    Hi all,

    The STR71x USB software package review is on going and planned for W13.

    Then it will be published as soon as possible.

    Thank you for your comprehension.

    With best regards,

    Hich ;)

    will it be published before April 1 ?

    Visitor II
    May 16, 2006
    Posted on May 16, 2006 at 13:21

    Did have you any news for the usb lib (We are in week 20)?

    Regards

    Chris.