Part Number: TMS320F280025
Other Parts Discussed in Thread: UNIFLASH
Hi team,
Here's an issue from the customer may need your help:
Referenced to uniflash.bat and uniFlash_example.bat file under C:\ti\ccs1040\ccs\ccs_base\scripting\examples\uniflash\cmdLine, the customer wrote a .bat script to flash the F280025 .out file.
The .bat file section is as follows:
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
Erase-only sector0 and sector1 are set in the simulator configuration file F280025_boot.CCXML, as is the case in the .bat script.

However, in fact, a total of 16 sectors are erased from Sector0 to Sector15, as shown in the following figure:

In the uniFlash_example.bat file, here's a description as follows:
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
How to set up the required .session file to erase and program some sectors?
Could you help check this case? Thanks.
Best Regards,
Cherry