USB device stack for NUCLEO-F042K6, NUCLEO-L152RE and NUCLEO-F103RB.
Fork of L152RE_USBDevice by
I tried USB device using HAL_PCD.
Nucleo-F042K6 | USB |
---|---|
PA11 (CN3-13) | DM (2 WHITE) |
PA12 (CN3-5) | DP (3 GREEN) |
GND (CN3-4) | GND (5 BLACK) |
VIN (CN4-1) | VBUS(1 RED) |
Examples
Import programF042K6_USBDevice_example
NUCLEO-F042K6 USBDevice example code
Import programL152RE_USBDevice_example
L152RE_USBDevice example code
Import programF042K6_Simple-CMSIS-DAP
cmsis-dap debug adapter
Import programL152RE_Simple-CMSIS-DAP
cmsis-dap debug adapter
Revision 64:c3d0530b6d82, committed 2015-06-25
- Comitter:
- va009039
- Date:
- Thu Jun 25 09:33:51 2015 +0900
- Parent:
- 63:05e2f2e4dc3e
- Child:
- 65:0ba7c5e2b3dc
- Commit message:
- do not check isochronous packet size.
Changed in this revision
USBDevice/USBHAL_STM32L1.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/USBDevice/USBHAL_STM32L1.cpp Mon Jun 22 09:42:03 2015 +0900 +++ b/USBDevice/USBHAL_STM32L1.cpp Thu Jun 25 09:33:51 2015 +0900 @@ -258,7 +258,6 @@ return EP_PENDING; } int len = HAL_PCD_EP_GetRxCount(&hpcd_USB_FS, endpoint>>1); - MBED_ASSERT(len <= 64); memcpy(buffer, rxtmp.ptr(endpoint), len); *bytesRead = len; return EP_COMPLETED;