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  [ 2 posts ] 
Author Message
 Post subject: SDRAM controller and DMA conflicts on AT91SAM9G45
PostPosted: Thu May 12, 2011 11:54 pm 
Offline

Joined: Thu May 12, 2011 11:34 pm
Posts: 6
Hello,

The sam9g45 I am using has a 32MB DDR2 chip. Some of my code executes out of this DDR memory, and there are at least 3 DMA transfers that access the memory during normal program execution (ISI, UDPHS, and sometimes the LCD controller).

I'm noticing sometimes that my data is getting corrupted on the ISI DMA transfer. I'm somewhat new to this so I'm trying to figure out what possible problems could be. I was actually quite surprised that the memory controller couldn't arbitrate these simultaneously without any errors (I would understand if it slowed down). Then again I could be messing up my memory settings or something else in my code. Maybe I just have to set something up?

Also I was just playing around with some of the registers in the DDRSDRC and Noticed the HS register. Does anyone have more documentation on what this register is used for? The prelim seems incomplete.


Top
 Profile  
 
 Post subject: Re: SDRAM controller and DMA conflicts on AT91SAM9G45
PostPosted: Fri May 13, 2011 2:10 am 
Offline

Joined: Thu May 12, 2011 11:34 pm
Posts: 6
I seem to have found one solution in the Bus MATRIX by changing the allowed burst length of the UDPHS Master from unlimited to <= 32 beats. It seems like you have a lot of control over the bus with this User Interface.

Anyone ever modify these values (or arbitration priorities) on their own projects? I would be interested to hear problems you did/didn't run in to.

Ben


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

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 8 guests


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