<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>[FRDM-K64F + Kinetis Design Studio (KDS) + Software Dev Kit (SDK)] Tutorial: Toggling an RGB LED without Processor expert</title><link>https://community.element14.com/products/devtools/kinetiskl2freedomboard/w/documents/17080/frdm-k64f-kinetis-design-studio-kds-software-dev-kit-sdk-tutorial-toggling-an-rgb-led-without-processor-expert</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>[FRDM-K64F + Kinetis Design Studio (KDS) + Software Dev Kit (SDK)] Tutorial: Toggling an RGB LED without Processor expert</title><link>https://community.element14.com/products/devtools/kinetiskl2freedomboard/w/documents/17080/frdm-k64f-kinetis-design-studio-kds-software-dev-kit-sdk-tutorial-toggling-an-rgb-led-without-processor-expert</link><pubDate>Mon, 15 Sep 2014 10:04:15 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:0dc49c73-bd4b-4d38-92a0-f15e870dfdc0</guid><dc:creator>bheemarao</dc:creator><comments>https://community.element14.com/products/devtools/kinetiskl2freedomboard/w/documents/17080/frdm-k64f-kinetis-design-studio-kds-software-dev-kit-sdk-tutorial-toggling-an-rgb-led-without-processor-expert#comments</comments><description>Current Revision posted to Documents by bheemarao on 9/15/2014 10:04:15 AM&lt;br /&gt;
&lt;p style="margin:0;"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;Here is a tutorial for toggling RGB Led’s on FRDM-K64F board using Kinetis Design Studio IDE and using Kinetis Software development kit (KSDK).&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;Before we begin make sure below requirements are there as setup&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;strong&gt;&lt;span lang="EN-US" style="font-size:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;Required Hardware and Software:&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span lang="EN-US" style="font-size:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;FRDM-K64F Board configured with JLink Debugger&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style="margin:0;"&gt;&lt;span style="line-height:1.5em;font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (The firmware can be downloaded here: &lt;a class="jive-link-external-small" href="http://www.segger.com/admin/uploads/userfiles/file/J-Link/JLink_OpenSDA_V2.zip" rel="nofollow ugc noopener" style="font-size:10pt;line-height:1.5em;" target="_blank"&gt;&lt;span style="color:#3333cc;font-size:12.0pt;background:aqua;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;text-decoration:underline;"&gt;Firmware download&lt;/span&gt;&lt;/a&gt;&lt;span style="line-height:1.5em;font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span lang="EN-US" style="font-size:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;Micro USB Cable&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span lang="EN-US" style="font-size:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;Kinetis Design Studio (v1.1.1 or newer)&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style="margin:0;"&gt;&lt;span lang="EN-US" style="line-height:1.5em;font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (You can now download the GA release, KDS 1.1.1, at: &lt;a class="jive-link-external-small" href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=KDS_IDE&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab" rel="nofollow ugc noopener" style="font-size:10pt;line-height:1.5em;" target="_blank"&gt;&lt;span style="color:#3333cc;font-size:12.0pt;background:aqua;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;text-decoration:underline;"&gt;KDS-WINDOWS_IDE&lt;/span&gt;&lt;/a&gt;&lt;span style="line-height:1.5em;font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;&amp;nbsp; )&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span lang="EN-US" style="font-size:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;Kinetis Software Development Kit (KSDK-v1.0.1) &lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style="margin:0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="line-height:1.5em;font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;(Download Link &lt;a class="jive-link-external-small" href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=KINETIS_SDK&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab" rel="nofollow ugc noopener" style="font-size:10pt;line-height:1.5em;" target="_blank"&gt;&lt;span style="color:#3333cc;font-size:12.0pt;background:aqua;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;text-decoration:underline;"&gt;Freescale Kinetis SDK_1.0.0 - Windows installer&lt;/span&gt;&lt;/a&gt;&lt;span style="line-height:1.5em;font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt; )&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span lang="EN-US" style="font-size:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;Eclipse Update for Freescale Kinetis SDK 1.0.0-GA &lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style="margin:0;"&gt;&lt;span lang="EN-US" style="font-size:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span lang="EN-US" style="font-size:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;background:aqua;"&gt;(&lt;span style="font-size:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;background:aqua;"&gt;&lt;a class="jive-link-external-small" href="http://cache.freescale.com/lgfiles/sdk/SDK_1.0.0-GA_Update_for_Eclipse_1.0.1.zip" rel="nofollow ugc noopener" target="_blank"&gt;&lt;span style="color:#3333cc;"&gt;http://cache.freescale.com/lgfiles/sdk/SDK_1.0.0-GA_Update_for_Eclipse_1.0.1.zip&lt;/span&gt;&lt;/a&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;Reference of FRDM-K64 user guide for schematic&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="font-size:11.0pt;font-family:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;background:aqua;"&gt;(&lt;a class="jive-link-external-small" href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=FRDM-K64F&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab" rel="nofollow ugc noopener" target="_blank"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=FRDM-K64F&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab#&lt;/span&gt;&lt;/a&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="Default" style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="Default" style="margin:0;"&gt;&lt;span style="color:#3333cc;font-size:12pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;The activity has been split into different sections as below:&lt;/span&gt;&lt;span style="color:#3333cc;font-size:12pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-left:30px;"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;1. &lt;/span&gt;&lt;span style="font-size:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;Loading the OpenSDA V2 firmware to K64F board provided from Segger:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-left:30px;"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;(refer to the link: &lt;a class="jive-link-external-small" href="http://www.element14.com/community/community/designcenter/kinetis_kl2_freedom_board/blog/2014/09/15/frdm-k64f-kinetis-design-studio-kds-software-dev-kit-sdk-tutorial-toggling-an-rgb-led-without-processor-expert" target="_blank"&gt;&lt;span style="text-decoration:underline;"&gt;&lt;span style="color:#ff0000;text-decoration:underline;"&gt;&lt;span style="color:#ff6600;text-decoration:underline;"&gt;HERE&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt; )&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-left:30px;"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;2. &lt;/span&gt;&lt;span style="font-size:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;Setting up Kinetis Design Studio Environment Variable&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-left:30px;"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;3. &lt;/span&gt;&lt;span style="font-size:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;Eclipse Update for Freescale Kinetis SDK 1.0.0-GA&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-left:30px;"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;(refer to the link: &lt;a class="jive-link-external-small" href="/products/devtools/kinetiskl2freedomboard/w/documents/17082/eclipse-update-for-freescale-kinetis-sdk-1-0-0-ga" target="_blank"&gt;&lt;span style="color:#ff6600;text-decoration:underline;"&gt;HERE&lt;/span&gt; &lt;/a&gt;)&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-left:30px;"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;4. &lt;/span&gt;&lt;span style="font-size:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;Build the platform driver library &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding-left:30px;"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;5. &lt;/span&gt;&lt;span style="font-size:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;Creating New Project:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="color:#3333cc;font-size:12.0pt;text-decoration:underline;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;&lt;strong&gt; Setting up Kinetis Design Studio Environment Variable&lt;/strong&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:9.3pt;"&gt;&lt;span style="color:#3333cc;background:white;font-size:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;After the installation of KDS the environment variable “KSDK_PATH” must be defined. &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:9.3pt;"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;In the start-up menu, right click “Computer” and choose “Properties.” &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;In the left column, click “Advanced system settings.” You should get the following window: &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;&lt;br /&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/498x468/__key/communityserver-wikis-components-files/00-00-00-01-49/2475.contentimage_5F00_38499.jpg"&gt;&lt;img alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/2475.contentimage_38499.jpg-498x468.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=QQ2MhUu1hE0BzMm1q59B%2BIEj6OtqRz5kaaV9CLaS4Ts%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=REebfQsWdKWl9u3z9TlGLg==" style="max-height: 468px;max-width: 498px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;Click the “Environment Variables” and make sure the KSDK_PATH is correct in the “User variables for &amp;lt;user name&amp;gt;”.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;Add the new variable under “User variables…”. The name should be “KSDK_PATH”. The path is the same where by default the KSDK is installed. In this case the path is “C:\Freescale\KSDK_1.0.0”.&lt;/span&gt;&lt;/p&gt;&lt;p class="Default" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="color:#3333cc;font-size:12pt;text-decoration:underline;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;&lt;strong&gt;Build the platform driver library &lt;/strong&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p class="Default" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;Before building and debugging any demo application in KSDK, the driver library project should be built to generate the library archives: ksdk_platform_lib.a. Because this library contains all binary codes for HAL and the peripheral drivers specific to the chip, each SoC has its own platform.a library archives.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;We need to Importing platform library from the KSDK installation path and build the library, follow below steps to import and build the platform library.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;Open the KDS IDE by giving your default workspace and select ‘import’ option as shown below:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;Select &lt;span style="background:aqua;text-decoration:underline;"&gt;File&amp;gt;Import&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/364x530/__key/communityserver-wikis-components-files/00-00-00-01-49/4604.contentimage_5F00_38500.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/4604.contentimage_38500.jpg-364x530.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=QMNAfORaguM%2B%2BI4GN4t4EXevgp%2FseLc1nGTus86X%2FU8%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=1x0Tdx5rQdSzC9eE3/++Ew==" style="max-height: 530px;max-width: 364px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;Next select the option “Existing projects into Workspace” from General Tab and click “Next”&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/370x389/__key/communityserver-wikis-components-files/00-00-00-01-49/3108.contentimage_5F00_38501.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/3108.contentimage_38501.jpg-370x389.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=nxT5krVrRty964NhUi2bGjG%2FjNl9KDmY2kl9DXYVMcI%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=UVLpuv1IHLWlHzIHtSEOEg==" style="max-height: 389px;max-width: 370px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;Click on “Browse” button as shown below:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/345x361/__key/communityserver-wikis-components-files/00-00-00-01-49/1055.contentimage_5F00_38502.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/1055.contentimage_38502.jpg-345x361.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=P826OKY7lJrLJ9DNtzEVf0KvWnDPjx9BQkSkns4Fbh0%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=jwxTd35sAFhMJFXcDlu7Jg==" style="max-height: 361px;max-width: 345px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span lang="EN-US" style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt; Browse to navigate to KSDK_1.0.0 installation folder and select the K64F12 folder and select ‘ok’.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/426x479/__key/communityserver-wikis-components-files/00-00-00-01-49/4274.contentimage_5F00_38503.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/4274.contentimage_38503.jpg-426x479.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=Q%2BnKE6mDMnNJlV2gxQx%2BAy7ki6ejmC6vAPc28WjgRA0%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=zzvoacx5a4v8DlDWyqIeSA==" style="max-height: 479px;max-width: 426px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;Make sure the project is selected and click Finish as shown below&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/424x443/__key/communityserver-wikis-components-files/00-00-00-01-49/3678.contentimage_5F00_38504.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/3678.contentimage_38504.jpg-424x443.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=UZ4JlYXtbN9xCciZT2FNs95hf1gOncuLzesJ8pv6IfE%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=Z14nzUUQ8WwBVJWPtqTdoQ==" style="max-height: 443px;max-width: 424px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;Now select the Project, right click, clean and build the project as shown below:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/424x507/__key/communityserver-wikis-components-files/00-00-00-01-49/0535.contentimage_5F00_38505.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/0535.contentimage_38505.jpg-424x507.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=Ag6ZL%2BEC%2BrDx7Jf%2F1jDb7FJq2L8b%2F%2FNPSXzOeY9lEyE%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=4aMZuJ0QIiqH5/6iKMyMLQ==" style="max-height: 507px;max-width: 424px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;&amp;nbsp; &lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/333x158/__key/communityserver-wikis-components-files/00-00-00-01-49/3187.contentimage_5F00_38506.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/3187.contentimage_38506.jpg-333x158.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=m4bAmDknI0NfU6z1l2ErQP%2FypeZ6iAkkhVfU1FB%2F6Ck%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=Q2cBnXm/NKNcq6SEzZa5fg==" style="max-height: 158px;max-width: 333px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;You can see the build progress / status in console window, if everything goes well you can see build finishes as shown:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;&lt;br /&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/541x300/__key/communityserver-wikis-components-files/00-00-00-01-49/4657.contentimage_5F00_38507.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/4657.contentimage_38507.jpg-541x300.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=IPMKB4zWfz2ba9sjdKM684TTgWn7zHFuTTx3Im4sIKk%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=Lh7cTKuma/nFP6S63r++fg==" style="max-height: 300px;max-width: 541px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;When the build is complete, the ‘ksdk_platform_lib.a’ is generated in the directory according to the build target which is located here &lt;span style="background:aqua;text-decoration:underline;"&gt;“C:/Freescale/KSDK_1.0.0/lib/ksdk_platform_lib/kds/K64F12/debug/ksdk_platform_lib.a”&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#3333cc;font-size:12pt;background:aqua;font-family:Tahoma, sans-serif;text-decoration:underline;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0 0 1.0pt 0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;We need to provide this path in our new project in &amp;quot;Cross ARM C++ Linker&amp;quot; option to add the KSDK library in the compiler. (this will be shown later while creating new project)&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0 0 1.0pt 0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="color:#3333cc;font-size:12pt;font-family:Tahoma, sans-serif;text-decoration:underline;"&gt;&lt;strong&gt;Creating New Project:&lt;/strong&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#3333cc;font-size:12pt;font-family:Tahoma, sans-serif;text-decoration:underline;"&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;So let’s start in creating a new project using KDS + KSDK IDE&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;Open KDS IDE by double clicking the KDS icon present in your desktop:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;It will ask for the Workspace, give the path of your choice and click ‘ok’&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/429x199/__key/communityserver-wikis-components-files/00-00-00-01-49/2514.contentimage_5F00_38508.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/2514.contentimage_38508.jpg-429x199.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=7mE7BpXpSjeNrVF9Ujwo3wkgzL0L5FkwSIsZsOAkfQg%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=+uavRAPHMSExzHKuSmxMRg==" style="max-height: 199px;max-width: 429px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;Next create a New project by clicking&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-left:72.0pt;"&gt;&lt;span style="text-decoration:underline;font-size:12pt;"&gt;&lt;span lang="EN-US" style="font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;File -&amp;gt; New&amp;nbsp; -&amp;gt; Kinetis Design Studio Project&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/529x274/__key/communityserver-wikis-components-files/00-00-00-01-49/1018.contentimage_5F00_38509.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/1018.contentimage_38509.jpg-529x274.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=WJlH11oyiNGU5EVaEPyBXpDWv56aCs%2BjC%2B9pKkstrxc%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=LMZQnf2jCUk2OViD5egphQ==" style="max-height: 274px;max-width: 529px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;Choose project name of your choice, i have given it as “K64-LED Blink-KSDK” and click Next.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;&amp;nbsp; &lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/381x437/__key/communityserver-wikis-components-files/00-00-00-01-49/2570.contentimage_5F00_38510.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/2570.contentimage_38510.jpg-381x437.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=AN65Oreg7hcaONmyyRvtOhy42EvKa0k%2BdTS80IxBhxY%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=/yEvKt8WYQzMNwIMaHHzdg==" style="max-height: 437px;max-width: 381px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span lang="EN-US" style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;You can select device either by ‘Boards’ or ‘Processor’ option as shown&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span lang="EN-US" style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;&lt;br /&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/311x357/__key/communityserver-wikis-components-files/00-00-00-01-49/0435.contentimage_5F00_38511.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/0435.contentimage_38511.jpg-311x357.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=arEPAno89rL4Q0J%2BJ5Qsgk2Ecg0JhcByoV%2Bz9oaJu7k%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=Uc0z9w1DPbQZKZg1KNPIaA==" style="max-height: 357px;max-width: 311px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt; &lt;/span&gt;&lt;span style="color:#3333cc;font-family:Tahoma, sans-serif;font-size:12pt;line-height:1.5em;"&gt;I am selecting the target device by Boards option and selected “FRDM-K64F” and click Next as shown below:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/397x457/__key/communityserver-wikis-components-files/00-00-00-01-49/7382.contentimage_5F00_38512.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/7382.contentimage_38512.jpg-397x457.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=aed2W7Ki2JYtMDEowOZtUzhcQFDsk434gdfL%2FrW3a0U%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=q8+Oh9t2LjyunfwLF/l0Sg==" style="max-height: 457px;max-width: 397px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;"&gt;&lt;span lang="EN-US" style="font-family:Tahoma, sans-serif;color:#3333cc;"&gt;You can see the Device in target board is “&lt;/span&gt;&lt;span style="font-family:Tahoma, sans-serif;color:#3333cc;"&gt;MK64FN1M0LL12” &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;In the next screen you can find below options to be selected in Rapid Application Development window&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;Select the check box “Kinetis SDK”&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;And select the radio button “Environment variable” by which default it displays “KSDK_PATH” which is in installed directory.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;Make sure that &amp;quot;Processor Expert&amp;quot; is not checked&lt;span style="background:white;"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#3333cc;font-size:12pt;background:white;font-family:Tahoma, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;Next click Finish button and proceed further.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/372x426/__key/communityserver-wikis-components-files/00-00-00-01-49/1524.contentimage_5F00_38513.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/1524.contentimage_38513.jpg-372x426.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=LGCVxFIY96TUP7Jb0z6FVdN%2FbH%2BE68e0EHEI69AWa2s%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=baQDKhVUIE4Hx7siH3uxEg==" style="max-height: 426px;max-width: 372px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;You can see a KDS project window created for our New project. To see a relevant perspective windows click on ‘Windows&amp;gt;Reset Perspective’ as shown below:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;&amp;nbsp; &lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/537x252/__key/communityserver-wikis-components-files/00-00-00-01-49/2185.contentimage_5F00_38514.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/2185.contentimage_38514.jpg-537x252.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=UJQ%2BHLCT32HpFN9aXmQBRk801fhVn11eoHkfE1NF%2FDM%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=oueiyfn0O8hrLgpE2GFSqw==" style="max-height: 252px;max-width: 537px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;margin-top:3.0pt;margin-bottom:3.0pt;background:white;"&gt;&lt;span lang="EN-US" style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;You can see below updated project window and is created and ready to include the source code.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/606x325/__key/communityserver-wikis-components-files/00-00-00-01-49/0042.contentimage_5F00_38515.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/0042.contentimage_38515.jpg-606x325.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=ipkhdV%2B9EThCrx0F9sGdFrivhXLgIxffPrC7%2FTgTBc4%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=0H1zN8IxQ17lG8wsN+r5ug==" style="max-height: 325px;max-width: 606px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;It is necessary to include the required ‘board’ folder for this project. To add it right click on the project just created and chose &amp;quot;Import&amp;quot;.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;&amp;nbsp; &lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/469x417/__key/communityserver-wikis-components-files/00-00-00-01-49/2260.contentimage_5F00_38516.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/2260.contentimage_38516.jpg-469x417.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=HcdJ54ZMPZdiSk6QSx2Hv8uI%2Fyq7xq%2FGFYIjACRa6ss%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=HMjAQ77BAorNNY5Mb/Fywg==" style="max-height: 417px;max-width: 469px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span lang="EN-US" style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;Select the “File System” and click on Next as shown below:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/369x385/__key/communityserver-wikis-components-files/00-00-00-01-49/2664.contentimage_5F00_38517.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/2664.contentimage_38517.jpg-369x385.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=u1pgMW8a0%2FFUZWuwff6IoQgyiP2AM0%2FzlWWA%2FS0vThc%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=FkgBOWJfEgrbhPmZEVqGDg==" style="max-height: 385px;max-width: 369px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span lang="EN-US" style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;Now look for the board folder in the following path: &lt;span style="background:aqua;text-decoration:underline;"&gt;C:\Freescale\KSDK_1.0.0\boards\&lt;/span&gt;&amp;nbsp; as shown below:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;margin-top:3.0pt;margin-bottom:3.0pt;background:white;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/272x527/__key/communityserver-wikis-components-files/00-00-00-01-49/0488.contentimage_5F00_38518.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/0488.contentimage_38518.jpg-272x527.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=gQJB0z6Ur5ls8MkUdXtRKorcznhtj7gCgQaLivttcy8%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=X0KdfHcQgw802KKcOOzu+g==" style="max-height: 527px;max-width: 272px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span lang="EN-US" style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;Select only *.c and *.h files from option as shown below and proceed to Finish.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/390x392/__key/communityserver-wikis-components-files/00-00-00-01-49/7345.contentimage_5F00_38519.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/7345.contentimage_38519.jpg-390x392.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=sN4ShPUJXHIvh6vXJYKxMa%2FJ1JJT0V99uBp%2BMzIgxgA%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=q0/1d9QuEQbjWNSrdJ1awA==" style="max-height: 392px;max-width: 390px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span lang="EN-US" style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;You can see the board header folder “frdmk64f120m” is added to our project folder as shown:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/303x353/__key/communityserver-wikis-components-files/00-00-00-01-49/4278.contentimage_5F00_38520.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/4278.contentimage_38520.jpg-303x353.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=EqvC7K4k3x6wGDU%2FO%2BHTJPUumIFqpwHnvrERkvk48uY%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=WUUibsYBLfJarunYngnkFQ==" style="max-height: 353px;max-width: 303px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;Next we need to add the KSDK library in the compiler, this step is very important else u will not be able to compile your project. &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;To add this you need to right click the project and click in &amp;quot;Properties&amp;quot;. &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/379x442/__key/communityserver-wikis-components-files/00-00-00-01-49/7411.contentimage_5F00_38521.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/7411.contentimage_38521.jpg-379x442.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=u6%2BiTxfF1PidWci6Qy6LuWP5hJ%2BU4jExHT%2FtnON5Ty4%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=lbedtzOgfSTuyVD5qxhEdg==" style="max-height: 442px;max-width: 379px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;select &amp;quot;C/C++ Build&amp;quot; menu go to &amp;quot;Settings&amp;quot;.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;Then click on “Tool Settings” and select &amp;quot;Miscellaneous&amp;quot; under &amp;quot;Cross ARM C++ Linker&amp;quot; option as shown below:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/490x442/__key/communityserver-wikis-components-files/00-00-00-01-49/3618.contentimage_5F00_38522.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/3618.contentimage_38522.jpg-490x442.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=CwXip5nISTlbzMw0Z58Lgmim5a2W9GJ99JM7YSvMYpk%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=UgDWRleXjPBL+kw6UI9t6w==" style="max-height: 442px;max-width: 490px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;"&gt;&lt;span style="font-family:Tahoma, sans-serif;color:#3333cc;"&gt;Click on add object button &lt;/span&gt;&lt;a class="jive-link-external-small" href="https://community.freescale.com/servlet/JiveServlet/showImage/102-101862-1-14168/pastedImage_170.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;span style="font-family:Tahoma, sans-serif;color:#3333cc;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:Tahoma, sans-serif;color:#3333cc;"&gt; as shown above and add the library here. &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;The default path is &lt;span style="background:aqua;text-decoration:underline;"&gt;&amp;quot;C:\Freescale\KSDK_1.0.0\lib\ksdk_platform_lib\kds\K64F12\Debug\ksdk_platform_lib.a&amp;quot;.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;&amp;nbsp; &lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/605x375/__key/communityserver-wikis-components-files/00-00-00-01-49/3223.contentimage_5F00_38523.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/3223.contentimage_38523.jpg-605x375.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=8x6z%2FkmQ0iFkVvHmc08qkP3ki%2BKc%2B%2BVxsFiLhMDmvpM%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=bsA/v3sdbShwwcb9RoKmZw==" style="max-height: 375px;max-width: 605px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;And proceed further&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/481x423/__key/communityserver-wikis-components-files/00-00-00-01-49/4784.contentimage_5F00_38524.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/4784.contentimage_38524.jpg-481x423.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=9kfre%2BTWViKfWeDIslH%2B%2FTFiJkdlaZ671maSxCHFrho%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=eTCLEiqeuXPAS98uIjMFzg==" style="max-height: 423px;max-width: 481px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;Now our platform is ready and we need to write our code to toggle the RGB&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;Now, let’s toggle an RGB LED. It is necessary to include the boards.h file:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;#include &amp;quot;board.h&amp;quot; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;And build once to check it is error free.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/605x304/__key/communityserver-wikis-components-files/00-00-00-01-49/1641.contentimage_5F00_38525.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/1641.contentimage_38525.jpg-605x304.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=qaYHSZyHBJA1M2hqT8eQBlQU%2B2R8UG1GUEfo0egCBDo%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=txPSqYDIESk5EY5BjTKvcQ==" style="max-height: 304px;max-width: 605px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;After compiling i got an error saying that ‘board.h’ is not present the error is as shown below:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/606x225/__key/communityserver-wikis-components-files/00-00-00-01-49/5873.contentimage_5F00_38526.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/5873.contentimage_38526.jpg-606x225.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=2gFPj88HqaLByvDAq2AAhBwsBN%2B5hw5mkPccRC6lV1k%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=U1QkOxJWxevG13gZR/hDLA==" style="max-height: 225px;max-width: 606px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;To overcome this error we need to add the path of board.h to #includes of our project.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;Right click on project and select properties and select the choice as shown:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/462x411/__key/communityserver-wikis-components-files/00-00-00-01-49/3730.contentimage_5F00_38527.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/3730.contentimage_38527.jpg-462x411.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=tVxpGpBcia3p7ujP8dIHMgQl9QGk%2F4kmGSj3RfL4pMg%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=jRJSdFQfMLErSdB37Pxe4w==" style="max-height: 411px;max-width: 462px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;Now we need to add the path, click on ‘ADD..’ button and you can see a small windows appears as shown&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/493x341/__key/communityserver-wikis-components-files/00-00-00-01-49/4300.contentimage_5F00_38528.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/4300.contentimage_38528.jpg-493x341.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=xKfJqwzHv%2BNyCMunCMnsPi3z8RC0Yq7WRcpo5XgxLhg%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=G9uenTTSAWY2RXvxkUVeKw==" style="max-height: 341px;max-width: 493px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;Tick the check box ‘Is a workspace path’ and click on Workspace... as shown.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;Select the directory that contains ‘board.h’ which we added earlier as shown:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/493x349/__key/communityserver-wikis-components-files/00-00-00-01-49/3704.contentimage_5F00_38529.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/3704.contentimage_38529.jpg-493x349.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=Vof%2BF0swe0ccsQ%2Be20MwjjWc7g8SMRdgXqEdBrav8nE%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=Y7rUvkEF0MBP2CFj5v7BNA==" style="max-height: 349px;max-width: 493px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;Proceed further by clicking ‘ok’&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;You can see the path we selected appears in the last entry in listed down as shown:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/444x388/__key/communityserver-wikis-components-files/00-00-00-01-49/1651.contentimage_5F00_38530.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/1651.contentimage_38530.jpg-444x388.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=mC%2FEwEEhK2ROSU79bUKoDCDpVtFDUAj3KT%2BdYjRem2U%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=rQ+NEzxEurUjDdELbn8YxQ==" style="max-height: 388px;max-width: 444px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;Click on Apply and ‘OK’ and proceed further.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;Now clean and build the project you can see the compilation results without errors.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;We are now proceeding further in coding our requirement to toggle RGB LEDs. &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;Refer to the K64F board schematic the 3 LED’s are connected to Port-B and Port-E pins&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/607x243/__key/communityserver-wikis-components-files/00-00-00-01-49/3113.contentimage_5F00_38531.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/3113.contentimage_38531.jpg-607x243.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=vW%2FAiCgmyBHrA9d80AySzrBTdKaWW8k5y9EctXUQZzU%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=ACnuNK3ng9uhrMEBhgpUvQ==" style="max-height: 243px;max-width: 607px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;You can see these LED’s are connected in active-Low connection, i.e common Anode, we should provide Low signal to port pins to glow a LED.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;To know how GPIO have been defined in KSDK library click on include folder and navigate to &lt;/span&gt;&lt;span style="color:#3333cc;background:aqua;text-decoration:underline;font-family:Tahoma, sans-serif;"&gt;/drivers/gpio&lt;/span&gt;&lt;span style="font-family:Tahoma, sans-serif;color:#3333cc;"&gt; and select ‘fsl_gpio_driver.h’ as shown below:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;(we are accessing the GPIO feature through driver layer not from HAL)&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/607x326/__key/communityserver-wikis-components-files/00-00-00-01-49/4774.contentimage_5F00_38532.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/4774.contentimage_38532.jpg-607x326.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=6%2BusG9bZ%2FT%2FuS6QdnF%2BZQ%2F2gqDfJexguVK2ShFB0ILo%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=wnfDgno0Sa+iLOySxaFwWg==" style="max-height: 326px;max-width: 607px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;The GPIO driver uses the virtual GPIO name rather than an actual port and a pin number.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt; By using the virtual name, each pin name is self-explanatory. To use the GPIO driver, an enumeration variable must be predefined in the user application files. The variable saves all GPIO pin information used in a project.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;"&gt;&lt;span style="color:#3333cc;background:aqua;font-family:Tahoma, sans-serif;"&gt;&lt;strong&gt;enum&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt; _gpio_pins&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;{&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;em&gt;kGpioLED11&lt;/em&gt;&amp;nbsp; = GPIO_MAKE_PIN(HW_GPIOB, 0x15), // PTB-21 = 0x15 -&amp;gt; BLUE LED.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;em&gt;kGpioLED22&lt;/em&gt;&amp;nbsp; = GPIO_MAKE_PIN(HW_GPIOB, 0x16), // PTB-22 = 0x16 -&amp;gt; RED LED.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;em&gt;kGpioLED33&lt;/em&gt;&amp;nbsp; = GPIO_MAKE_PIN(HW_GPIOE, 0x1A), // PTE-26 = 0x1A -&amp;gt; Green LED.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;};&lt;/span&gt;&lt;/p&gt;













&lt;/blockquote&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;Actually by default &lt;em&gt;&lt;span style="background:aqua;"&gt;kGpioLED1&lt;/span&gt;, &lt;span style="background:aqua;"&gt;kGpioLED2&lt;/span&gt;, &lt;span style="background:aqua;"&gt;kGpioLED3&lt;/span&gt; &lt;/em&gt;have been already defined in library, just for our understanding i am creating another enum port variables for 3-LED as &lt;em&gt;&lt;span style="background:aqua;"&gt;kGpioLED11&lt;/span&gt;, &lt;span style="background:aqua;"&gt;kGpioLED22&lt;/span&gt;&lt;/em&gt;, &lt;span style="background:aqua;"&gt;&lt;em&gt;kGpioLED33&lt;/em&gt;&lt;/span&gt; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;Now we shall toggle all the 3 LED’s one by one i.e RED on with delay/ RED off with delay,&amp;nbsp; Blue on with delay/ Blue off with delay, Green on with delay/ Green off with delay and loops back.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;Below is my line of code to do this task&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;"&gt;&lt;span style="color:#3333cc;background:aqua;font-family:Tahoma, sans-serif;"&gt;&lt;strong&gt;#include&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt; &amp;quot;fsl_device_registers.h&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;"&gt;&lt;span style="color:#3333cc;background:aqua;font-family:Tahoma, sans-serif;"&gt;&lt;strong&gt;#include&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt; &amp;quot;board.h&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;padding:0px;margin-bottom:.0001pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;"&gt;&lt;span style="color:#3333cc;background:aqua;font-family:Tahoma, sans-serif;"&gt;&lt;strong&gt;enum&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt; _gpio_pins&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;{&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;em&gt;kGpioLED11&lt;/em&gt;&amp;nbsp; = GPIO_MAKE_PIN(HW_GPIOB, 0x15), // PTB-21 = 0x15 -&amp;gt; BLUE LED.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;em&gt;kGpioLED22&lt;/em&gt;&amp;nbsp; = GPIO_MAKE_PIN(HW_GPIOB, 0x16), // PTB-22 = 0x16 -&amp;gt; RED LED.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;em&gt;kGpioLED33&lt;/em&gt;&amp;nbsp; = GPIO_MAKE_PIN(HW_GPIOE, 0x1A), // PTE-26 = 0x1A -&amp;gt; Green LED.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;};&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;padding:0px;margin-bottom:.0001pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;"&gt;&lt;span style="color:#3333cc;background:aqua;font-family:Tahoma, sans-serif;"&gt;&lt;strong&gt;static&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt; &lt;strong&gt;int&lt;/strong&gt; i = 0;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;"&gt;&lt;span style="color:#3333cc;background:aqua;font-family:Tahoma, sans-serif;"&gt;&lt;strong&gt;int&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt; &lt;strong&gt;main&lt;/strong&gt;(&lt;strong&gt;void&lt;/strong&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;{&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Write your code here */&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;strong&gt;short&lt;/strong&gt; value = 0;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hardware_init();&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;padding:0px;margin-bottom:.0001pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;strong&gt;GPIO_DRV_SetPinDir&lt;/strong&gt;(&lt;em&gt;kGpioLED11&lt;/em&gt;, &lt;em&gt;kGpioDigitalOutput&lt;/em&gt;); //configuring PTB21 port pin as output&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;strong&gt;GPIO_DRV_WritePinOutput&lt;/strong&gt;(&lt;em&gt;kGpioLED11&lt;/em&gt;, 1); // driving the PTB21 port pin to HIGH == LED off&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;padding:0px;margin-bottom:.0001pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;strong&gt;GPIO_DRV_SetPinDir&lt;/strong&gt;(&lt;em&gt;kGpioLED22&lt;/em&gt;, &lt;em&gt;kGpioDigitalOutput&lt;/em&gt;); //configuring PTB22 port pin as output&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;strong&gt;GPIO_DRV_WritePinOutput&lt;/strong&gt;(&lt;em&gt;kGpioLED22&lt;/em&gt;, 1); // driving the PTB22 port pin to HIGH == LED off&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;padding:0px;margin-bottom:.0001pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;strong&gt;GPIO_DRV_SetPinDir&lt;/strong&gt;(&lt;em&gt;kGpioLED33&lt;/em&gt;, &lt;em&gt;kGpioDigitalOutput&lt;/em&gt;);//configuring PTE26 port pin as output&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;strong&gt;GPIO_DRV_WritePinOutput&lt;/strong&gt;(&lt;em&gt;kGpioLED33&lt;/em&gt;, 1); // driving the PTE26 port pin to HIGH == LED off&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;padding:0px;margin-bottom:.0001pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* This for loop should be replaced. By default this loop allows a single stepping. */&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;padding:0px;margin-bottom:.0001pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;padding:0px;margin-bottom:.0001pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;strong&gt;for&lt;/strong&gt; (;;) {&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;padding:0px;margin-bottom:.0001pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value=0;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;strong&gt;GPIO_DRV_WritePinOutput&lt;/strong&gt;(&lt;em&gt;kGpioLED11&lt;/em&gt;, value); //Blue LED on&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;strong&gt;for&lt;/strong&gt; (i = 0; i&amp;lt;10000000; i++); // software delay&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value = value^1; // value=1&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;strong&gt;GPIO_DRV_WritePinOutput&lt;/strong&gt;(&lt;em&gt;kGpioLED11&lt;/em&gt;, value); //Blue LED off&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;strong&gt;for&lt;/strong&gt; (i = 0; i&amp;lt;10000000; i++);&amp;nbsp; // software delay&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;padding:0px;margin-bottom:.0001pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value=0;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;strong&gt;GPIO_DRV_WritePinOutput&lt;/strong&gt;(&lt;em&gt;kGpioLED22&lt;/em&gt;, value); // RED LED on&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;strong&gt;for&lt;/strong&gt; (i = 0; i&amp;lt;10000000; i++); // software delay&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value = value^1; // value=1&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;strong&gt;GPIO_DRV_WritePinOutput&lt;/strong&gt;(&lt;em&gt;kGpioLED22&lt;/em&gt;, value); // RED LED off&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;strong&gt;for&lt;/strong&gt; (i = 0; i&amp;lt;10000000; i++);&amp;nbsp; // software delay&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;padding:0px;margin-bottom:.0001pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value=0;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;strong&gt;GPIO_DRV_WritePinOutput&lt;/strong&gt;(&lt;em&gt;kGpioLED33&lt;/em&gt;, value); // Green LED on&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;strong&gt;for&lt;/strong&gt; (i = 0; i&amp;lt;10000000; i++);&amp;nbsp; // software delay&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value = value^1; //1&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;strong&gt;GPIO_DRV_WritePinOutput&lt;/strong&gt;(&lt;em&gt;kGpioLED33&lt;/em&gt;, value); // Green LED off&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;strong&gt;for&lt;/strong&gt; (i = 0; i&amp;lt;10000000; i++);&amp;nbsp; // software delay&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;padding:0px;margin-bottom:.0001pt;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Never leave main */&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;strong&gt;return&lt;/strong&gt; 0;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;}&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;////////////////////////////////////////////////////////////////////////////////&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;// EOF&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;////////////////////////////////////////////////////////////////////////////////&lt;/span&gt;&lt;/p&gt;













