Skip to main content
Associate III
June 11, 2024
Question

initialization Error on USBX

  • June 11, 2024
  • 1 reply
  • 1088 views

Hello,

I'm encountering an error during USBX initialization.

Inside the _ux_device_stack_initialize function:

 

memory =  _ux_utility_memory_allocate(UX_NO_ALIGN, UX_REGULAR_MEMORY, sizeof(UX_SLAVE_CLASS) * UX_MAX_SLAVE_CLASS_DRIVER);

 

When executing the _ux_utility_memory_allocate function, the error occurs at:

_ux_system_mutex_on(&_ux_system -> ux_system_mutex);

 

What could be causing this error?

 

1 reply

DBELL.1
ST Employee
June 28, 2024

Hello,
I'm using the Ux_Device_HID_A7 application and I have no probleme with:
memory = _ux_utility_memory_allocate(UX_NO_ALIGN, UX_REGULAR_MEMORY, sizeof(UX_SLAVE_CLASS) * UX_MAX_SLAVE_CLASS_DRIVER);

 

the buffer is properly set at the right address in the DDR RAM.
 

Did you run the DDR init FW before using this application (also in the debug configuration, "monitor reset" must be removed when launching Ux_Device_HID_A7) ?

 

rgds,
David B.