Skip to content

Commit 87344ff

Browse files
committed
Disable the DCache when USB is initialized. There are still issues enabling it.
1 parent 1c39606 commit 87344ff

File tree

1 file changed

+4
-0
lines changed
  • ports/mimxrt10xx/supervisor

1 file changed

+4
-0
lines changed

ports/mimxrt10xx/supervisor/usb.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ void init_usb_hardware(void) {
4949
phytx &= ~(USBPHY_TX_D_CAL_MASK | USBPHY_TX_TXCAL45DM_MASK | USBPHY_TX_TXCAL45DP_MASK);
5050
phytx |= USBPHY_TX_D_CAL(0x0C) | USBPHY_TX_TXCAL45DP(0x06) | USBPHY_TX_TXCAL45DM(0x06);
5151
usb_phy->TX = phytx;
52+
53+
// Temporarily disable the data cache until we can sort out all of the spots in TinyUSB that
54+
// need the cache invalidated or cleaned.
55+
SCB_DisableDCache();
5256
}
5357

5458
void USB_OTG1_IRQHandler(void) {

0 commit comments

Comments
 (0)