Skip to content

Commit 33f6bd7

Browse files
committed
Fix USB on Kinetis devices
Set correct SYSMPU register for proper USB operation. This bug was introduced when the SYSMPU register names and defines were updated in the commit: "K64F: Updated the SYSMPU SDK driver" 93f8cfe
1 parent 4467f55 commit 33f6bd7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

usb/device/targets/TARGET_Freescale/USBPhy_Kinetis.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ void USBPhyHw::init(USBPhyEvents *events)
125125
MPU->CESR=0;
126126
#endif
127127

128+
#if (defined(FSL_FEATURE_SOC_SYSMPU_COUNT) && (FSL_FEATURE_SOC_SYSMPU_COUNT > 0U))
129+
SYSMPU->CESR=0;
130+
#endif
131+
128132
#if defined(TARGET_KL43Z) || defined(TARGET_K22F) || defined(TARGET_K64F)
129133
// enable USBFS clock
130134
CLOCK_EnableUsbfs0Clock(kCLOCK_UsbSrcIrc48M, 48000000U);

0 commit comments

Comments
 (0)