请教TI工程师:
我现在编写完毕的程序 应该运行在Flash中的,因为没有更改过cmd文件
请问如何将程序 搬移 到RAM中进行运行 ,谢谢
Susan Yang:
您必须将其“加载 load”地址设置为flash 并将其“运行run”地址设置为RAM,参考
http://www.ti.com/lit/ug/slau131u/slau131u.pdf
3.1.1
您可以通过将__attribute __((ramfunc))附加到函数原型来执行此操作
如
/* store in flash, run from flash, by default */ void foo( void ); /* store in flash, run from RAM, by default */ void foo( void ) __attribute__((ramfunc));