Hi
Sorry, I did not make my question well.
I'm using SDRAM memory on Imote2 and I want to ask something:
If we define a variable like this
unsigned int *variable __attribute__((section(.sdram)));
and if I make the following,
#define SIZE 33023
variable = (unsigned int*)malloc(SIZE);
Hi
I'm using SDRAM memory on Imote2 and I want to ask something:
If we define a variable like this
unsigned int *variable __attribute__((section(.sdram)));
and if I make the following,
variable = (unsigned int*)malloc(sizeof(unsigned int));
Where is that memory stored? in the SRAM or
I'm not intimately familiar with the pxa27x architecture, but in
general, when you call malloc(), you have no control over where the
memory is allocated from. The memory should be automatically allocated
in either the local SRAM or SDRAM (depending on how the memory
controller operates).