I'm working on USB host integration. In usb_khci_preinit() function i'm trying to allocate memory at run time using malloc.
I tried with OS_Mem_alloc_zero(sizeof(usb_khci_host_state_struct_t)); function as well as int *p=malloc(10);.
In both cases i got return value is 0. It means i unable to allocate memory.
I need some help to solve this problem.