Hi Eugene Hiihtaja,
You can refer to our KBOOT code, there has the MK82 flash bootloader code, please download it from this link:
https://www.nxp.com/webapp/Download?colCode=NXP_KINETIS_BOOTLOADER_2_0_0&appType=license
Then you can find the K82 flash bootloader from this link:
NXP_Kinetis_Bootloader_2_0_0\targets\MK82F25615
You can refer to freedom_bootloader.
More details, please refer to the document in folder :NXP_Kinetis_Bootloader_2_0_0\doc
Wish it helps you!
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------