Skip to content

Flush the dcd data on reset#1953

Merged
hathach merged 1 commit intohathach:masterfrom
tannewt:fix_cached_imx_reset
Mar 14, 2023
Merged

Flush the dcd data on reset#1953
hathach merged 1 commit intohathach:masterfrom
tannewt:fix_cached_imx_reset

Conversation

@tannewt
Copy link
Copy Markdown
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
Copy Markdown
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
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
7FM pushed a commit to 7FM/tinyusb that referenced this pull request Aug 23, 2025
* Avoid setting an alarm in the past

Fixes hathach#1953

* Call ta_time_us_64 when needed

Remove local "now" variable.
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.

2 participants