tags:

views:

47

answers:

2

For power management we have to put system in deep sleep(system sleep) mode and for this we have to put SDRAM in self refresh mode. Can anyone tell the steps to set SDARM in self refresh mode.

I tried SDRAM configuration register's ,I found that the SDRAM do goes to self-refresh mode[we probed the SD clk out] however system crashes in some scenarios while coming out of sleep.

A: 

First of all you need to read the specs on the SDRAM as well on the CPU on how the system behaivs on entering and exiting sleep. This question does not have any universial awnser. Not enough information. But often delays and timing information in the CPU is a good hint. eg increase delays and give it another go.

eaanon01
I have gone through the Spec and followed the same procedure. However while coming out of Self-refresh mode ,we are seeing crash.
pdssn
+1  A: 

The datasheet for the SDRAM chips should specify the exact sequence for putting the chips into self-refresh (might be in the JEDEC specs). Have you probed all of the control signals going to the SDRAM chips? Verify that the chips are really being told to go into self refresh mode.

If the chips aren't being put into self refresh properly, then you have a problem with your "go to sleep" code.

After that, make sure you are exiting self-refresh properly when your processor hits the resume vector (verify it with a scope). There may be some re-initialization steps you are missing.

If the above are both handled correctly, then you are crashing for a different reason. Some device probably lost some context that you didn't preserve. Power supply sequencing could be another cause (some device is still powered down).

msemack
Thanks msemack, I have probed all control signals of SDRAM which really helped.
pdssn