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

CubeMX does not persist critical STM32U5 USBX and FILEX settings

  • September 6, 2026
  • 1 reply
  • 22 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.

 

1 reply

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