cancel
Showing results for 
Search instead for 
Did you mean: 

STM32H7A3 USB_OTG_FS

comer
Associate

Hi,

    I am using the STM32H7A3 board to implement the virtual serial port function for USB, and I want to use FS mode. However, there is no macro definition related to FS mode in STM32H7a3xx. h. Do I need to manually add it? And I checked the demo in the development package, but there is no demo of H7A3 regarding the virtual serial port. Can you provide it? Currently, I am referring to the USB virtual serial port demo of stm32H743l for porting, following the HS mode, but the computer does not recognize the USB interface.

1 ACCEPTED SOLUTION

Accepted Solutions

That doesn't tell us much - Please give a link.

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

View solution in original post

6 REPLIES 6

Welcome to the forum.

Please see How to write your question to maximize your chances to find a solution for best results.

 


@comer wrote:

I am using the STM32H7A3 board 


Which STM32H7A3 board ?

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
comer
Associate

It's not an official development board, it's the smallest system board I bought online

That doesn't tell us much - Please give a link.

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

hi ,andrew neil

        The important thing is not this development board, but the USB code generated by CubeIDE when I use the STM32H7A3 chip for development the configuration related to FS, whether this chip can be configured into FS mode?


@comer wrote:

The important thing is not this development board

So why have you marked that post as the solution? Clearly is isn't!

To unmark, see: https://community.st.com/t5/community-guidelines/help-others-to-solve-their-issues/ta-p/575256#:~:text=If%20you%20accidentally%20chose%20the%20wrong%20post%20as%20solution%2C%20you%20can%20always%20revert%20this%20action%20by%20clicking%20%22Not%20the%20Solution%22

 


@comer wrote:

The important thing is not this development board, but the USB code generated by CubeIDE 


Note true: The hardware needs to be correct as well as the software!

Embedded software works in the context of the hardware - it can't be considered in isolation - so it's important to know that context.

 


@comer wrote:

whether this chip can be configured into FS mode?


That would be answered in the datasheet.

 

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
Pavel A.
Evangelist III

STM32H7A/B have only one USB controller (per the documentation, I don't have these boards) and it is named "HS".

For example see here. This is why _FS macros are not defined for this product - just by arbitrary convention.