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). It depends on how the SRAM(local) memory is set up (if it attempts to cache the external SDRAM or not, etc). Unfortunately that is the best information I can give you as I don't have the hardware, and all the information I have provided you I found through searching. If you have further questions about the imote2, there does exist a mailing list:

http://enl.usc.edu/pipermail/t2-imote2/

where you can ask your questions. Probably the person you want to contact about tinyos specific to imote2 is Robbie Adler (his contact information should be available in the list archives). It seems like he has been making significant contributions to the imote2 in Tinyos 2.x.

-Paul


David Rodenas Herráiz wrote:

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);
Where is that memory stored? in the SRAM or SDRAM?

Thanks

David
------------------------------------------------------------------------
¡Windows Phone ya está aquí! Mucho más que un teléfono. ¡Hazte con uno! <http://www.windowsphone.com/spain>
------------------------------------------------------------------------
Hasta las ovejas de Sietes son expertas en Windows 7. ¡Conócelas! <http://www.sietesunpueblodeexpertos.com/>
------------------------------------------------------------------------

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to