【ST NUCLEO-H743ZI Review】USB MSC Function Test[Copy link]
This post was last edited by 54chenjq on 2019-3-17 12:33 [url=https://en.eeworld.com/bbs/elecplay/content/103]The development board ST NUCLEO-H743ZI evaluated in this event is provided by STMicroelectronics. Thanks to STMicroelectronics for its support for EEWorld's evaluation! The main purpose of this article is to learn the USB function of stm32, and try to use STM32 to read U disk data and test the USB of stm32h7. The required hardware includes: nucleo-h743zi, USB flash drive, USB OTG adapter cable, and a power/data cable for connecting the development board to the PC.
1 First, you need to master the schematic diagram of the USB circuit and pay attention to the influence of the tin bridge connection on the configuration.
2. Open CUBEMX, an indispensable tool in the STM32 development process, which helps us to perform visual engineering configuration. The code generated by this tool reduces the labor intensity, so that we can focus more on application development. I would like to complain here that the update is too fast. Let's get straight to the point: select our development board
Generate code, open the project, use MX_USB_HOST_Process function to observe the enumeration of Usb, the problem I am facing now: HAL_NVIC_SetPriority(OTG_FS_IRQn, 0, 0); HAL_NVIC_EnableIRQ(OTG_FS_IRQn); After configuring the above interrupts and calling HAL_HCD_Start, the USB plug-in and unplug actions cannot detect the corresponding interrupt trigger. I wonder if there are any TXs who have encountered similar situations. Please give me some advice. This content was originally created by EEWORLD forum user 54chenjq. If you need to reprint or use it for commercial purposes, you must obtain the author's consent and indicate the source