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

How to declare and assign variables in ROM to an specific address

Parents
  • "It would seem that many users want the feature"

    I know; I raised that very point on this forum a while ago:
    http://www.keil.com/forum/docs/thread1163.asp

    And again here:
    http://www.keil.com/forum/docs/thread856.asp

    "and that we all imagine that it cannot really be all that difficult to implement."

    I believe that the Raisonance compiler does it already - so why can't Keil!?

    "However, the most annoying thing is that that Keil does not seem to be listening."

    Yes, that is very annoying.

    "Is the demand real?"

    I think we've already answered that one!

    At the very least, as I've said before, the workaround should be properly documented in the manual - not hidden away in some App Note or Knowledgebase article.

Reply
  • "It would seem that many users want the feature"

    I know; I raised that very point on this forum a while ago:
    http://www.keil.com/forum/docs/thread1163.asp

    And again here:
    http://www.keil.com/forum/docs/thread856.asp

    "and that we all imagine that it cannot really be all that difficult to implement."

    I believe that the Raisonance compiler does it already - so why can't Keil!?

    "However, the most annoying thing is that that Keil does not seem to be listening."

    Yes, that is very annoying.

    "Is the demand real?"

    I think we've already answered that one!

    At the very least, as I've said before, the workaround should be properly documented in the manual - not hidden away in some App Note or Knowledgebase article.

Children
  • Keil already has this feature in the '167 toolset. The command line 'ASSIGN' function to the linker creates a public symbol with a numeric value which can be used to fill an unresolved symbol. Maybe the problem is that nobody uses the '51 (just joking).
    Best luck

  • LX51 (but not BL51) has this option but, from the description in the manual, I don't think it's quite what this question is after: it assigns an address to an unresolved symbol.

    The question, if I understand correctly, wants to assign a specific value and a specific address to a symbol?

    Standard 'C' initialisation can do the value, and Keil's _at_ extension can do the address, but C51 - for some unknown reason - won't let you use the two together :-(

    We await a reply from Keil to tell us why this is so...
    (as Graham noted, we've been waiting some time...)