2019-05-09 02:35 AM
My board is STM32L433CC
But I have a question, I can plug and reconnect to the PC in USB, but I think it is too much trouble and take time.
Is there any way to reconnect without pulling the USB cable PC?
2019-05-09 04:08 AM
Toggling the internal pullup, see USB_BCDR.DPPU
JW
2019-05-09 06:01 AM
I now have USB_DP and USB_DM have a design mini usb head
But my VDDUSB also has 3.3V
If I internal pull up, will he still continue to operate?
2019-05-09 08:16 PM
I found that there are newer issues, old style I re-Deinit(), in init(), I went into debug mode
Found his card USB_DevInit() this function inside,
Mainly he has to do
USBx->CNTR = USB_CNTR_FRES;
USBx->CNTR = 0;
When doing CNTR = 0, the error occurs directly to determine my internal command error
So I don't understand much, just do initialization, how to directly error
2020-05-21 07:38 AM
i'm using micro instruction and time delay before MX_USB_DEVICE_Init();
RESTART_USB;
HAL_Delay(500);
MX_USB_DEVICE_Init();
#define RESTART_USB do{GPIO_InitTypeDef GPIO_InitStruct = {GPIO_PIN_12, GPIO_MODE_OUTPUT_PP};\
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);\
HAL_GPIO_WritePin(GPIOA, GPIO_PIN_12, GPIO_PIN_RESET);}while(0)
2020-05-21 08:35 AM