Skip to main content
Associate
February 13, 2025
Question

USBX CDC ACM example fails when project directory is moved

  • February 13, 2025
  • 3 replies
  • 511 views

Hello,

I am trying to get USBX to work on my NUCLEO-U5A5ZJ-Q board independently from the example provided. I can copy and paste the project into the same directory location as the example (inside the firmware package) and it works absolutely fine. 

When copying the project to another location outside the firmware directory and reroute all the files that use the relative directory position of files to the true location of the files (done inside the project preferences window and inside the .project folder), the project builds without errors or warnings but the USBC does not enumerate.
All of the project settings, IDE settings and file contents should be identical to the example.

Is there anything I have missed because I don't understand why it wouldn't work exactly the same as the example. If anyone has experienced this problem before or has any ideas on why this might be happening / how to fix this issue I would be very grateful.

(I'm using firmware version 1.7.0 & STM32CubeIDE version 1.17.0)

 

Kind regards,

Sonny

This topic has been closed for replies.

3 replies

ST Technical Moderator
February 13, 2025

Hi @Sonny_Browning 

After changing the project location, you should import the project to the workspace. However, this has nothing to do with the enumeration of USB app. Your issue seems to be linked to project compilation in CubeIDE!

A screenshot of the issue would be helpful to investigate further. 

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL
Associate
February 13, 2025

Hi @FBL,

The problem is that the project builds and configures without any errors or warnings - there isn't anything to take a screenshot of. The problem isn't that it isn't building, it is that the USBC isn't enumerating / working when running the project in any other directory to the example (even after changing firmware file locations).

Is there step by step instructions on how to get the USBX CDC ACM example working in a different directory? If there is could you direct me to it?

 

 

ST Technical Moderator
February 13, 2025
To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.Best regards,FBL