How to initial SDRAM with AT91SAM9G20

Microchip in-system programming solution: SAM-BA

Moderators: nferre, fab

BrilliantDT
Posts: 3
Joined: Thu Mar 19, 2015 5:01 am

How to initial SDRAM with AT91SAM9G20

Thu Mar 26, 2015 11:02 am

I use J-Link to initial two SDRAMs with AT91SAM9G20. An example follows:
monitor writeu32 0xFFFFEF1C = 0x2 // Enable EBI chip select for the SDRAM
monitor writeu32 0xFFFFF870 = 0xFFFF0000 // Enable PC16-PC31 pins
monitor writeu32 0xFFFFF874 = 0x00000000 // Enable PC16-PC31 pins
monitor writeu32 0xFFFFF804 = 0xFFFF0000 // Enable PC16-PC31 pins
monitor writeu32 0xFFFFEA08 = 0xF7339375 // SDRAM configuration for 32MB: Change this one if the SDRAM Size changes
What does 0xFFFFEF1C, 0xFFFFF870, 0xFFFFF874, 0xFFFFF874, 0xFFFFEA08 refer to? I checked the datasheet of AT91SAM9G20, but can not find them. Thanks for detailed instructions.
blue_z
Location: USA
Posts: 1549
Joined: Thu Apr 19, 2007 10:15 pm

Re: How to initial SDRAM with AT91SAM9G20

Fri Mar 27, 2015 9:27 pm

Those are memory addresses.
Study the memory map of the SoC datasheet, and you'll find that those particular addresses correlate to peripheral registers (as device registers are memory mapped in ARM processors).

Regards

Return to “SAM-BA”

Who is online

Users browsing this forum: No registered users and 2 guests