@attiliorossi321 ,
The maximum clock speed you can write to the Flash in the MK22FN512VLH12 (that's in the FRDM-K22F) is 60Mhz.
This really caused me a lot of headaches because I was using the FRDM-K22F to develop code for my MK22FN1M0AVDM12 based product - the product's processor can write at 120MHz. I ended up developing the code to run at 60MHz on the FRDM-K22F and ported it to the faster board.
There have been discussions here on how you can run the FRDM-K22F but program the Flash at 60MHz but they are a bit out there and I felt to be more work and risk than getting my code working at the slower speed.
The speeds at which different Kinetis parts can write to the Flash don't seem to follow any kind of logic - there is some documents on the website here (but I'll be damned if I can ever find them using the search function) - by doing some searching here on the Kinetis forum (and me whining) you can find links to them. You can also find out the maximum speed by reading the specific part's Reference Manual (although I just scanned it and couldn't find it - NXP doesn't make it easy to find this information as it really should be front and centre for designers).
Good luck, sorry I can't give you better news.