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.
参考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?
这个问题解决了,在F280025_BOOT.ccxml中配置无效,需要在.bat文件中配置,不需要擦除的Sector需要设置为0,比如说不擦除Sector2,则设置为:FlashC28Bank0Sector2=0
您好,
:-program命令是带擦除和写FLASH功能吗?需要单独配置-operation Erase命令进行擦除吗?
当使用"闪存"模式时,UniFlash 在刷写器件前,会使用任何的默认擦除设置。 这个通常会在编程前擦除所有闪存。