Skip to main content
Visitor II
January 17, 2007
Question

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

  • January 17, 2007
  • 2 replies
  • 943 views
Posted on January 17, 2007 at 05:26

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

    This topic has been closed for replies.

    2 replies

    Visitor II
    January 17, 2007
    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 ]

    Visitor II
    January 17, 2007
    Posted on January 17, 2007 at 05:26

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

    Regards,

    Luca (Cosmic)