Part Number:CC3200
Tool/software: TI-RTOS
Hi ,
I am using the CC32000 launchpad and writing the handlers function in http server side , i am allocating the memory dynamically for the pointer using below piece of code
defined the globally the pointer type like this way
uint8_t *get_buffer1 ;
uint8_t get_buffer_1[1500];
And allocating the memory in handler function .
get_buffer1 = (uint8_t *)malloc(sizeof(get_len_buffer1));
if(get_buffer1== NULL)
{
printf("\n can not allocate memory using MALLOC \n");
exit(0);
}
but while executing the application this is getting failed and stuck in this function , and allocated size is coming 4 only if i take the print of get_buffer1 size.??
if i will reduce the size for malloc like 200-300 byte this will execute but for more bytes its failing .
i have increased the Heap size in RTOS configure file also
#define configUSE_PREEMPTION 1
#define configUSE_IDLE_HOOK 1
#define configUSE_TICK_HOOK 0 // 1
#define configCPU_CLOCK_HZ ( ( unsigned long ) 80000000 )
#define configTICK_RATE_HZ ( ( TickType_t ) 1000 )
#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 150 )
#define configTOTAL_HEAP_SIZE ( ( size_t ) (15000) ) //8000 /*PREVIOUS ALLOCATION OF HEAP*/
#define configMAX_TASK_NAME_LEN ( 12 )
#define configUSE_TRACE_FACILITY 1
#define configUSE_16_BIT_TICKS 0
but still its getting stuck , i am using the RTOS 7.3 version .
so please help in this regards
also i am running the single function at the moment not allocating memory dynamically in other place.
so we can not take more then 1000 byte size while allocating memory using malloc.