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.

跪求高手指点,非常感谢

Other Parts Discussed in Thread: TMS320F28031, CONTROLSUITE

用的是TMS320F28031,程序是在TI给的28031的例程基础之上改的,例程是EPWM的,加入了AD例程中的 初始化的.c文件。 程序在 RAM 中运行也很成功. 烧写到FLASH里面运行,程序总是进入 interrupt void ILLEGAL_ISR(void)。将AD初始化屏蔽掉,程序便可以在FLASH中正常运行了。跪求高手指点应该怎么改??
非常感谢,谢谢

  • ADC初始化源文件中有注明,如果程序从Flash运行, 需要在程序调用InitSysCtrl()函数之前将ramfuncs copy到片内RAM。 

  • 非常感谢您的帮助。
    我在网上查了关于如何将ramfuncs copy到片内RAM的的方法,也不知道对不对。还是出现错误,不知道是什么原因,麻烦您了。
    我在main函数前加入了
    extern Uint16 RamfuncsLoadStart;
    extern Uint16 RamfuncsLoadEnd;
    extern Uint16 RamfuncsRunStart;
    InitSysCtrl()之前调用了MemCopy(&RamfuncsLoadStart, &RamfuncsLoadEnd, &RamfuncsRunStart);
    可是还是出现了2个错误
    错误1:Description Resource Path Location Type
     <a href="file:/D:/ti/ccsv5/tools/compiler/dmed/HTML/10234.html">[?]</a>  unresolved symbols remain Example_2803xEPwmDeadBand   C/C++ Problem
    错误2:Description Resource Path Location Type

    errors encountered during linking; "C:/tidcs/c28/DSP2803x/v121/DSP2803x_examples/epwm_deadband/Example_2803xEPw mDeadBand/../../../DSP2803x_examples/epwm_deadband/Debug/Example_2803xEPwmDe adBand.out" not built Example_2803xEPwmDeadBand   C/C++ Problem

    我还是不知道问题出在哪了,麻烦您了,谢谢您
  • 非常感谢您的帮助。
    我在网上查了关于如何将ramfuncs copy到片内RAM的的方法,也不知道对不对。还是出现错误,不知道是什么原因,麻烦您了。
    我在main函数前加入了
    extern Uint16 RamfuncsLoadStart;
    extern Uint16 RamfuncsLoadEnd;
    extern Uint16 RamfuncsRunStart;
    InitSysCtrl()之前调用了MemCopy(&RamfuncsLoadStart, &RamfuncsLoadEnd, &RamfuncsRunStart);
    可是还是出现了2个错误
    错误1:Description Resource Path Location Type
     <a href="file:/D:/ti/ccsv5/tools/compiler/dmed/HTML/10234.html">[?]</a>  unresolved symbols remain Example_2803xEPwmDeadBand   C/C++ Problem
    错误2:Description Resource Path Location Type

    errors encountered during linking; "C:/tidcs/c28/DSP2803x/v121/DSP2803x_examples/epwm_deadband/Example_2803xEPw mDeadBand/../../../DSP2803x_examples/epwm_deadband/Debug/Example_2803xEPwmDe adBand.out" not built Example_2803xEPwmDeadBand   C/C++ Problem

    我还是不知道问题出在哪了,麻烦您了,谢谢您
  • 我觉得是不是因为没有MemCopy的头文件的原因,可是怎么才能加入MemCopy.c的文件呢,谢谢了

  • 你好,请参考例程中的程序搬移写法:C:\ti\controlSUITE\device_support\f2803x\v128\DSP2803x_examples_ccsv5\flash_f28035