AnsweredAssumed Answered

Malloc failed in RT1060-EVK project CSI_RGB565

Question asked by 文 钟 on Nov 9, 2018
Latest reply on Nov 13, 2018 by CarlosCasillas

Hi,

We are evaluate RT1060 performance with RT1060 evk.

The first step we have to do now is to use the OV7725 and caputre the YUV422 data.Then extract the Y data to the buff. So will use malloc to apply for a buffer, and the buffer address should be in 0x8000xxxx。

There is no problem when using malloc(100), but malloc(480*272) will fail. With print, malloc(480*272) return 0, but malloc(100) will return 0x80000300. Our project base on the example CSI_RGB565 build with IAR ,and configuration is sdram_debug. Evk board have 256Mbit SDRAM, what cause this issuse happend?

Did I not open SDRAM in the code?

In fsl_commom.c, there is SDK_Malloc but the same result. Do I create memory management myself? 

 

uint8_t *recontent =(uint8_t*)malloc(100);
uint8_t *src = (uint8_t*)malloc(480*272);
printf("recontent 0x%x\r\n",recontent);
printf("src 0x%x\r\n",src);

 

 

thanks !

Outcomes