Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed App_Callback() to be interrupt safe for asynchronous TX/RX streams... #18

Merged
merged 1 commit into from
Oct 24, 2014

Conversation

kevinuskali
Copy link
Contributor

It looks like the original code was written for a sequential TX => RX => TX... chain. On the other hand, if the MCU (CDC_DEVICE) and host communicate with asynchronous TX/RX streams, the RX endpoint FSM on the MCU can become corrupted. This corruption stalls the incoming RX stream. The changes resolve this issue.

@ErichStyger ErichStyger self-assigned this Oct 24, 2014
ErichStyger pushed a commit that referenced this pull request Oct 24, 2014
Fixed App_Callback() to be interrupt safe for asynchronous TX/RX streams...
@ErichStyger ErichStyger merged commit 9222ffa into ErichStyger:master Oct 24, 2014
@ErichStyger
Copy link
Owner

Many thanks for that contribution. I have not thought about this being an issue, and it seems that I have not seen it on my side. Anyway, good fix, thank you!

@mcu101
Copy link

mcu101 commented Oct 27, 2014

Thanks, this could solve the issue I'm experiencing regarding incoming CDC messages not being acknowledged by the MCU (missing USB ACK byte). I'll let you guys know.

Carlos

@mcu101
Copy link

mcu101 commented Oct 30, 2014

It works!

Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants