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.
Tool/software: Code Composer Studio
I'm attempting to load a file that contains only configuration data into Flash Bank 7. There is already a program loaded in Bank0/1 so I don't want to erase those banks. But when I specify "Erase Necessary Sectors Only" the flash programmer fails. I get the same behavior when I do this from Uniflash or Code Composer. I've included the Uniflash console output below. If I don't specify "Erase Necessary Sectors Only", Flash Bank 7 programs successfully but, as I said, this isn't an acceptable solution because I don't want to erase Bank0/1.
C:\>C:\ti\ccsv8\ccs_base\scripting\examples\uniflash\cmdLine\uniflash.bat -ccxml TMS570LS3137.ccxml -setOptions FlashEraseSelection="Necessary Sectors Only (for Program Load)" -program my-file.out
***** Texas Instruments Universal Flash Programmer *****
<START: 10:39:11 GMT-0700 (PDT)>
> Configuring the Flash Programmer with the given configuration ...
> Flash Manager is configured for the following part: TMS570LS3137
> Setting up the user Flash Options ...
> Connecting to the target for Flash operations ...
CortexR4: GEL Output: Memory Map Setup for Flash @ Address 0x0
> Connected.
> Loading Program: fcc-config.out
CortexR4: GEL Output: Memory Map Setup for Flash @ Address 0x0 due to System Reset
CortexR4: Writing Flash @ Address 0xf0200000 of Length 0x000000d0
CortexR4: Erasing Flash Bank 7, Sector 0
SEVERE: CortexR4: File Loader: Memory write failed: Algorithm indicated it failed to erase sector
SEVERE: CortexR4: GEL: File: my-file.out: Load failed.
SEVERE: File: my-file.out: Load failed.
SEVERE: Error loading "my-file.out": File: my-file.out: Load failed.
> Command suspended due to errors in loading the program.
> Disconnecting from target.
<END: 10:39:18 GMT-0700 (PDT)>
<Operation Time: 3.84s>
<Total Time: 6.252s>
Try:
>C:\ti\ccsv8\ccs_base\scripting\examples\uniflash\cmdLine\uniflash.bat -ccxml TMS570LS3137.ccxml -setOptions FlashEraseSelection="Selected Sectors Only" FlashBank0Sector0=false FlashBank0Sector1=false FlashBank0Sector2=false FlashBank0Sector3=false FlashBank0Sector4=false FlashBank0Sector5=false FlashBank0Sector6=false FlashBank0Sector7=false FlashBank0Sector8=false FlashBank0Sector9=false FlashBank0Sector10=false FlashBank0Sector11=false FlashBank0Sector12=false FlashBank0Sector13=false FlashBank0Sector14=false FlashBank1Sector0=false FlashBank1Sector1=false FlashBank1Sector2=false FlashBank1Sector3=false FlashBank1Sector4=false FlashBank1Sector5=false FlashBank1Sector6=false FlashBank1Sector7=false FlashBank1Sector8=false FlashBank1Sector9=false FlashBank1Sector10=false FlashBank1Sector11=true -program my-file.out
Thanks
ki
I tried ki's suggestion. Uniflash didn't complain about this rather lengthy command line but did ignore the "Selected Sectors Only" directive and erased all flash sectors.