Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Store data on PSRAM
PostPosted: Fri Mar 16, 2012 3:19 pm 
Offline

Joined: Fri Mar 16, 2012 2:47 pm
Posts: 6
Hello,

i want to store data, from the buffer, on the PSRAM. But i have no idea how. I`ve read that it works witch SMC or DMA but how? An example will be helpfull.

Thanks....


Top
 Profile  
 
 Post subject: Re: Store data on PSRAM
PostPosted: Fri Mar 16, 2012 3:29 pm 
Offline

Joined: Fri Mar 09, 2012 1:34 pm
Posts: 68
Hi!
First of all you need to check where the PSRAM is connected. Secondly you need to check the configuration in which the RAM works. There are a lot of factors in the formula. I'd strongly recommend to go to the documentation, which at the beginning seems to be anything but plain English. You have there also example configurations.

I attach an example project for the AT91SAM9263-EK board which worked for me.


Attachments:
PSRAM.rar [333.2 KiB]
Downloaded 24 times

_________________
Best regards
Przemyslaw Baranski
Top
 Profile  
 
 Post subject: Re: Store data on PSRAM
PostPosted: Fri Mar 16, 2012 4:04 pm 
Offline

Joined: Fri Mar 16, 2012 2:47 pm
Posts: 6
I don´t understand what your programm do. With which line/command I can write or push the data from one memory or buffer to an other one?

I have the SAM3S Board. There is no example for psram?


Top
 Profile  
 
 Post subject: Re: Store data on PSRAM
PostPosted: Fri Mar 16, 2012 9:29 pm 
Offline

Joined: Fri Mar 09, 2012 1:34 pm
Posts: 68
The whole point is that, if you setup your memory controller, you retrieve or store data by referring to its address

_________________
Best regards
Przemyslaw Baranski


Top
 Profile  
 
 Post subject: Re: Store data on PSRAM
PostPosted: Fri Mar 16, 2012 10:33 pm 
Offline

Joined: Sat Oct 30, 2010 6:04 pm
Posts: 784
ibodesouza wrote:
I don´t understand what your programm do. With which line/command I can write or push the data from one memory or buffer to an other one?

I have the SAM3S Board. There is no example for psram?


Most of the complexity is in the initialization, which depends on how it is attached to the bus.

Then you'd access it like any other SRAM on the part. You'd use pointers, memcpy, etc. And you could implement things like malloc/free to dynamically allocated space within it if you wanted to manage it.

From the compiler/toolchain perspective you could use a linker script or scatter file to describe the memory region within which the PSRAM is located.

The C runtime startup code (ie prior to main) could set up the memory.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron