Hello Alexandre Voigt da Poian ,
All flash functions except read require the user to setup and launch an FTFE command.
Please check the Flash commands in Reference Manual of MK22FN1MA0VLL12, the minimum size of write id 8 bytes.

Have a great day,
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------