Tool/software: Code Composer Studio
CCS V6, Win7 32 bit.
I have been creating a project using a 28022 Piccolo, and I have a custom CMD file that lays out the memory for that device.
I want to move to a 28023 (more flash) and it has a different layout for the memory.
I added a command line flag (--define=F28023) in the linker part of the project, and I put a couple of #ifdef's in the CMD file that checks that flag.
I forgot to tell CCS that the target configuration changed, and when I went to program the device, of course, it disagreed with the CMD file.
I have since changed the target device and all is OK now.
However...
I would like to go back and forth between the two devices
so, my question is...
Rather then me adding a --define= flag and also changing the target configuration, is there a way I can check the target config and have the linker automatically select the proper memory sections for me?
This way I don't have to remember to do 2 things each time I use a different processor, I only have to do one thing.
Even better, is there a way CCS can automatically detect the processor it is connected to and change the target config for me?
Thanks, Mark.