how to place a constant at a fixed address in flash
Company  
ST Home | Microcontrollers

Index  »  ST7  »  how to place a constant at a fixed address in flash
     
   how to place a constant at a fixed address in flash
 Moderated by :   »  Jatin  -  laubey  -  Setler

Author
beginning argument    ( Replies received: 2 )
Spectre   Posted 23-09-2008 at 08:49   



Registered on :
11-06-2005

From Italy

Messages : 147

 OFF-Line

I need for crc computation on flash to do the following (for example):

The crc flash calculation will stards from 8002h to FFFFh.
The results will be compared with the 16bit one at 8000h.

(I need to place the 16 bit result from 8000h to 8002h for exclude it from the crc calculation.)


In assembly language I used to declare it in the following way.
--------------------------------------------------------------------------
crc segment code at 8000h ;Segment for crc constant
aseg crc
crc_rom: DW 21DAh ;Result of the crc computing.


Question is: How Can I declare my crc result in cosmic C language ?

Thanks for the reply

Spectre





 Profile   Quote  
_luca   Posted 23-09-2008 at 10:15   



Registered on :
01-21-2004

From France

Messages : 199

 OFF-Line

the Cosmic toolchain provides automatic CRC generation and checking using function libraries especially developed for that: please check in the manual how to use it.

Regards,

Luca (Cosmic)




 Profile   Quote  
Spectre   Posted 23-09-2008 at 10:39   



Registered on :
11-06-2005

From Italy

Messages : 147

 OFF-Line

Thanks Luca

Bye bye




 Profile   Quote  
On Top

Search in the forums
 
Jump To