USBX Mutex does not work - CubeMX code generator BUG
Hello, I'm trying to implement a USBX host... and the code generates a lot of runtime errors. I assume everything is setup properly from CubeMX, but the code always fails.

1- I see that the mutex was created from the debug session: (ux_system_mutex)

2- the system fails when trying to initialize the UX system.

3- The error came from _ux_utility_mutex_on() and generates an error code 0x04
VOID _ux_utility_mutex_on(UX_MUTEX *mutex)
{
UINT status;
/* Call ThreadX to get system mutex. */
status = tx_mutex_get(mutex, TX_WAIT_FOREVER);
/* Check for status. */
if (status != UX_SUCCESS)
{
/* Error trap. */
_ux_system_error_handler(UX_SYSTEM_LEVEL_THREAD, UX_SYSTEM_CONTEXT_UTILITY, status);
}
/* Return to caller. */
return;
}so, it is trying to get the mutex (ux_system_mutex) and then wait forever....
4- If I look at the AzRTOS manual: 0x04

5- The base code was auto generated by CubeMX. So basically it is trying to initialize memory using a mutex before starting the threads....
6- to make matters worse, the error code (status) is not passed to the calling function properly, so it took a lot of time to find this problem, and the ux_error_handlers does absolutely nothing (ie no while(1))
