2025-03-09 11:31 PM
Hello,
Has anyone used the USBX host code in AzRtos (not standalone)? The system seems very flaky, and when I looked into it, it seems the Variable: _ux_system_host in file ux_host_stack_initialize.c is never initialized.
/* Defined USBX host variables. */
UX_SYSTEM_HOST *_ux_system_host;
So the pointer to this structure = 0, which happens to be pointing at the memory location for the ITCMRAM
ITCMRAM (xrw) : ORIGIN = 0x00000000, LENGTH = 64K
Was the intent to run USBX with no cache, and leave the _ux_system_host structure in the ITCM RAM, or am i missing some initialization routine?
Obviously, with this data structure in the ITCMRAM, it would explain why the system is flaky when the ICACHE is turned on. However, I'm still not able to get the USB_host up and running properly even with the icache off. (a lot of bus faults due to incorrect callback pointers in this structure)
The ST examples don't seem to run either. Any help would be greatly appreciated