Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/11/07 13:19
Read: times


 
#148071 - Answer explained:
Responding to: ???'s previous message
In short:

You cannot use the _at_ keyword and initialize the variable at the same time. Even if the variable is in code memory. (Yes, I think this is something Keil should implement in one of their next revisions).

What you need to to is initialize the variable in your code, and do not use the _at_ keyword. Then use the linker to locate the variable to where you need it.

List of 11 messages in thread
TopicAuthorDate
How to initialize Absolute variables in code mem?            01/01/70 00:00      
   The answer is here            01/01/70 00:00      
      Answer explained:            01/01/70 00:00      
         this is something Keil should implement            01/01/70 00:00      
            why do you need this?            01/01/70 00:00      
               Example            01/01/70 00:00      
                  OK, I accept            01/01/70 00:00      
   Why?            01/01/70 00:00      
   I would fall back to assy here            01/01/70 00:00      
      Not exactly true            01/01/70 00:00      
         Linker segments            01/01/70 00:00      

Back to Subject List