Giter Club home page Giter Club logo

Comments (4)

hathach avatar hathach commented on May 28, 2024

it does zero length transaction, most likely for control status stage

from tinyusb.

ab932 avatar ab932 commented on May 28, 2024

my point is the event is dropped:

case DCD_EVENT_XFER_COMPLETE:

dcd_event_handler skips processing it. so you never get to execute the xfer

i'm trying to port a chip, but i currently do not know if i get an interrupt for status completion or not. unfortunately the manual for this chip is in Chinese so I'm kinda on my own here :)

i have a usb analyzer so I'm using that to help

from tinyusb.

hathach avatar hathach commented on May 28, 2024

Not really, the DCD_EVENT_XFER_COMPLETE is called when the transferred is complete. For control status stage (zero length data), the stack has nothing to process in upper layer. So it simply skips that specific event.

To trace/debug your port, you should have an debugger such as jlink, or increase some variable counter, and printf it later etc... Though It is much easier to use jlink along with segger embedded studio which is mainly what I use for debugging :D

PS: I re-opened issue for further discussion. you can close it when you are happy with answer.

from tinyusb.

ab932 avatar ab932 commented on May 28, 2024

Unfortunately this chip (WCH CH568) is not an ARM chip, it is NDS32! I asked the guys using Google translate but they said that the debug port is not open... damn. Anyway, I'm slowly getting the idea that the interrupts really mean the transfer is done already (SETUP/IN/OUT). I believe I need to control the responses... Thanks for the help. I'll close this issue.

from tinyusb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.