Dear Salah,
First of all, in order tto debug TWR-KW2x you should first install an open SDA image, which will allow you to load and debug applications using the USB connection and without external programmers/connectors. For this, you should read the TKW2x_OSDAUG_v1.1.pdf included in the BSP package you downloaded.
Secondly, please notice that all of MKW2x firmware only supports IAR IDE and not Codewarrior. Therefore, you should start by downloading it from http://www.iar.com/Service-Center/Downloads/. You could either download a time-limited trial or use the size-limited version, both should work.
If you plan to use the Connectivity test’s source code (out-of-the-box application in TWR-KW2x board), then the size-limited should be enough while you do not have to worry about time-trial expiration. However, if you plan to use a larger stack such as ZigBee, you should get a license from IAR in able to compile the whole stack or simply use the time-limited trial. Anyway, you could start with the size- limited one.
Once installed, you should also download and install the BeeKit Wireless Connectivity Toolkit from our website . The download link could be found in http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=BEEKIT_WIRELESS_CONNECTIVITY_TOOLKIT
After both being installed, you could proceed and check the Connectivity Test source code in C:\Program Files\Freescale\SMAC\MKW2x\Demo Apps\Connectivity Test. You should open the Connectivity Test.eww file in IAR. That will open the source code and let you modify it if desired. Just please note any modification is totally application specific.To download you could use the open SDA as described in first step.I hope this helps.
Regards,
AngelC
---------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
---------------------------------------------------------------------------------------------------------------------