Please see the code below for how to link your constants as expected:
in the C file :
#pragma section RW ".NM_CONST" ".NM_CONST"
__declspec(section ".NM_CONST" )
static const UINT8 NM_BIT_BYTE_POS[NM_NUM_BITS_IN_BYTE] =
{
0x80, 0x40, 0x20, 0x10, 0x08, 0x04, 0x02, 0x01
} ;
with this added to the LCF file:
SECTIONS
{
......
GROUP:{
.NM_CONST (CONST) LOAD (ADDR(nm_const_flash)) : {}
}> nm_const_flash
......
}
Best Regards
Fiona
Technical Information & Commercial Support
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------