将ROM中的源代码移植的RAM中,如CTRL_run等函数,需要选择什么选项吗或添加什么;还是添加.c文件后直接使用
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.
将ROM中的源代码移植的RAM中,如CTRL_run等函数,需要选择什么选项吗或添加什么;还是添加.c文件后直接使用
由于instaSPIN算法并不是完全开源的,有部分代码还是需要在rom中执行。而部分开源的代码在运行的时候程序中已经设置了会自动搬移到ram运行,如你提到的CTRL_run函数,例程中有将程序搬移到ram运行的指令:
#ifdef FLASH #pragma CODE_SECTION(CTRL_run,"ramfuncs"); #pragma CODE_SECTION(CTRL_setup,"ramfuncs"); #endif