Other Parts Discussed in Thread:TMS320F28027F在TMS320F28027F芯片手册的6.1.5看到一句话——However, it is not possible to use one sector of the flash or the OTP to execute flash
algorithms that erase/program other sectors。这里说不能使用一个扇区的flash执行擦写其他扇区flash的操作。
用户手写BootLoader也是要保存在Flash中的,假使Bootloader保存在Sector1中,如果程序在Sector1 Flash中执行,是无法擦除Sector2、3、4。或者说实际运行代码的时候,将代码从Sector1中搬到RAM中运行,在RAM中执行Sector2、3、4的擦写,这样是可行的?
Green Deng:
是的,可以这么理解。所以flash API函数必须将代码复制到ram中运行。
TI中文支持网




