Il y avait des problèmes dans la libraire...

Fork of USBDEVICE by ST

Revision:
2:760da2befbf5
Parent:
1:2a3ae13b45ef
--- a/USBDevice/TARGET_STM/USBHAL_STM_144_64pins.h	Thu Dec 15 17:40:59 2016 +0100
+++ b/USBDevice/TARGET_STM/USBHAL_STM_144_64pins.h	Fri Dec 16 15:12:14 2016 +0000
@@ -112,6 +112,8 @@
     __HAL_RCC_USB_OTG_FS_CLK_ENABLE();
     __HAL_RCC_SYSCFG_CLK_ENABLE();
     hpcd.State = HAL_PCD_STATE_RESET;
+    /* add it before next release */
+    hpcd.Lock = HAL_UNLOCKED;
     HAL_PCD_Init(&hpcd);
     /* 1.25kbytes */
     /* min value 16 (= 16 x 4 bytes) */