Hi Keith
F5 and F7 (K22) devices are not the same - check carefully which of the documents is relevant for the exact part that you use.
If you compare carefully there are a number of differences (often SW incompatible) between the various K22 devices.
For example F7 parts (ones with 128k or 512k Flash without NVRAM) have different base addresses for ADC1, have an additional options register (SIM_OPT8), have some different peripheral clocking controls (SIM_SCGC1). Also they have HSRUN mode to operate above 80MHz, whereas the F5 parts can run at 120MHz without the HSRUN mode restrictions. Some parts use long word Flash programming and others use phrase programming (so need different Flash drivers).......
There are more and I think that there is a document somewhere listing all of the things that need to be taken into account.
Regards
Mark