我用的软件平台 是 CCS5.4 硬件平台是DSP Piccolo 28027
每次只能将程序烧在RAM中 只要掉电 程序就消失 怎样将程序烧到flash中啊 ??? 急急急!!!!
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.
我用的软件平台 是 CCS5.4 硬件平台是DSP Piccolo 28027
每次只能将程序烧在RAM中 只要掉电 程序就消失 怎样将程序烧到flash中啊 ??? 急急急!!!!
你好!
前面你使用的RAM的CMD是不是还在工程里面,并且是active的状态。
建议把RAM.cmd删了。两个cmd冲突了。
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
希望帮助到你