cancel
Showing results for 
Search instead for 
Did you mean: 

STM32U5A5AJHXQ: USB OTG HS Embedded PHY Support with STM32 Arduino Core

Hello,

I’m working on the STM32U5A5AJHXQ and attempting to develop a USB driver interface using the STM32 Arduino Core.

I’ve configured the USB as follows:

Vendor ID : 0x0483 (STMicroelectronics)
Product ID : 0x5740
Manufacturer String : STMicroelectronics
Product String : GENERIC_U5A5AJHXQ CDC in HS Mode
Serial : 206134504231
USB Version : 2.0
Port maximum Speed : High-Speed
Device maximum Speed : High-Speed
Device Connection Speed : High-Speed
Self powered : yes
Demanded Current : 100 mA
Used Endpoints : 4

======================== USB Device ========================

+++++++++++++++++ Device Information ++++++++++++++++++
Friendly Name : USB Serial Device (COM7)

However, I'm encountering an issue where the USB enters IN NAK and PERIODIC TIMEOUT states (as observed in a USB analyzer log), and no successful enumeration or data transfer occurs.

I'm trying to implement a fully functional USB OTG HS device driver that includes all the required lower layers (USB core, PCD, middleware, CMSIS etc.) under the Arduino abstraction. If anyone has experience or guidance on:

  • Properly enabling and initializing the USB OTG HS Embedded PHY on U5A5

  • Ensuring periodic transfers (e.g., interrupt IN) don't stall

  • I am not using any Threading or FreeRTOS considerations

...I'd appreciate any direction or sample working configurations.

Please refer to the attached USB config tree view file.

Thank you!

1 REPLY 1

@Chandra_Embedded wrote:

using the STM32 Arduino Core.


Support for STM32Duino is here: https://www.stm32duino.com/ 

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.