Technical discussions about the TI c24x DSPs (including the C2401A, C2402A, C2403A, C2406A, F2401, F2402, F2403, F2406, and F2407).
Hello,
I need to calculate the CRC_16 of my flash. I have the routins and I know the way to do it. I
just have a problem: I need to save into flash a CRC_TABLE to calculate a fast CRC_16 and I
need to put the result in a known location of memory.
I declarate the CRC table as a const (so in flash, see below map memory)
To save the CRC I use de pragma diective as:
#pragma DATA_SECTION (crc_16_ccitt, "sec_crc");
unsigned int crc_16_ccitt;
Map of memory:
MEMORY
{
PAGE 0 : VECTORS: origin = 0h , length = 40h CODE : origin =
44h , length = 07F00h
CRC : origin = 07F44h, length = 1h /* CRC_16 */
PAGE 1 : MMRS : origin = 0000h , length = 060h /* MMRS */
DARAM_B2: origin = 0060h , length = 020h /* DARAM */
DARAM_B0: origin = 0200h , length = 0100h /* DARAM */
DARAM_B1: origin = 0300h , length = 0100h /* DARAM */
SARAM : origin = 0800h , length = 0800h /* SARAM */
}
SECTIONS
{
.text :> CODE PAGE 0
.cinit :> CODE PAGE 0
.data :> SARAM PAGE 1
.stack :> SARAM PAGE 1
.bss :> SARAM PAGE 1
.vectors:> VECTORS PAGE 0
.sec_crc:> CRC PAGE 0
.const :> CODE PAGE 0
}
You can post a message or access and search the archives of this group on DSPRelated.com:
http://www.dsprelated.com/groups/c28x/1.php
_____________________________________
Note: If you do a simple "reply" with your email client, only the author of this
message will receive your answer. You need to do a "reply all" if you want your
answer to be distributed to the entire group.
_____________________________________
About this discussion group:
Archives: http://www.dsprelated.com/groups/f24x/1.php
To Post: Send an email to f...@yahoogroups.com
Other DSP Related Groups: http://www.dsprelated.com/groups.php
Yahoo! Groups Links