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.

F2808程序从Flash搬到RAM中运行的疑问



ramfuncs : LOAD = FLASHCD, PAGE = 0
RUN = PRAML0, PAGE = 0
LOAD_START(_RamfuncsLoadStart),
LOAD_END(_RamfuncsLoadEnd),
RUN_START(_RamfuncsRunStart)

在main中有:


#pragma CODE_SECTION(adc_isr, "ramfuncs");


interrupt void adc_isr(void);//采样中断函数声明

在采样中断函数里面调用了有其他.c文件中的函数,那么当采样中断从Flash搬到RAM中的时候,其他.c文件中被采样中断函数调用的函数会不会复制到RAM里面呢?需不需要用#pragma CODE_SECTION重新对该调用函数进行段复制?