AnsweredAssumed Answered

Memory allocation using malloc/calloc problem in USB Stack

Question asked by vikash kuamr on Mar 27, 2017
Latest reply on Mar 27, 2017 by Bob Paddock

Hi,

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.

Outcomes