Skip to content

Commit 96d3667

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 73cfc7b commit 96d3667

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

features/unsupported/USBDevice/targets/TARGET_Freescale/USBHAL_KL25Z.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@ USBHAL::USBHAL(void) {
100100
#if (defined(FSL_FEATURE_SOC_MPU_COUNT) && (FSL_FEATURE_SOC_MPU_COUNT > 0U))
101101
MPU->CESR=0;
102102
#endif
103+
104+
#if (defined(FSL_FEATURE_SOC_SYSMPU_COUNT) && (FSL_FEATURE_SOC_SYSMPU_COUNT > 0U))
105+
SYSMPU->CESR=0;
106+
#endif
107+
103108
// fill in callback array
104109
epCallback[0] = &USBHAL::EP1_OUT_callback;
105110
epCallback[1] = &USBHAL::EP1_IN_callback;

0 commit comments

Comments
 (0)