Hi Martin,
You can build and download the SDK_2.1_MKL17Z256xxx4 from MCUXpresso Config Tools.
There are two examples seems meet your needs.

Best Regards,
Robin
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
---------------------------------------------------------------------------------------------------------------------