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

Hang when sending particular numbers of bytes #2

Open
xenovacivus opened this issue Apr 26, 2014 · 0 comments
Open

Hang when sending particular numbers of bytes #2

xenovacivus opened this issue Apr 26, 2014 · 0 comments

Comments

@xenovacivus
Copy link
Owner

Copied from http://www.coocox.org/forum/topic.php?id=3601:

There is one problem with this project. It works fine and I've used it in my project but sometimes the reading of data at the host side hunged up. It was because It doesn't include this fix:

https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=%2fpublic%2fSTe2ecommunities%2fmcu%2fLists%2fcortex_mx_stm32%2fUSB%20CDC%20Device%20hung%20fix&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&currentviews=75

It causes that if it happens that the number of characters sent to the host ist even multiplictaion of CDC_DATA_IN_PACKET_SIZE then the PC doesn't detect end of transmission correctly. So if you intend to use this example to exchange large amount of data then apply the fix that is given in the link above.

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

No branches or pull requests

1 participant