This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

flash and eeeprom

hi
my question is that:
we have a constant that we want to store in program memory.is this true:

Code:

const char c="hi";
char a;
a=c;
printf("a is %S",c);

and similar to it for eeprom data:

Code:

eeprom char c="hi";
a=c;
printf("a is %S",c);

we didnt find eeprom in manual but think it should be in.

Parents
  • You are rather impatient: "bumping" your post after only half an hour - and on a Sunday (weekend)!!

    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:

    www.catb.org/.../smart-questions.html

    The forum gives specific instructions on how to post source code - see this picture: www.danlhenry.com/.../keil_code.png
    But you haven't followed that - why not?

    You haven't stated what toolset you're using. The answer will depend entirely on the toolset in question - so your question is unanswerable without that information.

    You also haven't stated what chip you're using - that could also have a bearing on the answer.

    "we didnt find eeprom in manual but think it should be in."

    Not really. The tools don't really care about specific memory technologies; they just deal with address spaces.

    Again, without knowing the particular toolset, it's impossible to give any specific comment.

Reply
  • You are rather impatient: "bumping" your post after only half an hour - and on a Sunday (weekend)!!

    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:

    www.catb.org/.../smart-questions.html

    The forum gives specific instructions on how to post source code - see this picture: www.danlhenry.com/.../keil_code.png
    But you haven't followed that - why not?

    You haven't stated what toolset you're using. The answer will depend entirely on the toolset in question - so your question is unanswerable without that information.

    You also haven't stated what chip you're using - that could also have a bearing on the answer.

    "we didnt find eeprom in manual but think it should be in."

    Not really. The tools don't really care about specific memory technologies; they just deal with address spaces.

    Again, without knowing the particular toolset, it's impossible to give any specific comment.

Children
No data