On Tue, 03 Apr 2012 09:48:38 +0200
[email protected] wrote:

> Thank you ALL for the replies.
> No, I have NOT initialized the SDRAM controller? 
> How can I do that?
> Or where can I find out more details or any samples/tutorials?
> Thanks

I don't have an example of a more complex uC at hand, but our
SAM7 (arm7 based uC) initialization looks like this:

---schnipp---
mww 0xfffffd44 0x00008000       # disable watchdog
mww 0xfffffd08 0xa5000001       # enable user reset
mww 0xfffffc20 0x00000601       # CKGR_MOR : enable the main 16 MHz oscillator
sleep 1
mww 0xfffffc2c 0x00471c0c       # CKGR_PLLR: 16 MHz / 12 * (71+1) = 96.0 MHz
sleep 1
mww 0xfffffc30 0x00000007       # PMC_MCKR : MCK = PLL / 2 ~= 48 MHz
sleep 1
mww 0xffffff60 0x00480100       # MC_FMR: flash mode (FWS=1,FMCN = 72 = MCK 
cycles per 1.5 us)
---schnapp---

What you generally do is, look up what you have to initialize, look
up which registers you have to write and assemble the mww lines. Keep
in mind that some operations need a certain wait time after the register
has been written in order for the uC/uP to settle (see the various sleep's
above).

Oh, and keep also in mind that the initialization you have to do is
SoC _and_ board dependend!


                                Attila Kinali


-- 
The trouble with you, Shev, is you don't say anything until you've saved
up a whole truckload of damned heavy brick arguments and then you dump
them all out and never look at the bleeding body mangled beneath the heap
                -- Tirin, The Dispossessed, U. Le Guin

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to