4193 views|3 replies

1310

Posts

3

Resources
The OP
 

【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 Initialize the peripherals in the default configuration mode, yes. We need to configure the corresponding GPIO and USB functions according to the schematic diagram, Next, configure msc and file system USB clock configuration 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






usb_test001.ioc

14.41 KB, downloads: 7

.mxproject

12.18 KB, downloads: 8

This post is from stm32/stm8

Latest reply

I also encounter the same problem, is it solved?  Details Published on 2019-5-30 14:21
Personal signature

RTEMS

 

1310

Posts

3

Resources
2
 
Enabling the USB voltage detector solved the problem. It was my oversight.
This post is from stm32/stm8
 
Personal signature

RTEMS

 

2

Posts

0

Resources
3
 
54chenjq posted on 2019-3-23 19:27 Enabling the USB voltage detector solved the problem. I neglected it.
May I ask where to enable the USB voltage detector? I can't find it in Cube.
This post is from stm32/stm8
 
 

2

Posts

0

Resources
4
 
I also encounter the same problem, is it solved?
This post is from stm32/stm8
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list