MCF5271 runnig from SDRAM

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MCF5271 runnig from SDRAM

1,141 Views
CM601
Contributor I
Hello,
I have a custom board with the MCF5271 and Micron MT48LC4M32B2 SDRAM chip.
The memory test is working fine, i am able to read and write the whole memory, but when i try to run code from the SDRAM WITH cache enabled the program freeze after reaching the code above the first 1MB. With disabled cache it is executing code properly.
Labels (1)
0 Kudos
1 Reply

326 Views
ynaught
Contributor III
Hi,
 
Search for the thread "SDRAM configuration help"
 
I had problems on my board that may be from the same misconfiguration.  In my case, all was well until I did a movem.l instruction, popping many registers off the stack.
 
The punchline was that I had configured the RAM for CAS2 and the CPU for CAS3 (or something like that); essentially because the table headers describing the SDRAM controller were confusing.
 
So... all worked well until the CPU and RAM got a chance to burst some data, then it screwed all up.  Sounds similar to what you're describing.
 
Good luck!
0 Kudos