2025-04-09 2:14 AM
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.
Solved! Go to Solution.
2025-04-10 12:42 AM
That doesn't tell us much - Please give a link.
2025-04-09 2:36 AM
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 ?
2025-04-09 5:56 PM
It's not an official development board, it's the smallest system board I bought online
2025-04-10 12:42 AM
That doesn't tell us much - Please give a link.
2025-04-10 8:29 PM
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?
2025-04-11 12:05 AM
@comer wrote:The important thing is not this development board
So why have you marked that post as the solution? Clearly is isn't!
@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.
2025-04-11 1:15 AM
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.