Skip to main content
Associate
May 13, 2025
Solved

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

  • May 13, 2025
  • 2 replies
  • 456 views

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!

Best answer by Andrew Neil

@Chandra_Embedded wrote:

using the STM32 Arduino Core.


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

2 replies

Andrew Neil
Andrew NeilBest answer
Super User
May 13, 2025

@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.
Technical Moderator
May 14, 2025

Hi @Chandra_Embedded 

USB config tree view file is missing! I assume your inquiry is more linked to stm32duino as @Andrew Neil proposed. I would recommend start testing without the Arduino abstraction.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.Best regards,FBL
Associate
May 14, 2025

Thank you @FBL @Andrew Neil . I will check with STM32 Arduino Core. Have a Wonderful day!