Skip to main content
smcsherry
Associate
Feb 21, 2008 1:07 PM UTC
Question

Storing variable in flash location using Cosmic Compiler

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
Feb 20, 2008 5:44 AM UTC
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
Feb 21, 2008 4:45 AM UTC
Posted on February 21, 2008 at 05:45

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

Regards,

Luca (Cosmic)

smcsherry
smcsherryAuthor
Associate
Feb 21, 2008 1:07 PM UTC
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.