Hi,
I got this warning "WARNING C3801: Segment already used with different attributes" when I allocated constants to the paged flash.
The PRM File:
PLACEMENT
DEFAULT_ROM,
DTC_SECTION INTO PAGE_DF, PAGE_DE, PAGE_DD, PAGE_DC, PAGE_DB, PAGE_DA,
PAGE_D9, PAGE_D8, PAGE_D7, PAGE_D6, PAGE_D5, PAGE_D4,
PAGE_D3, PAGE_D2, PAGE_D1, PAGE_D0, PAGE_FC, PAGE_FB,
PAGE_FA, PAGE_F9, PAGE_F8, PAGE_F7, PAGE_F6, PAGE_F5,
PAGE_F4, PAGE_F3, PAGE_F2, PAGE_F1, PAGE_F0, PAGE_EF,
PAGE_EE, PAGE_ED, PAGE_EC, PAGE_EB, PAGE_EA;
END
The code:
#pragma CONST_SEG DTC_SECTION
const T_u16 BLD_CRC16_CCITT_Table[ 256 ] = {0x0000U, 0x1021U, 0x2042U, 0x3063U,....};
#pragma CONST_SEG DEFAULT
Although it builds successfully but this warning bothers me. We still have a lot of space in our paged flash. Why is this happening?
Thanks.