Target tasks can be used in CW10 to specify custom programming actions, like controlling which flash sectors get erased. This is handy when you want to preserve specific flash sectors, like when storing data in flash, or using FlexMemory. The video at the link below shows an example for preserving the FlexNVM sectors in a Kinetis K40.
http://www.youtube.com/watch?v=lYxERyVn8NA