<?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>flash and eeeprom</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/28890/flash-and-eeeprom</link><description> 
hi 
my question is that: 
we have a constant that we want to store in program memory.is this
true: 

 
Code: 

 
const char c=&amp;quot;hi&amp;quot;; 
char a; 
a=c; 
printf(&amp;quot;a is %S&amp;quot;,c); 

 
and similar to it for eeprom data: 

 
Code: 

 
eeprom char c=&amp;quot;hi&amp;quot;; 
a=c; </description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: flash and eeeprom</title><link>https://community.arm.com/thread/84800?ContentTypeID=1</link><pubDate>Mon, 18 Jun 2012 01:23:25 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:eb2f75e7-ffc1-4d29-97c8-d6009aec9cad</guid><dc:creator>m geer</dc:creator><description>&lt;p&gt;&lt;p&gt;
Most variables are ultimately positioned into the memory. The
exceptions are non-auto variables which are qualified as &amp;#39;const&amp;#39;,
which are placed in the program, or &amp;#39;eeprom&amp;#39; qualified variables.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: flash and eeeprom</title><link>https://community.arm.com/thread/80327?ContentTypeID=1</link><pubDate>Sun, 17 Jun 2012 11:40:39 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:237b59f4-4ed2-4e34-9140-484262e25084</guid><dc:creator>xavir pemper</dc:creator><description>&lt;p&gt;&lt;p&gt;
mr per.&lt;/p&gt;

&lt;p&gt;
you gave a great answer and lots to learn. thanks.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: flash and eeeprom</title><link>https://community.arm.com/thread/67534?ContentTypeID=1</link><pubDate>Sun, 17 Jun 2012 11:30:34 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:1672d2ad-e670-45b0-9002-3c34b80d32a1</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
In C, a character variable stores one (1) character. Not a text
string.&lt;/p&gt;

&lt;p&gt;
&amp;quot;hi&amp;quot; is not a single character. &amp;#39;h&amp;#39; is a single character. &amp;#39;i&amp;#39; is
another character.&lt;/p&gt;

&lt;p&gt;
So you either need to play with character arrays (can&amp;#39;t be
assigned with &amp;#39;=&amp;#39; but requires copying element for element - either
directly or by using one of the available functions in the CRTL) or
play with pointers.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: flash and eeeprom</title><link>https://community.arm.com/thread/91588?ContentTypeID=1</link><pubDate>Sun, 17 Jun 2012 11:26:50 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:3ae3a472-6166-4239-9852-2d2cdc11be68</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
You are rather impatient: &amp;quot;bumping&amp;quot; your post after only half an
hour - and on a Sunday (weekend)!!&lt;/p&gt;

&lt;p&gt;
If you really want to improve your chances of getting a good
answer, you need to work on improving the information you provide,
and the presentation of your post:&lt;/p&gt;

&lt;p&gt;
&lt;a href="http://www.catb.org/~esr/faqs/smart-questions.html"&gt;www.catb.org/.../smart-questions.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
The forum gives specific instructions on how to post source code -
see this picture: &lt;a href="http://www.danlhenry.com/caps/keil_code.png"&gt;www.danlhenry.com/.../keil_code.png&lt;/a&gt;&lt;br /&gt;

But you haven&amp;#39;t followed that - why not?&lt;/p&gt;

&lt;p&gt;
You haven&amp;#39;t stated what toolset you&amp;#39;re using. The answer will
depend entirely on the toolset in question - so your question is
unanswerable without that information.&lt;/p&gt;

&lt;p&gt;
You also haven&amp;#39;t stated what chip you&amp;#39;re using - that could also
have a bearing on the answer.&lt;/p&gt;

&lt;p&gt;
&lt;i&gt;&amp;quot;we didnt find eeprom in manual but think it should be
in.&amp;quot;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
Not really. The tools don&amp;#39;t really care about specific memory
technologies; they just deal with address spaces.&lt;/p&gt;

&lt;p&gt;
Again, without knowing the particular toolset, it&amp;#39;s impossible to
give any specific comment.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: flash and eeeprom</title><link>https://community.arm.com/thread/60834?ContentTypeID=1</link><pubDate>Sun, 17 Jun 2012 10:45:36 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:a144a44c-bd50-47e6-860b-d3c6fb369f74</guid><dc:creator>xavir pemper</dc:creator><description>&lt;p&gt;&lt;p&gt;
bump&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>