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

Initialie ROM CRC byte

I can set a variable in the ROM area as following:
#define END_CODE_SIZE 0x3FFF
char code CRCbyte _at_ END_CODE_SIZE
How do I set its value to says 0xAA? I can do this:
char code CRCbyte = 0xAA;
Then The variable is not allocated to the END_OF_CODE.
Thanks for reading this.
HN

Parents
  • "One problem with doing this all within your C program is that your program does not know the correct CRC/checksum value."

    Yes, but many of us want to store compile time constants at specific addresses for a variety of reasons. We don't want to run separate utilities after the build, muck about with linker directives or resort to assembler.

    We just want to write:

    unsigned char code somebyte=0xaa _at_ 0x3fff;

    Please?

    Stefan

Reply
  • "One problem with doing this all within your C program is that your program does not know the correct CRC/checksum value."

    Yes, but many of us want to store compile time constants at specific addresses for a variety of reasons. We don't want to run separate utilities after the build, muck about with linker directives or resort to assembler.

    We just want to write:

    unsigned char code somebyte=0xaa _at_ 0x3fff;

    Please?

    Stefan

Children