sysRam and RET RAM map in DEEP SLEEP?

8 posts / 0 new
Last post
kurbylee
Offline
Last seen:3 years 5 months ago
Joined:2014-11-05 09:10
sysRam and RET RAM map in DEEP SLEEP?

HI,dialog
In url:http://support.dialog-semiconductor.com/faq/how-many-power-modes-are-sup...
你能找到这个词:在42 kb DeepSleep模式on-chip system RAM and part of the retention RAM are switched off to reduce the power consumption even further. After WakeUp the ARM needs to restore the program code to System RAM before to continue code execution.
Now,I have some question about this:
1>part of the retention RAM are switched off: what is the first address and last address of retention RAM be switched off?
2>is there any different if I change case 23 to case 1( EM size 2 kB, SysRAM size 48 kB),it mean that how lagre retention RAM will be always powered in case 1?
3>I noticed that ,in case 23, DESCRIPT_BUF located in 80000~82000 if REINIT_DESCRIPT_BUF is 0,
and DESCRIPT_BUF located in 82000~83000 if REINIT_DESCRIPT_BUF is 1,It seems that 82000~83000
will be powered off in deep sleep.If it is right ,is there other differents between case23 and case 7 except address range(23:80000~83000 + 80000000~80009800 case7:80000~82000 + 80000000~8000A800)
4>more generally,How i can finished this table(in deep sleep mode)
=============================== EM==================EM on================= EM off
0: EM size 0 kB, SysRAM size 42 kB=====X ====================X ====================X
1: EM size 2 kB, SysRAM size 48 kB===== 80000~807FF========= ? ==================== ?
2: EM size 3 kB, SysRAM size 47 kB
3: EM size 4 kB, SysRAM size 46 kB
4: EM size 5 kB, SysRAM size 45 kB
5: EM size 6 kB, SysRAM size 44 kB
6: EM size 7 kB, SysRAM size 43 kB
7: EM size 8 kB, SysRAM size 42 kB==== 80000~82000 =========== ? ================== ?
8: Reserved
9: EM size 4 kB, SysRAM size 40 kB
10: EM size 5 kB, SysRAM size 40 kB
11: EM size 6 kB, SysRAM size 40 kB
12: EM size 7 kB, SysRAM size 40 kB
13: EM size 8 kB, SysRAM size 40 kB
14: EM size 9 kB, SysRAM size 40 kB
15: EM size 10 kB, SysRAM size 40 kB
16: Reserved
17: EM size 6 kB, SysRAM size 38 kB
18: EM size 7 kB, SysRAM size 38 kB
19: EM size 8 kB, SysRAM size 38 kB
20: EM size 9 kB, SysRAM size 38 kB
21: EM size 10 kB, SysRAM size 38 kB
22: EM size 11 kB, SysRAM size 38 kB
23: EM size 12 kB, SysRAM size 38 kB

Device:
MT_dialog
Offline
Last seen:4 weeks 1 day ago
Staff
Joined:2015-06-08 11:34
Hi kurbylee,

Hi kurbylee,

1> Its up you to you to decide which of the 4 retention RAMs will stay powered and which will be powered down during sleep it doesn't depend on what case you are going to use. All the retention rams remain powered by default when going to sleep. The EM_MAP setting controls the memory map configuration and address decoding only.

2> Changing from case 1 to case 23 is making difference only where the exchanged memory is going to be located and not in how many retain rams are going to be retained. The power settings during sleep are controlled by the PMU_CTRL_REG[RETENTION_MODE] so someone can control which parts of the retained cells will be powered.

3> In case23 the addresses 0x80000 ~ 820000 is the retention ram meaning that the exchanged memory is not going to be reinitialized since that data are retained, the addresses 0x820000-0x830000 is the sysram and when in deep sleep the sysram is off so the data needs to be reinitialized.

Thanks MT_dialog

kurbylee
Offline
Last seen:3 years 5 months ago
Joined:2014-11-05 09:10
Hi,MT_dialog

Hi,MT_dialog
Thanks for your reply.But I am still confused with these RAMs(retention RAM,retain RAM,system RAM,EM_RAM).
OK,I can know from descript of Table 37: PMU_CTRL_REG (0x50000010) that there is 4 retention RAMs, but how much ervery retention RAM is?
May be 2K,total 8K(4*2K),but how to control these ram in case 3(2: EM size 3 kB, SysRAM size 47 kB).I guess that is diff concept,so there is still 8K retRAMs and 42K in case 3.Howerver , I found these words in page 145 of datasheet 3.1 :(Table 282: DC characteristics)
Typical boost-applica-tion in extended-sleep mode with 42 kB (Sys-RAM) and 1 kB (RetRAM)
Now,my question is how to get 1K RetRAM powered on if every one is 2K?

MT_dialog
Offline
Last seen:4 weeks 1 day ago
Staff
Joined:2015-06-08 11:34
Hi kurbylee,

Hi kurbylee,

The Ret. RAM4 is 1KB in size. You can check the size of the 580 retention RAMs in the block diagram at page 3 on the datasheet. As i ve mentioned in my previous post the selection of the EM mapping doesn't affect the amount of ret rams that will stay on or used. And you can either power down or power up your retention RAMs by the register PMU_CTRL_REG[RETENTION_MODE]. But you cant have only 1K of retention RAM active since only the ROM code need about 2K of retention area. What is mentioned in the datasheet was only applicable for measurements and not possible for real life applications.

Thanks MT_dialog

kurbylee
Offline
Last seen:3 years 5 months ago
Joined:2014-11-05 09:10
questions:

questions:
1>In bootloader scatter file,use case 7,we can find that load address = execution address=0x00000000;
----In da14580_common scatter file ,use case 23,we can find that load address = execution address=0x20000000;
Q:Why use different address base?

THS!

MT_dialog
Offline
Last seen:4 weeks 1 day ago
Staff
Joined:2015-06-08 11:34
Hi kurbylee,

Hi kurbylee,

There is no particular reason that the secondary bootloader is located in address 0x0000 it can be also located in address 0x20000000.

Thanks MT_dialog

gayan_gamage
Offline
Last seen:4 years 8 months ago
Joined:2016-04-28 21:23
Hi, Is there a possibility to

Hi, Is there a possibility to control what goes in to the ram after wake up from sleep. For example, I was wondering whether the SUOTA module could be not loaded depending on whether the advertising is non connectable. It will have to be loaded when the advertising is changed to connectable undirected

MT_dialog
Offline
Last seen:4 weeks 1 day ago
Staff
Joined:2015-06-08 11:34
Hi gayan_gamage,

Hi gayan_gamage,

设备,在延长睡眠不复制the OTP's content, since the sysram is kept powered, there is no mirroring in extended sleep mode. In deep sleep the whole memory is copied into the sysram after each wake up and there is no possibillity to control this. An idea about loading different fw (this requires a reset and not just wake up from sleep) to the device would be to modify the secondary bootloader and let the him to decide (by reading a specified address in the flash) which binary should be loaded. The one binary should have your project and the other binary should have a simple project with only the SUOTA profile. So when triggering the connectable mode, set the specified address in the flash, that indicates that the device has switched operation (non-connectable to connectable), and reset the device. After reset the secondary bootloader will execute and will read that variable that you have set and load the appropriate image.

Thanks MT_dialog