| ??? 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. |
| Topic | Author | Date |
| 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 |



