Tool/software: Code Composer Studio
Hi,
I have an application that runs on an F28388D. I am using CPU1 (C28x) and its CLA, and I am using CM (ARM). I have two projects in CCS, one for the C28x core and one for the ARM Core. My Debug configuration loads both cores.
The linker command file for the C28X core excludes Flash sector 10 (0xB8000 - 0xB9FFF). My application uses this area for nonvolatile storage.
I can use CCS (Version 10, for what it's worth) to program the projects into Flash, and the program runs and writes data into the Flash sector 10. can power cycle and the system will boot, and it can access the non-volatile data in sector 10 correctly.
However, if I use CCS to re-program the Flash, it erases Sector 10 again.
I have tried to use "Range Avoidance" but it doesn't work - Sector 10 is still erased. When I go back and check the Target Configuration's Flash Settings, I see that Range Avoidance has been unchecked.
I have also tried unsuccessfully to use "Selected Sectors Only" in the Erase Settings as well as the "Necessary Sectors Only (for Program Load)" option.
At no point have I noticed any warnings or errors from CCS.
I suspect that I am doing something wrong that has to do with Debug configurations and Target Confgurations. It seems like one can get to the Flash settings from multiple places in the GUI. Also, the multicore configuration might be another source of misconfiguration.
Any advice on how to have CCS avoid erasing all of Flash would be valuable. Pointer to cookbook recipe or an example project would be great.
All the best,
NIk