I am trying to add a simple section header to my app code. This is how the code looks like.
#pragma DATA_SECTION(SYS_cstAppSectionHeader, "AppSectionHeaderSection")
EXPORTED const SYS_ST_SECTION_HEADER_T SYS_cstAppSectionHeader =
{
LNK_pvAppStartAddress,
LNK_pvAppEndAddress,
(struct SYS_ST_SECTION_HEADER_T_TAG const *)LNK_pvCalSectionHeaderAddress,
SOFT_VERSION,
EEP_U16_CAL_COMPATABILITY_VER,
{0, 0, 0, 0, 0},
SYS_U8_MEMORY_REGION_TEST_REQ
};
Linker script looks like this:
SECTIONS
{
/*.intvecs : {} > VECTORS */
.data : {
section_header.obj(AppSectionHeaderSection)
} > FLASH1
.entry:{AppMain.obj(.txt)}
.text : {} > FLASH1 | FLASH2 | FLASH3
.const : {} > FLASH1 | FLASH2 | FLASH3
.cinit : {} > FLASH1 | FLASH2 | FLASH3
.pinit : {} > FLASH1 | FLASH2 | FLASH3
.bss : {} > RAM
.data : {} > RAM
.stack : {} > STACKS
}
During the build I get the error, "no matching section" in the linker script line " section_header.obj(AppSectionHeaderSection)"
What could be the issue ?