Hi Bruno,
Two type of memory during usb system, one is data structure, which have some control information, another is data buffer, it’s used to store usb transfer data only.
For data structure, we have a “OWN” bit in it, which indicate which one is own the memory now, so MCU and USB won’t write same 32-bit at a same time, and USB will only access it with a 32-bit mode.
For data buffer, MCU and USB won’t access it at same time, they will exchange information with data structure and interrupt first, then they will know when is the proper time to access the data buffer.
Have a great day,
Kan
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------