<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Battery RAM not saving data</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/25257/battery-ram-not-saving-data</link><description> 
Having problem with Battery RAM area 0xE0084000 - 0xE00847FF. Have
32 data stored there, but it is lost when power is removed. 
Vbat is connected and battery voltage is good. RTC retains date &amp;amp;
time data just fine. 

 
Made sure the Linker Scatter file</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Battery RAM not saving data</title><link>https://community.arm.com/thread/144652?ContentTypeID=1</link><pubDate>Fri, 19 Jun 2009 01:46:43 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:278f2b36-c761-462e-8598-934e16d5ee08</guid><dc:creator>fabrice larat</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hi,&lt;br /&gt;
I have the same problem.&lt;br /&gt;
But I have found this link:&lt;br /&gt;
&lt;a href="http://www.keil.com/support/docs/3290.htm"&gt;http://www.keil.com/support/docs/3290.htm&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
For me, now it&amp;#39;s work.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Battery RAM not saving data</title><link>https://community.arm.com/thread/142338?ContentTypeID=1</link><pubDate>Tue, 16 Jun 2009 06:28:09 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:7749f2ed-546d-463b-a756-3dc905128d12</guid><dc:creator>Walter Gazdzik</dc:creator><description>&lt;p&gt;&lt;p&gt;
Seems that when the Battery RAM area is allocated with linker, the
area is set for zero-init (ZI). When I removed all reference for
allocation (in scatter file), it now works, but I get a warning on
the linker that no algorithm found for the Battery RAM area. ..... go
figure?&lt;/p&gt;

&lt;p&gt;
To all, the help is appreciated!&lt;/p&gt;

&lt;p&gt;
W.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Battery RAM not saving data</title><link>https://community.arm.com/thread/139200?ContentTypeID=1</link><pubDate>Tue, 16 Jun 2009 06:04:25 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:ff3621ce-9714-4046-93d2-eb026f1e15dc</guid><dc:creator>author king</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hi,&lt;/p&gt;

&lt;p&gt;
zero-init section?&lt;/p&gt;

&lt;p&gt;
yes, i think you must check the scatter file.&lt;/p&gt;

&lt;p&gt;
Always yo&amp;#39;re freind,&lt;/p&gt;

&lt;p&gt;
Zeusti.&lt;/p&gt;

&lt;p&gt;
(Now in partnership with Laramy Spart)&lt;br /&gt;
&amp;quot;Writing more software for humans&amp;quot;&lt;/p&gt;

&lt;p&gt;
eges pizza base and fries wi&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Battery RAM not saving data</title><link>https://community.arm.com/thread/130491?ContentTypeID=1</link><pubDate>Tue, 16 Jun 2009 05:58:16 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:f6f94d99-f085-4635-a48d-b829b81269ca</guid><dc:creator>Walter Gazdzik</dc:creator><description>&lt;p&gt;&lt;p&gt;
At first i thought it was cleared after powerup, but now I see it
cleared after reset. I do not initialize the variable at this memory
address. Somehow it looks like this area is zero-init, although I
directly specify as UNINIT in the scatter file.&lt;/p&gt;

&lt;p&gt;
Thanks,&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Battery RAM not saving data</title><link>https://community.arm.com/thread/125534?ContentTypeID=1</link><pubDate>Tue, 16 Jun 2009 05:55:22 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:fcf163c0-db67-4ffd-a483-5e0ba27f2835</guid><dc:creator>author king</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hi,&lt;/p&gt;

&lt;p&gt;
is it clear&amp;#39;d by the startup assembly?&lt;/p&gt;

&lt;p&gt;
so does a reset clear it or just a power down and up?&lt;/p&gt;

&lt;p&gt;
Always yo&amp;#39;re freind,&lt;/p&gt;

&lt;p&gt;
Zeusti.&lt;/p&gt;

&lt;p&gt;
(Now in partnership with Laramy Spart)&lt;br /&gt;
&amp;quot;Writing more software for humans&amp;quot;&lt;/p&gt;

&lt;p&gt;
+745 n203&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Battery RAM not saving data</title><link>https://community.arm.com/thread/115023?ContentTypeID=1</link><pubDate>Tue, 16 Jun 2009 05:40:18 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:f7d38fa0-c03c-4215-bf5b-6e5a861bce0b</guid><dc:creator>Walter Gazdzik</dc:creator><description>&lt;p&gt;&lt;p&gt;
Yes its a LPC2378 device.&lt;/p&gt;

&lt;p&gt;
Sounds simple enough. I&amp;#39;m just stumped on this one. When processor
is reset the memory vars are set to zero. Any thoughts are
appreciated.&lt;/p&gt;

&lt;p&gt;
Can you show me how you allocate your struct to this memory
area?&lt;/p&gt;

&lt;p&gt;
Thanks,&lt;/p&gt;

&lt;p&gt;
My linker map looks as follows: kw_hr 0xe0084000 Data 4
batsram.o(.data) kw_sec 0xe0084004 Data 4 batsram.o(.data)&lt;/p&gt;

&lt;p&gt;
Execution Region RW_IRAM4 (Base: 0xe0084000, Size: 0x00000008,
Max: 0x000007ff, ABSOLUTE, UNINIT)&lt;/p&gt;

&lt;p&gt;
Base Addr Size Type Attr Idx E Section Name Object&lt;/p&gt;

&lt;p&gt;
0xe0084000 0x00000004 Data RW 708 .data batsram.o 0xe0084004
0x00000004 Data RW 709 .data batsram.o&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Battery RAM not saving data</title><link>https://community.arm.com/thread/103196?ContentTypeID=1</link><pubDate>Mon, 15 Jun 2009 14:38:56 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:9412aad7-b3bd-4787-802a-0e2de1a61399</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
For some reason you seem to have missed mentioning what chip, but
it seems to be a NXP LPC23xx chip.&lt;/p&gt;

&lt;p&gt;
I haven&amp;#39;t had any problems with memory retention. I have never
bothered to add this memory area in the project or scatter file. I
just set a struct pointer to this address and take everything from
there. A bit of validation with CRC etc to decide if the memory is
valid or not.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Battery RAM not saving data</title><link>https://community.arm.com/thread/77516?ContentTypeID=1</link><pubDate>Mon, 15 Jun 2009 12:28:36 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:5032d14a-23a3-4df3-b642-282cb43ae1c8</guid><dc:creator>Walter Gazdzik</dc:creator><description>&lt;p&gt;&lt;p&gt;
Yes, I set the data on 32 bit boundry. I can read the data in a
memory window when debug and it is OK.&lt;/p&gt;

&lt;p&gt;
It seems the data is being zero&amp;#39;d when the processor is reset, not
just when power is turned off. Somehow this memory area is being
zero-initialized.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Battery RAM not saving data</title><link>https://community.arm.com/thread/56265?ContentTypeID=1</link><pubDate>Mon, 15 Jun 2009 12:13:49 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:f5377021-8fe9-45d6-952c-7b6ba29049db</guid><dc:creator>Tamir Michael</dc:creator><description>&lt;p&gt;&lt;p&gt;
this zone is only word-wise (32-bit) addressable. have you taken
that into account?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>