| ??? 05/10/02 18:51 Read: times |
#22839 - Keil C51: Absolute code-address |
Does anyone knows a methode, to declare a const struct in code-space at a specific CODE address in Keil C51? Background: I use a philips 87LPC767-MC and i want to store some code-revision-info in the 32Byte customer code space. I will define a C-Structure like typedef struct { unsigned char uc_software_code; unsigned char uc_main_version; unsigned char uc_sub_version; unsigned long ul_checksum; } CodeRefInfo_ts; CodeRefInfo_ts tsCodeRefInfo= { 0x04, 0x01, 0x01, 0x012345678 } at 0xFC0E; But it seems it is not possible to use the at-Keyword to locate a struct in the codespace?! Any suggestion? Thanks Markus |
| Topic | Author | Date |
| Keil C51: Absolute code-address | 01/01/70 00:00 | |
| RE: Keil C51: Absolute code-address | 01/01/70 00:00 | |
| RE: Keil C51: Absolute code-address | 01/01/70 00:00 | |
| RE: Keil C51: Absolute code-address | 01/01/70 00:00 | |
| RE: Keil C51: Absolute code-address | 01/01/70 00:00 | |
RE: Keil C51: Absolute code-address | 01/01/70 00:00 |