&lt;/blockquote&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;Explanation of the code:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#3333cc;font-size:12pt;font-family:Tahoma, sans-serif;text-decoration:underline;"&gt;Initializing&lt;/span&gt;&lt;span style="color:#3333cc;font-size:12pt;text-decoration:underline;font-family:Tahoma, sans-serif;"&gt; the Port pin&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#3333cc;font-size:12pt;text-decoration:underline;font-family:Tahoma, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;"&gt;&lt;span style="color:#3333cc;background:aqua;font-family:Tahoma, sans-serif;"&gt;&lt;strong&gt;enum&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt; _gpio_pins&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;{&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;em&gt;kGpioLED11&lt;/em&gt;&amp;nbsp; = GPIO_MAKE_PIN(HW_GPIOB, 0x15), // PTB-21 = 0x15 -&amp;gt; BLUE LED.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;em&gt;kGpioLED22&lt;/em&gt;&amp;nbsp; = GPIO_MAKE_PIN(HW_GPIOB, 0x16), // PTB-22 = 0x16 -&amp;gt; RED LED.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;em&gt;kGpioLED33&lt;/em&gt;&amp;nbsp; = GPIO_MAKE_PIN(HW_GPIOE, 0x1A), // PTE-26 = 0x1A -&amp;gt; Green LED.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;};&lt;/span&gt;&lt;/p&gt;













