2026-02-09 12:18 AM
The X-CUBE-AZRTOS-H7RS middleware is missing the setting to change the USBX System Stack Size which in turn means that the USBX_MEMORY_STACK_SIZE define in the app_usbx.h file can not be changed from its default of 1024. And because the define is not in a USER CODE section, any manual change will be overridden when re-generating code in CubeMX.
Here is an example when using USBX host stack, but it's the same for the device stack.
STM32H7RSxx:
STM32H7A3ZIT:
Solved! Go to Solution.
2026-02-13 5:20 AM
Hello @Gaweringo
Let me thank you for bringing this issue to our attention.
The issue has been escalated internally to the dedicated team for further investigation and resolution (Ticket
227182 ). This is an internal tracking number and is not accessible or usable by customers.)
I will let you know when the issue is solved.
Thanks.
Mahmoud
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.
2026-02-09 12:25 AM - edited 2026-02-10 1:26 AM
Hello @Gaweringo
Let me thank you for posting.
I am currently checking this behavior, and I will get back to you ASAP.
For more investigation, I suggest please that you provide your Ioc.File
Thanks.
Mahmoud
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.
2026-02-12 9:03 AM - edited 2026-02-12 9:04 AM
Here's an exemplary .ioc file. It's not configured in a way that the resulting project would work (sizes aren't large enough, time source isn't changed from SysTick, ...) but UsbX is activated and doesn't show the option to change the USBX_MEMORY_STACK_SIZE.
I have also attached a .ioc file for a h7a3 where the option shows up.
2026-02-13 5:20 AM
Hello @Gaweringo
Let me thank you for bringing this issue to our attention.
The issue has been escalated internally to the dedicated team for further investigation and resolution (Ticket
227182 ). This is an internal tracking number and is not accessible or usable by customers.)
I will let you know when the issue is solved.
Thanks.
Mahmoud
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.