Hi Albert Doe,
Do you download the SDK code for MK22FN1M0VLH12?

After you download the SDK code, do you modify the chip to MK22FN1M0XXX12? SDK_2.5.0_MK22FN1M0XXX12\devices will have the according files for MK22FN1M0XXX12.
The default project device should used for the MK21 chip, so you need to modify it at first. Change the all the project headfile, startup files, this is very important.
After you modify it, you may make the erase works.
Please try it at first.
If you still have question, please kindly let me know.
Have a great day,
Kerry
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------