#ifdef CSM_ENABLE
//copy .econst to unsecure RAM
if(*econst_end - *econst_start)
{
memCopy((uint16_t *)&econst_start,(uint16_t *)&econst_end,(uint16_t *)&econst_ram_load);
}
//copy .switch ot unsecure RAM
if(*switch_end - *switch_start)
{
memCopy((uint16_t *)&switch_start,(uint16_t *)&switch_end,(uint16_t *)&switch_ram_load);
}
#endif
/*
.econst : LOAD = FLASHC , // LOAD = D_FLASHA,
RUN = RAML4_5 ,
LOAD_START(_econst_start),
LOAD_END(_econst_end),
RUN_START(_econst_ram_load),
PAGE = 0
.switch : LOAD = FLASHC , // LOAD = D_FLASHA,
RUN = RAML4_5 ,
LOAD_START(_switch_start),
LOAD_END(_switch_end),
RUN_START(_switch_ram_load),
PAGE = 0
*/
在28027中可以考到ram 但是PAGE = 1;
2806x 必须 PAGE = 0 ?