cancel
Showing results for 
Search instead for 
Did you mean: 

Help for : define a fixed address for a constant value in Cosmic C

mailtoarup
Associate II
Posted on January 17, 2007 at 05:26

Help for : define a fixed address for a constant value in Cosmic C

2 REPLIES 2
mailtoarup
Associate II
Posted on January 17, 2007 at 02:25

Dear Sir,

I am using ST72F264 as mcu. and using cosmic C.

I have created two .h files for declaring variables : public and external

Var_ext.h:

************

extern const unsigned char var1;

Var_pub.h:

************

const unsigned char var1 = 'A';

and i want to fix the location of variable var1 at say ,0xe010;

How to achieve this in Cosmic C ?? I can't use var1 @0xE010 ;

as need to declare it constant.

Pls help

regards,

Arup

[ This message was edited by: arup on 17-01-2007 08:21 ]

luca239955_st
Associate III
Posted on January 17, 2007 at 05:26

http://www.cosmicsoftware.com/faq/faq3.php

Regards,

Luca (Cosmic)