|
我看了一下ti的例子,是需要加的。
在controlSUITE\device_support\f2802x\v210\f2802x_examples\flash_f28027这个例子中是有这个代码的。
#ifdef _FLASH
// Copy time critical code and Flash setup code to RAM
// This includes the following ISR functions: EPwm1_timer_isr(), EPwm2_timer_isr()
// and FLASH_setup();
// The RamfuncsLoadStart, RamfuncsLoadSize, and RamfuncsRunStart
// symbols are created by the linker. Refer to the F2280270.cmd file.
memcpy(&RamfuncsRunStart, &RamfuncsLoadStart, (size_t)&RamfuncsLoadSize);
// Call Flash Initialization to setup flash waitstates
// This function must reside in RAM
FLASH_setup(myFlash);
#endif // end #ifdef _FLASH
这个过程涉及到代码从上电到运行,建议参考TI的相关文档。
|
|