&lt;/blockquote&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;Here we are enumerating the port pins as hardware GPIO ports and creating variables for it.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#3333cc;font-size:12pt;text-decoration:underline;font-family:Tahoma, sans-serif;"&gt;Configuring the Port pin &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#3333cc;font-size:12pt;text-decoration:underline;font-family:Tahoma, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;"&gt;&lt;span style="color:#3333cc;background:aqua;font-family:Tahoma, sans-serif;"&gt;&lt;strong&gt;GPIO_DRV_SetPinDir&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;(&lt;em&gt;kGpioLED11&lt;/em&gt;, &lt;em&gt;kGpioDigitalOutput&lt;/em&gt;); //configuring PTB21 port pin as output&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;margin-bottom:.0001pt;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;This function configures the PortB 21 pin as digital output and by default this will be pull down to GND (i.e port pin driven to zero)&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;margin-bottom:.0001pt;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;"&gt;&lt;span style="color:#3333cc;background:aqua;font-family:Tahoma, sans-serif;"&gt;&lt;strong&gt;GPIO_DRV_WritePinOutput&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;(&lt;em&gt;kGpioLED11&lt;/em&gt;, 1); // driving the PTB21 port pin to HIGH == LED off&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;This function assigns/writes PortB-21 pin to ‘1’ which means the LED is in off condition.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;Same thing is done for other 2 port led’s &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;Next in the infinite for loop we are toggling i.e performing logical ‘X-OR’ operation on the variable ‘value’ and assigning this to port pins &lt;/span&gt;&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;text-indent:36.0pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;value=0;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;strong&gt;GPIO_DRV_WritePinOutput&lt;/strong&gt;(&lt;em&gt;kGpioLED11&lt;/em&gt;, value); //Blue LED on&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;strong&gt;for&lt;/strong&gt; (i = 0; i&amp;lt;10000000; i++); // software delay&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value = value^1; // value=1&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;strong&gt;GPIO_DRV_WritePinOutput&lt;/strong&gt;(&lt;em&gt;kGpioLED11&lt;/em&gt;, value); //Blue LED off&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;background:aqua;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;strong&gt;for&lt;/strong&gt; (i = 0; i&amp;lt;10000000; i++);&amp;nbsp; // software delay&lt;/span&gt;&lt;/p&gt;













