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

variable definition in flash memory

Hello
How can i define a variable or string in flash memory in keil mdk 5 ?
Thanks.

  • Before going for advanced features like that, you should ask the question "how can I find the time to read the fine manual".

  • Probably the same way you would in any version of the tools?

    static const char foo[] = "I wish I'd read K&R, and other tomes more diligently";

    Then again if you want it to actually be "variable", flash is probably not the desired location.

    See also #pragma, attribute, AT, and assorted directives and scatter file options.