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.

TMS320F280025: 用批处理文件烧录.out文件

Part Number: TMS320F280025
Other Parts Discussed in Thread: UNIFLASH

参考C:\ti\ccs1040\ccs\ccs_base\scripting\examples\uniflash\cmdLine路径下的uniflash.bat和uniFlash_example.bat文件,自己编写.bat脚本对F280025进行.OUT文件烧录。

.bat文件部分内容如下:

set UNIFLASH_TOOLS="C:\ti\ccs1040\ccs\ccs_base\scripting\examples\uniflash\cmdLine\uniflash.bat"
set CCXML_FILE=".\F280025_BOOT.ccxml"
set OUT_FILE=".\F280025_BOOT.out"

call %UNIFLASH_TOOLS% -ccxml %CCXML_FILE% -setOptions FlashEraseSelection="Selected Sectors Only" FlashC28Bank0Sector0=true FlashC28Bank0Sector1=true -operation Erase -program %OUT_FILE% -targetOp run

仿真器配置文件F280025_BOOT.ccxml中设置了只擦除Sector0和Sector1,.bat脚本中也设置了只擦除Sector0和Sector1

但实际是Sector0~Sector15共16个扇区都擦除了,如下图。

在uniFlash_example.bat文件中有如下一段话:

REM 5. Use the -core argument for multicore devices (ie; Concerto accessing the C28 core), load settings from a session file (changes default to erase Necessary Sectors Only), load a program, and running the target after program load
uniflash -ccxml ../configs/F28M35H52C1_XDS560.ccxml -core "C28" -loadSettings ../session/f28m35.session -program ../programs/f28m35_c28_blinky.out -targetOp run

请问如何设置自己需要的.session文件,来实现擦除和编程部分Sectors?