Skip to content

Commit

Permalink
drivers: usb: Fix usb fail when using the on-chip memory
Browse files Browse the repository at this point in the history
Using SCB_CleanInvalidateDcache instead of SCB_DisableDcache
 & SCB_EnableDcache when config the non-cache area, in case
of the cache will effect the configuration of the non-cache
area

Signed-off-by: Crist Xu <[email protected]>
  • Loading branch information
CristXu authored and MaureenHelm committed Sep 17, 2020
1 parent 55d6c8a commit ac3d943
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/arm/core/aarch32/cortex_m/mpu/arm_mpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,10 @@ static int arm_mpu_init(const struct device *arg)

arm_core_mpu_disable();

#if defined(CONFIG_NOCACHE_MEMORY)
SCB_CleanInvalidateDCache();
#endif

/* Architecture-specific configuration */
mpu_init();

Expand Down

0 comments on commit ac3d943

Please sign in to comment.