cancel
Showing results for 
Search instead for 
Did you mean: 

usbX host class under azrtos - Has anyone used this successfully?

matt-crc
Associate III

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

mattcrc_0-1741587773031.png

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)

mattcrc_1-1741587964774.png

The ST examples don't seem to run either. Any help would be greatly appreciated

0 REPLIES 0