Hello,
Sorry for the inconvenience this might cause you but the KW41Z supports only SWD protocol, not JTAG.
If you want to protect the memory, you can check the Chapter 9 Security of the reference manual of the KW41Z. Also, you can check this application note and use it as a base to understand the basic functionality of the registers .
Hope this helps.
Regards,
Estephania