cherry-embedded / CherryUSB

CherryUSB is a tiny, beautiful and portable USB host and device stack for embedded system with USB IP
https://cherryusb.cherry-embedded.org
Apache License 2.0
1.24k stars 264 forks source link

class: msc: stage change should be before usbd_ep_start_write() #177

Closed chenzhihong007 closed 7 months ago

chenzhihong007 commented 7 months ago
sakumisu commented 7 months ago

这个好像不改没什么问题吧,是哪边会出问题?

chenzhihong007 commented 7 months ago

使用多线程时,host使用READ10指令读取数据,偶尔会出现device响应数据后不会回复CSW数据包。 b24827edab7f7d3082bdf8582dccb08

sakumisu commented 7 months ago

嗯是的,如果write以后,还未设置stage的情况下触发了中断的情况下,是会有问题的