Hello Raheleh,
To unlock the KW24 device you may use the Jlink commander utility. Please go to segger’s website and download the Software and documentation pack for Windows.
Link: https://www.segger.com/jlink-software.html
After downloaded and installed, please open the JLink.exe file of SEGGER’s installation folder with Jlink connected to the PC and the TWR-KW2x board. A command window will prompt.
Using the command line, type “unlock kinetis”. You should see something as follows:
After done that, you should be able to use the TWR-KW2x board with IAR and Jlink without any issues.
Regards,
AngelC