Skip to main content
TDJ
Senior III
September 6, 2026
Solved

CubeMX does not persist critical STM32U5 USBX and FILEX settings

  • September 6, 2026
  • 2 replies
  • 78 views

CubeMX 6.18 does not persist two critical STM32U5A5 USBX and FileX settings when their values are entered as multiplication expressions in the form N*1024. This results in incorrect macros being generated in the app_azure_rtos_config.h header. The correct minimum values are provided below.

UX_APP_MEM_POOL_SIZE    40*1024
FX_APP_MEM_POOL_SIZE     2*1024
USBX_MEMORY_STACK_SIZE 24*1024

In the case of the STM32U5G9, CubeMX does not persist the USBX System Stack Size setting. The minimum required value is 24 KB.

 

Best answer by Ghofrane GSOURI

Hello ​@TDJ 

Your contribution is much appreciated.

Issue has been escalated to dev team under the following internal ticket ID #0065607   

I will keep you posted with updates.

THX

Ghofrane

2 replies

TDJ
TDJAuthor
Senior III
September 6, 2026

As an additional note for anyone who may come across this thread in the future, I was able to get USBX working with UCPD and exFAT support on the Nucleo-U5A5ZJ board. Details and the working example are available on GitHub: https://github.com/tdjastrzebski/Nucleo-U5A5ZJ-USBX

Ghofrane GSOURI
Ghofrane GSOURIBest answer
ST Technical Moderator
September 7, 2026

Hello ​@TDJ 

Your contribution is much appreciated.

Issue has been escalated to dev team under the following internal ticket ID #0065607   

I will keep you posted with updates.

THX

Ghofrane

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.