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.

CCS怎样将程序烧到flash中啊



    我用的软件平台 是  CCS5.4    硬件平台是DSP   Piccolo  28027     

    每次只能将程序烧在RAM中   只要掉电  程序就消失     怎样将程序烧到flash中啊    ???   急急急!!!!

  • 您好,

    在工程属性设置中,在 Linker Command File 中选择 Flash 相应的 .cmd 文件即可,如下图所示:

  •  你好   我按照你的方法做了一下     如下图所示 。    

         

          

           但是程序编译的时候出了问题      问题截图如下:

          是不是第一个选项   configuration    应该现在  Debug    而不是 RAM   但是我的选项里没有Debug 

           谢谢啊

  • 你好!

    前面你使用的RAM的CMD是不是还在工程里面,并且是active的状态。

    建议把RAM.cmd删了。两个cmd冲突了。

  • 你好    

     我用的是control'SUITE的例子,他们好像都是烧进RAM中 ,我想把它们烧进Flash中!

      下图是我工程属性的设置:

    在设置完成后,在  Step 2  “Build the imported project ” 时 遇到以上问题。  希望指导一下

  • flash_f28027这个工程是烧写到flash中的例程,其他例程大部分都是在RAM中运行的,要想把运行在RAM中程序,需要添加以下程序段,建议参考flash_f28027工程

    1、#pragma CODE_SECTION(xxxx, "ramfuncs");

    2、extern Uint16 RamfuncsLoadStart;
          extern Uint16 RamfuncsLoadSize;
          extern Uint16 RamfuncsRunStart;

    3、memcpy(&RamfuncsRunStart, &RamfuncsLoadStart, (size_t)&RamfuncsLoadSize);

    4、InitFlash();

    同时参考文献 f2802x-FRM-EX-UG.pdf   第17页   2.4.5 Executing the Examples From Flash

    希望帮助到你