This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

马达历程 prj-lab10d 为什么不能把 .econst .switch 考到ram运行, 考到ram 不报错,程序错乱。



#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 ?