Skip to main content
smcsherry
Associate
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

smcsherry
smcsherryAuthor
Associate
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;

luca239955_st
Associate 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)

smcsherry
smcsherryAuthor
Associate
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.