Hi all,
I wrote a small simple program in C++ on OMAP3530 EVM, as shown below:
#include "stdio.h"
#include "stdlib.h"
void main()
{
int *p=NULL;
p=(int*)malloc(100000*sizeof(int));
if(p==NULL) printf("MALLOC ERROR\n");
else printf("%d\n",p);
free(p);
}
The address of pointer p is 40160098, which is between 0x40100000 and 401FFFFF, the reserved on-chip ROM/SRAM memory space. However, I suppose the target memory space should be off-chip, either DDR or Flash. No matter what number in blue I chose, the address of p remains the same. Which parts of memory do I actually use? On-chip SRAM or off-chip Flash/DDR? (I just feel weird that my test response for memory space is in a reserved range on the Technical Reference Manual, Table 2-1.)
Thanks a lot for your reply. I deeply appreciate your help.