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.
28379D 在用FLASH时 如何将FPU程序搬移到RAM中运行
您可以使用"memcpy(&RamfuncsRunStart, &RamfuncsLoadStart, (size_t)&RamfuncsLoadSize);"指令。这条指令会装载在链接文件中被分配到.TI.ramfunc部分的函数。在源代码中需要使用"#pragma CODE_SECTION(<FUNCTION_NAME>, ".TI.ramfunc");"。
在C2000Ware_4_XX_XX_XX\device_support\f2806x\examples\c28\flash_f28069下有一个相关例程,虽然不是针对F2837xD的,但是也很好的展示了如何使用memcpy函数将代码从FLASH中搬移到RAM中。
任何需要在RAM中运行的FPU函数可以通过这种方式搬移。