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.
28035程序中,将程序烧写到Flash,其中使用的语句MemCopy(&RamfuncsLoadStart, &RamfuncsLoadEnd, &RamfuncsRunStart), InitFlash(),能够使Ramfuns段里的函数从Flash调到RAM里运行,请问Ramfuns段里都包含什么函数呢?谢谢
不清楚您用的什么MCU,但各MCU下都有FLASH例程,可以参考里面的写法。也可以在网上查找一下#program code_section和Memcopy函数的用法,这方面资料非常多。
你好,可以参考文档:Copying Compiler Sections From Flash to RAM on theTMS320F28xxx DSCs:http://www.ti.com.cn/cn/lit/an/spraau8/spraau8.pdf
在使用#program code_section和MemCopy(&RamfuncsLoadStart, &RamfuncsLoadEnd,&RamfuncsRunStart)的时候,我的中断函数能够复制到RAM里面,可以从Memory Allocation里面看到RAML0利用率提高了,可是用#program code_section复制别的子函数到RAM里,RAML0利用率没有提高,难道这种方法只能复制中断函数吗?