2023-12-15 08:54 PM
I am use Nucleo-H563Zi test the usb host feature, I connected the USB_USER jumper to provide VBUS, and just use 2 wire usb, ignore 2 CC line. and configed in cubeide as below
Then I generat code, and I add
"HAL_HCD_Start(&hhcd_USB_DRD_FS);"
before while(1)
then compile and debug the program
but I can not detect the flash disk plugin and no usb interrupt occure.
what config is wrong for this test.
Thank you.
Solved! Go to Solution.
2023-12-15 09:38 PM
find the reason, we need enable USB33SV in register PWR_USBSCR, and this implement in HAL_PWREx_EnableVddUSB(), and was not generate by cubeide, we need add this function call manually,
after that it works good.
2023-12-15 09:38 PM
find the reason, we need enable USB33SV in register PWR_USBSCR, and this implement in HAL_PWREx_EnableVddUSB(), and was not generate by cubeide, we need add this function call manually,
after that it works good.