&lt;/blockquote&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;Now it’s time to clean and compile/Build the project&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/437x197/__key/communityserver-wikis-components-files/00-00-00-01-49/2630.contentimage_5F00_38533.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/2630.contentimage_38533.jpg-437x197.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=fgF%2Bc3xdUHBkUjg0BHjMeb7uYCrdwYTaZTWyfePDY4U%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=D/kyLIrjvHXNSsy/C7cjow==" style="max-height: 197px;max-width: 437px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt; &lt;/span&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;You can see the build output as shown below:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;&amp;nbsp; &lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/606x388/__key/communityserver-wikis-components-files/00-00-00-01-49/0576.contentimage_5F00_38534.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/0576.contentimage_38534.jpg-606x388.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=WeeBSJSpzWyAReUMg4O6QoXRc3bjkVS6CcurtMGIlgs%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=9U9Wg9c2L4eY+fVuC5EnSQ==" style="max-height: 388px;max-width: 606px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;Now we need to setup for Debug configuration:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;As a pre-requisite the board is loaded with “JLink_OpenSDA_V2.bin” OpenSDA_V2 application driver file. And same will be used for connecting hardware to PC.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/606x234/__key/communityserver-wikis-components-files/00-00-00-01-49/3618.contentimage_5F00_38535.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/3618.contentimage_38535.jpg-606x234.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=xepEOX7kMwfsiFaa3g3YgaGivn6NFUFb6fURR%2B%2BSgV4%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=K1xKYK+MSJkxGU6oxED1nQ==" style="max-height: 234px;max-width: 606px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#3333cc;font-family:Tahoma, sans-serif;font-size:12pt;line-height:1.5em;"&gt;Select ‘GDB SEGGER J-Link Debugging and double click or right click and select ‘New’&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#3333cc;font-family:Tahoma, sans-serif;font-size:12pt;line-height:1.5em;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/605x318/__key/communityserver-wikis-components-files/00-00-00-01-49/1565.contentimage_5F00_38536.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/1565.contentimage_38536.jpg-605x318.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=Vv5%2B7x8eactdg3MKH2ZPZAvW6YP%2B%2FBDUd96wRy%2Fti%2Fc%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=R9Bb1qouW4wjJU3d1q69Sg==" style="max-height: 318px;max-width: 605px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;You can see a default name as project name as shown below: make sure under ‘Main’ tab C/C++ application there is *.elf file name of your project.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/608x382/__key/communityserver-wikis-components-files/00-00-00-01-49/4784.contentimage_5F00_38537.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/4784.contentimage_38537.jpg-608x382.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=40seT76V6o9b34d%2BstSbLN93ESrmvwpGlOdueJ9gj%2BE%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=E2LbouVm0CaUZrOqjCAyfg==" style="max-height: 382px;max-width: 608px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;Next click on Debuger tab check ‘Device name’ field by default it will blank.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span lang="EN-US" style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;Now specify device name “MK64FN1M0xxx12” and click on apply and close the Debug configuration window as shown below:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/608x382/__key/communityserver-wikis-components-files/00-00-00-01-49/1641.contentimage_5F00_38538.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/1641.contentimage_38538.jpg-608x382.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=v789hCUw9ctlo9E6OBo%2BfavjxJ8fp7WyEPjImPTGtMs%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=rJoM4UIih06umS0FaQrAgA==" style="max-height: 382px;max-width: 608px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;Now connect FRDM-K64F board to PC through USB mini connector connecting to “SDA USB” port of board as shown:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/244x320/__key/communityserver-wikis-components-files/00-00-00-01-49/8507.contentimage_5F00_38539.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/8507.contentimage_38539.jpg-244x320.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=sYGFzqM%2Fwhb9EhDUk9dqbHVLyb9mxiguDuj60Qfb3js%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=8JHfhS+Lb3tuKPNxE5mgtw==" style="max-height: 320px;max-width: 244px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;Click on Debug icon as shown and select Debug Configuration and proceed to debug your project:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;&lt;br /&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/320x159/__key/communityserver-wikis-components-files/00-00-00-01-49/6443.contentimage_5F00_38540.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/6443.contentimage_38540.jpg-320x159.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=C3Xji8zSYRZuULu8GEciluFZCZD3al3uxJFpaHV6ci0%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=B3v+I4bWp7QEEGeW+hXdMA==" style="max-height: 159px;max-width: 320px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;Click on Debug&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/551x347/__key/communityserver-wikis-components-files/00-00-00-01-49/8562.contentimage_5F00_38541.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/8562.contentimage_38541.jpg-551x347.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=rOR8ACS1WqOFY5EraClDDdaYgsF3bszO4esOw8GgCQc%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=6wDfYwAgadtEewIs7ujsRg==" style="max-height: 347px;max-width: 551px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;Now you can see the Debug window opens ready for single stepping or Running the project as shown:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/605x392/__key/communityserver-wikis-components-files/00-00-00-01-49/0243.contentimage_5F00_38542.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/0243.contentimage_38542.jpg-605x392.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=29Ndrw0AIFQLiSNQ2Cfe2o0B4xZ4NGyyqeaVfxw5W7Q%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=XYzXbdoGzZyEP7KdZajtLA==" style="max-height: 392px;max-width: 605px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;Click on Resume button or press ‘F8’ button for executing the project.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;You can see the output as shown&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/412x536/__key/communityserver-wikis-components-files/00-00-00-01-49/3362.contentimage_5F00_38543.jpg"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/3362.contentimage_38543.jpg-412x536.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=8%2FWNFhLW8fRDxvr7XRrSWUfj8y2xcCw3jMavwnOlLOs%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=SHOz3vN6pwDRY/gIWgOp9g==" style="max-height: 536px;max-width: 412px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="line-height:1.5em;color:#3333cc;font-size:12pt;font-family:Tahoma, sans-serif;"&gt;You can see below video recording of the project execution from below link.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="line-height:1.5em;color:#3333cc;font-size:12pt;font-family:Tahoma, sans-serif;"&gt;&lt;a class="jive-link-video-small" href="https://www.element14.com/community/videos/13607/l/rgb-led-toggle-using-kdssdk-using-k64f-freedom-board"&gt;RGB Led Toggle using KDS+SDK using K64F Freedom board&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="line-height:1.5em;color:#3333cc;font-size:12pt;font-family:Tahoma, sans-serif;"&gt;&lt;span id="fe868cab_35cc_40a8_bc4a_408b1fcde0ec"&gt;&lt;span&gt;&lt;a href="https://players.brightcove.net/1362235890001/NkxiVJdjx_default/index.html?videoId=3785221251001"&gt;players.brightcove.net/.../index.html&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:Tahoma, sans-serif;color:#3333cc;"&gt;And i have enclosed the project folder for quick view and execution.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#3333cc;font-size:12pt;font-family:Tahoma, sans-serif;"&gt;Happy Toggling &lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/16x16/__key/communityserver-wikis-components-files/00-00-00-01-49/0537.contentimage_5F00_1.png"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/0537.contentimage_1.png-16x16.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=LNwMSWfE2obnVrB3UkcBKX%2FxkwZXe36Uh2rgwWPI%2FTY%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=zGEM7pHL10Vt71gae75OdA==" style="max-height: 16px;max-width: 16px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt; &lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/16x16/__key/communityserver-wikis-components-files/00-00-00-01-49/0537.contentimage_5F00_1.png"&gt;&lt;img loading="lazy" alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/0537.contentimage_1.png-16x16.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=LNwMSWfE2obnVrB3UkcBKX%2FxkwZXe36Uh2rgwWPI%2FTY%3D&amp;amp;se=2026-05-28T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=zGEM7pHL10Vt71gae75OdA==" style="max-height: 16px;max-width: 16px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div class="migration-injected-attachments"&gt;&lt;div style="font-weight:bold;margin:15px 0 5px 0;"&gt;Attachments:&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;table style="border:0;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td colspan="2"&gt;&lt;span class="_se_attachment" id="attid_https://www.element14.com/community/api/core/v3/attachments/153917"&gt;&lt;a href="https://community.element14.com/cfs-file/__key/communityserver-wikis-components-files/00-00-00-01-49/K64_2D00_LED-Blink_2D00_KSDK_2D00_project-file.rar"&gt;community.element14.com/.../K64_2D00_LED-Blink_2D00_KSDK_2D00_project-file.rar&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: k64, freedom-board, kinetis, frdm-k64f, kds, led-toggling&lt;/div&gt;
</description></item></channel></rss>