Skip to main content
Visitor II
February 21, 2008
Question

Storing variable in flash location using Cosmic Compiler

  • February 21, 2008
  • 3 replies
  • 913 views
Posted on February 21, 2008 at 14:07

Storing variable in flash location using Cosmic Compiler

    This topic has been closed for replies.

    3 replies

    smcsherryAuthor
    Visitor II
    February 20, 2008
    Posted on February 20, 2008 at 06:44

    Hi,

    Does anybody know how to store a variable at a fixed flash location using the Cosmic compiler. I've tried using the following which does

    not seem to work.

    volatile const u16 Checksum_Calc @0xE011;

    Visitor II
    February 21, 2008
    Posted on February 21, 2008 at 05:45

    it should work, why do you say it doesn't?

    Regards,

    Luca (Cosmic)

    smcsherryAuthor
    Visitor II
    February 21, 2008
    Posted on February 21, 2008 at 14:07

    Thanks for replying.

    I assign a number to Checksum_Calc in my application and build it. When I look at the hex file the checksum does not seem to be in the location I specify.