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

Flush the dcd data on reset #1953

Merged
merged 1 commit into from Mar 14, 2023
Merged

Conversation

tannewt
Copy link
Collaborator

@tannewt tannewt commented Mar 13, 2023

On iMX RT TinyUSB didn't work with the USB buffers behind dcache. (This happens if the RAM region is marked shareable in the MPU.)

This adds a cache flush on reset so that the reset of the shared data structures is seen by the peripheral. Otherwise, it gets confused.

@tannewt tannewt requested a review from hathach March 13, 2023 22:24
Copy link
Owner

@hathach hathach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perfect, thank you. Note: doc build has some issues, I don't know why, but we could ignore it for now.

@hathach hathach merged commit ea8ecea into hathach:master Mar 14, 2023
33 checks passed
fengjixuchui added a commit to fengjixuchui/tinyusb that referenced this pull request Mar 14, 2023
Merge pull request hathach#1953 from tannewt/fix_cached_imx_reset
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.

None yet

2 participants