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.

SRAM调试好的F28069DSP程序搬迁到FLASH中运行时出现的问题



F28069:将SRAM模式下调试好的程序搬迁到FLASH中,程序运行到”InitAdc()“函数中的”(*Device_cal)()“语句时就跑飞了。请问这是什么原因造成的?已在主程序中添加了如下的两句话:

// Step 5. User specific code, enable interrupts::
MemCopy(&RamfuncsLoadStart, &RamfuncsLoadEnd, &RamfuncsRunStart);
InitFlash();

  • 你好   使用代码搬移时 一定要注意   memcopy函数在程序中的位置一定要放到一定的地方

    是有前后顺序的  

    还有  在flash中运行你怎么知道在初始化ADC时跑飞了    你是用仿真器吗  

    这样应该还是在RAM中运行的吧