cancel
Showing results for 
Search instead for 
Did you mean: 

Storing variable in flash location using Cosmic Compiler

smcsherry
Associate II
Posted on February 21, 2008 at 14:07

Storing variable in flash location using Cosmic Compiler

3 REPLIES 3
smcsherry
Associate II
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 III
Posted on February 21, 2008 at 05:45

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

Regards,

Luca (Cosmic)

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