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.
Hi:
大家好啊。如图,利用CCS9.1 烧写程序时,设置Flash的擦除区域。当选择图示“Necessary Sectors Only”选项,擦除的FLASH的区域是哪些区域,根据什么来定义擦除区域。谢谢!
在下面的链接内有相关的说明
https://software-dl.ti.com/ccs/esd/documents/users_guide/ccs_debug-main.html#f28x-flash
Erase Settings: specifies the various memory ranges to be erased during Flash programming.
将仅擦除 linker 已为其分配存储空间的Flash区域
如下
Aiden 说:.text : > APP_FLASH, PAGE = 0, ALIGN(4)
.cinit : > APP_FLASH, PAGE = 0, ALIGN(4)
.pinit : > APP_FLASH, PAGE = 0, ALIGN(4)
.switch : > APP_FLASH, PAGE = 0, ALIGN(4)
等已经分配存储空间的Flash区域
您的cmd文件有些问题
参考https://www.ti.com/lit/ug/sprui33c/sprui33c.pdf 可以查看有效的入口地址,即 BEGIN : origin = 0x080000, length = 0x000002
另外APP_PATTERN : origin = 0x08B000, length = 0x001000 /* app pattern @end of application area*/
这个在Sector 8 0x0008 8000-- 0x0008 8FFF之内的,理论上应该是可以被擦除的
Aiden 说:我在应用程序中制造条件往APP_PATTERN地址(CMD中地址为 : origin = 0x08B000, length = 0x001000 /* app pattern @end of application area*/)写入一个标记值(如0x5A5A).
能否请您详细说明下?