<?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>Tutorial: Enlightning the Freescale Freedom FRDM-KL25Z Board</title><link>https://community.element14.com/products/manufacturers/nxp/w/documents/23621/tutorial-enlightning-the-freescale-freedom-frdm-kl25z-board</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>Tutorial: Enlightning the Freescale Freedom FRDM-KL25Z Board</title><link>https://community.element14.com/products/manufacturers/nxp/w/documents/23621/tutorial-enlightning-the-freescale-freedom-frdm-kl25z-board</link><pubDate>Tue, 09 Nov 2021 17:05:27 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:4e584341-525e-438c-b55e-3dc3e75984e8</guid><dc:creator>MAb</dc:creator><comments>https://community.element14.com/products/manufacturers/nxp/w/documents/23621/tutorial-enlightning-the-freescale-freedom-frdm-kl25z-board#comments</comments><description>Current Revision posted to Documents by MAb on 11/9/2021 5:05:27 PM&lt;br /&gt;
&lt;p style="margin:0;text-align:left;"&gt;&lt;span style="color:#ff6600;"&gt;&lt;em style="font-family:arial,helvetica,sans-serif;font-size:12pt;"&gt;This tutorial was extracted from Erich Styger blog &lt;a class="jive-link-external-small" href="http://mcuoneclipse.wordpress.com/" rel="nofollow" target="_blank"&gt;http://mcuoneclipse.wordpress.com&lt;/a&gt; with his agreement.&lt;/em&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;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:verdana,geneva;"&gt;The schematics for the Freedom board is now available on the element14 Freedom Board site (you need to log into the element14 community first). So time to write a tutorial how to use the LED on that board.&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-family:verdana,geneva;"&gt;In “&lt;a class="jive-link-wiki-small" href="/products/devtools/kinetiskl2freedomboard/w/documents/10456/codewarrior-tutorial-for-frdm-kl25z-freertos-with-kinetis-l-arm-cortex-m0"&gt;FreeRTOS with GCC, Cortex-M0+ and Kinetis KL25Z Freedom Board&lt;/a&gt;” and “&lt;a class="jive-link-external-small" href="http://mcuoneclipse.wordpress.com/2012/08/05/a-shell-for-the-freedom-kl25z-board/" rel="nofollow" target="_blank"&gt;A Shell for the KL25Z Freedom Board&lt;/a&gt;” I have used that board with an RTOS: FreeRTOS. But it is really easy to use that board without an RTOS (‘bare metal’) too. In this tutorial I’m providing step by step instructions to use the RGB LED on the &lt;a class="jive-link-external-small" href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=FRDM-KL25Z&amp;amp;tid=vanFRDM-KL25Z" rel="nofollow" target="_blank"&gt;Freescale Freedom FRDM-KL25Z board&lt;/a&gt; with &lt;a class="jive-link-external-small" href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=PE_DRIVER_SUITE&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab" rel="nofollow" target="_blank"&gt;Processor Expert&lt;/a&gt; and the open source LED component.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&lt;span style="font-family:verdana,geneva;"&gt;&lt;/span&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="font-family:verdana,geneva;"&gt;I’m using &lt;a class="jive-link-external-small" href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=CW-MCU-10-3-BETA&amp;amp;parentCode=CW-MCU10&amp;amp;fpsp=1" rel="nofollow" target="_blank"&gt;Freescale CodeWarrior 10.3beta&lt;/a&gt; which has the ARM gcc build tools integrated for the Kinetis family. This tutorial features the Freedom KL25Z board with the version 10.3 of CodeWarrior, but is applicable with minor changes for any other Kinetis board and as well for CodeWarrior for MCU10.2.&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;em&gt;Note: This post shows screenshots of the upcoming CodeWarrior for MCU 10.3 which is not publicly available yet, but will be soon.&lt;/em&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;h2&gt;&lt;span style="font-family:verdana,geneva;font-size:10pt;"&gt;Additional Processor Expert Component Installation&lt;/span&gt;&lt;/h2&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:verdana,geneva;font-size:10pt;"&gt;In this tutorial I’m using additional open source Processor Expert components which are &lt;strong&gt;&lt;em&gt;not&lt;/em&gt; &lt;/strong&gt;part of the CodeWarrior Eclipse standard distribution:&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family:verdana,geneva;font-size:10pt;"&gt;&lt;a class="jive-link-external-small" href="http://www.steinerberg.com/EmbeddedComponents/LED" rel="nofollow" target="_blank"&gt;LED&lt;/a&gt;: Universal LED driver&lt;/span&gt;&amp;nbsp; &lt;/li&gt;&lt;li&gt;&lt;span style="font-family:verdana,geneva;font-size:10pt;"&gt;&lt;a class="jive-link-external-small" href="http://www.steinerberg.com/EmbeddedComponents/Wait" rel="nofollow" target="_blank"&gt;Wait&lt;/a&gt;: Universal waiting functions&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style="margin:0;"&gt;&amp;nbsp; &lt;span style="font-family:verdana,geneva;font-size:10pt;"&gt;Both *.PEupd files can be downloaded from the above links. To import them into CodeWarrior, I use the menu &lt;em&gt;Processor Expert &amp;gt; Import Package&lt;/em&gt;:&lt;/span&gt;&amp;nbsp; &lt;/p&gt;&lt;p style="margin:0;"&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;a href="http://mcuoneclipse.files.wordpress.com/2012/08/importing-processor-expert-package.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img alt="Importing Processor Expert Package" class="jiveImage size-full wp-image-4156" src="http://mcuoneclipse.files.wordpress.com/2012/08/importing-processor-expert-package.png?w=584" style="margin-left:auto;margin-right:auto;" title="Importing Processor Expert Package" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;text-align:center;"&gt;&lt;em&gt;Importing Processor Expert Package&lt;/em&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:verdana,geneva;"&gt;Then I browse to the &lt;em&gt;*.PEupd&lt;/em&gt; files and select them to import.&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;em style="font-family:verdana,geneva;"&gt;Hint: it is possible to import multiple components in a single step with selecting multiple files to import.&lt;/em&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-family:verdana,geneva;"&gt;After importing the components, it might be necessary to refresh the components list. To make sure all Processor Expert Views are loaded, I use the menu &lt;em&gt;Processor Expert &amp;gt; Show Views&lt;/em&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;a href="http://mcuoneclipse.files.wordpress.com/2012/08/show-processor-expert-views.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Show Processor Expert Views" class="wp-image-4158 jiveImage size-full" src="http://mcuoneclipse.files.wordpress.com/2012/08/show-processor-expert-views.png?w=584" style="margin-left:auto;margin-right:auto;" title="Show Processor Expert Views" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;text-align:center;"&gt;&lt;em&gt;Show Processor Expert Views&lt;/em&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:verdana,geneva;"&gt;After importing, the LED and Wait component should show up in the &lt;em&gt;Alphabetical&lt;/em&gt; tab of the Component Library view:&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;a href="http://mcuoneclipse.files.wordpress.com/2012/08/led-and-wait.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="LED and Wait Components" class="jiveImage size-full wp-image-4160" src="http://mcuoneclipse.files.wordpress.com/2012/08/led-and-wait.png?w=584" style="margin-left:auto;margin-right:auto;" title="LED and Wait Components" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;text-align:center;"&gt;&lt;em&gt;LED and Wait Components&lt;/em&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:verdana,geneva;"&gt;If not, a &lt;em&gt;Refresh&lt;/em&gt; of the components might be needed:&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;a href="http://mcuoneclipse.files.wordpress.com/2012/08/refresh-components.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Refresh Components" class="wp-image-4161 jiveImage size-full" src="http://mcuoneclipse.files.wordpress.com/2012/08/refresh-components.png?w=584" style="margin-left:auto;margin-right:auto;" title="Refresh Components" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;text-align:center;"&gt;&lt;em&gt;Refresh Components&lt;/em&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;h2&gt;&lt;span style="font-family:verdana,geneva;font-size:10pt;"&gt;Creating the Project&lt;/span&gt;&lt;/h2&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:verdana,geneva;font-size:10pt;"&gt;I use the menu &lt;em&gt;File &amp;gt; New &amp;gt; Bareboard Project&lt;/em&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;a href="http://mcuoneclipse.files.wordpress.com/2012/08/file-new2.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="File New to create a new project" class="jiveImage size-full wp-image-4149" src="http://mcuoneclipse.files.wordpress.com/2012/08/file-new2.png?w=584" style="margin-left:auto;margin-right:auto;" title="File New to create a new project" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;text-align:center;"&gt;&lt;em&gt;File New to create a new project&lt;/em&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:verdana,geneva;"&gt;Next, I need to specify a name for my 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;a href="http://mcuoneclipse.files.wordpress.com/2012/08/naming-the-project1.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Naming the project" class="jiveImage size-full wp-image-4139" src="http://mcuoneclipse.files.wordpress.com/2012/08/naming-the-project1.png?w=584" style="margin-left:auto;margin-right:auto;" title="Naming the project" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;text-align:center;"&gt;&lt;em&gt;Naming the project&lt;/em&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:verdana,geneva;"&gt;Next, I select the MKL25Z128 as my device:&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;em&gt;Hint: I can use the filter field to at the top of the dialog to filter the devices. In MCU10.3 I can simply type ‘kl25′, where in MCU10.2 I need ‘*kl25*’ as filter text.&lt;/em&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;a href="http://mcuoneclipse.files.wordpress.com/2012/08/selecting-kl25z1281.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Selecting KL25Z128" class="jiveImage size-full wp-image-4145" src="http://mcuoneclipse.files.wordpress.com/2012/08/selecting-kl25z1281.png?w=584" style="margin-left:auto;margin-right:auto;" title="Selecting KL25Z128" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;text-align:center;"&gt;&lt;em&gt;Selecting KL25Z128&lt;/em&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:verdana,geneva;"&gt;Next, to select the debug connection. As the Freedom Board has the new &lt;a class="jive-link-external-small" href="http://www.pemicro.com/opensda" rel="nofollow" target="_blank"&gt;OpenSDA&lt;/a&gt; on it, this is my choice:&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;a href="http://mcuoneclipse.files.wordpress.com/2012/08/opensda1.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="OpenSDA as Debug Connection" class="jiveImage size-full wp-image-4146" src="http://mcuoneclipse.files.wordpress.com/2012/08/opensda1.png?w=584" style="margin-left:auto;margin-right:auto;" title="OpenSDA as Debug Connection" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;text-align:center;"&gt;&lt;em&gt;OpenSDA as Debug Connection&lt;/em&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:verdana,geneva;"&gt;In the next dialog, nothing has (or can) be changed. the ARM GNU GCC is the only (and default) tool-chain for Kinetis L (Cortex M0+) family:&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;a href="http://mcuoneclipse.files.wordpress.com/2012/08/gcc1.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="ARM gcc Build Tools" class="wp-image-4147 jiveImage size-full" src="http://mcuoneclipse.files.wordpress.com/2012/08/gcc1.png?w=584" style="margin-left:auto;margin-right:auto;" title="ARM gcc Build Tools" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;text-align:center;"&gt;&lt;em&gt;ARM gcc Build Tools&lt;/em&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:verdana,geneva;"&gt;Next, I select Processor Expert for my 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;a href="http://mcuoneclipse.files.wordpress.com/2012/08/processor-expert2.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Processor Expert" class="jiveImage wp-image-4144 size-full" src="http://mcuoneclipse.files.wordpress.com/2012/08/processor-expert2.png?w=584" style="margin-left:auto;margin-right:auto;" title="Processor Expert" /&gt;&lt;/a&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;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:verdana,geneva;"&gt;Pressing ‘Finish’ creates the project for me:&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;a href="http://mcuoneclipse.files.wordpress.com/2012/08/codewarrior-projects-view-with-components.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="CodeWarrior Projects View with Components" class="jiveImage size-full wp-image-4153" src="http://mcuoneclipse.files.wordpress.com/2012/08/codewarrior-projects-view-with-components.png?w=584" style="margin-left:auto;margin-right:auto;" title="CodeWarrior Projects View with Components" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;text-align:center;"&gt;&lt;em&gt;CodeWarrior Projects View with Components&lt;/em&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:verdana,geneva;"&gt;In case the Processor Expert component are not shown, I need to open the components for the selected 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;a href="http://mcuoneclipse.files.wordpress.com/2012/08/open-components-for-project.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Open Components for Project" class="wp-image-4165 jiveImage size-full" src="http://mcuoneclipse.files.wordpress.com/2012/08/open-components-for-project.png?w=584" style="margin-left:auto;margin-right:auto;" title="Open Components for Project" /&gt;&lt;/a&gt;&amp;nbsp; &lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;&lt;span style="font-family:verdana,geneva;"&gt;Open Components for Project&lt;/span&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;&lt;em&gt;Note: Now in MCU10.3 the project view and the Processor Expert Components view are clearly separate.&lt;/em&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;&lt;strong style="font-family:verdana,geneva;"&gt;LED&lt;/strong&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:verdana,geneva;"&gt;To add the LED component, I select it and use the ‘Add to project’ context menu:&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;a href="http://mcuoneclipse.files.wordpress.com/2012/08/adding-led.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Adding LED Component" class="jiveImage size-full wp-image-4167" src="http://mcuoneclipse.files.wordpress.com/2012/08/adding-led.png?w=584" style="margin-left:auto;margin-right:auto;" title="Adding LED Component" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;text-align:center;"&gt;&lt;em&gt;Adding LED Component&lt;/em&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;text-align:left;"&gt;&lt;em&gt;Hint: instead of using the context menu, I can double click on the component to add it.&lt;/em&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:verdana,geneva;"&gt;I do this 3 times, one for red, blue and green color. As I have missing settings, they show up with an error marker in the Components view:&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;a href="http://mcuoneclipse.files.wordpress.com/2012/08/3-led.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="3 LED's in Components View" class="wp-image-4169 jiveImage size-full" src="http://mcuoneclipse.files.wordpress.com/2012/08/3-led.png?w=584" style="margin-left:auto;margin-right:auto;" title="3 LED's in Components View" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;text-align:center;"&gt;&lt;em&gt;3 LED’s in Components View&lt;/em&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:verdana,geneva;"&gt;I’m changing the settings in the Component Inspector for the three LED’s:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;ol start="1"&gt;&lt;li&gt;&lt;span style="font-family:verdana,geneva;"&gt;Changing the &lt;em&gt;Component name&lt;/em&gt;: this is an arbitrary name, and is used for the generated driver source files (.c and .h file). I name it LEDR, LEDG and LEDB for the three colors&lt;/span&gt;&amp;nbsp; &lt;/li&gt;&lt;li&gt;&lt;span style="font-family:verdana,geneva;"&gt;I specify a &lt;em&gt;Field Name&lt;/em&gt;: this is an arbitrary name, and same name I used in the LDD (Logical Device Driver name)&lt;/span&gt;&amp;nbsp; &lt;/li&gt;&lt;li&gt;&lt;span style="font-family:verdana,geneva;"&gt;As according to the schematics the cathode of the LED is connected to the microcontroller pin, I specify ‘no’ for this property&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;/p&gt;&lt;p class="alignnone wp-caption" style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2012/08/ledr-settings.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="LEDR Settings" class="jiveImage size-full wp-image-4170" src="http://mcuoneclipse.files.wordpress.com/2012/08/ledr-settings.png?w=584" style="margin-left:auto;margin-right:auto;" title="LEDR Settings" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="alignnone wp-caption" style="margin:0;text-align:center;"&gt;&lt;em&gt;LEDR Settings&lt;/em&gt;&lt;/p&gt;&lt;p class="alignnone wp-caption" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="alignnone wp-caption" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;h2&gt;&lt;span style="font-family:verdana,geneva;font-size:10pt;"&gt;Linking to GPIO_LDD&lt;/span&gt;&lt;/h2&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:verdana,geneva;font-size:10pt;"&gt;According to the &lt;a class="" href="https://www.element14.com/community/servlet/JiveServlet/downlo"&gt;FRDM-KL25Z Schematics (SPF-27556_D).pdf&lt;/a&gt;, the RGB LED is connected to following pins:&lt;/span&gt;&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="font-family:verdana,geneva;font-size:10pt;"&gt;Red: PTB18&lt;/span&gt;&amp;nbsp; &lt;/li&gt;&lt;li&gt;&lt;span style="font-family:verdana,geneva;font-size:10pt;"&gt;Green: PTB19&lt;/span&gt;&amp;nbsp; &lt;/li&gt;&lt;li&gt;&lt;span style="font-family:verdana,geneva;font-size:10pt;"&gt;Blue: PTD1&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:verdana,geneva;font-size:10pt;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:verdana,geneva;font-size:10pt;"&gt;The LED’s need to be linked to the a GPIO_LDD component. For this I click into &lt;em&gt;GPIO LDD&lt;/em&gt; property and use the drop down box to add a new component 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;a href="http://mcuoneclipse.files.wordpress.com/2012/09/new-component-gpio_ldd.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="New component GPIO_LDD" class="jiveImage size-full wp-image-4200" src="http://mcuoneclipse.files.wordpress.com/2012/09/new-component-gpio_ldd.png?w=584" style="margin-left:auto;margin-right:auto;" title="New component GPIO_LDD" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;text-align:center;"&gt;&lt;em&gt;New component GPIO_LDD&lt;/em&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:verdana,geneva;"&gt;This will create a new shared component:&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;em&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2012/09/creating-shared-component.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Creating Shared Component" class="jiveImage size-full wp-image-4201" src="http://mcuoneclipse.files.wordpress.com/2012/09/creating-shared-component.png?w=584" style="margin-left:auto;margin-right:auto;" title="Creating Shared Component" /&gt;&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;text-align:center;"&gt;&lt;em&gt;Creating Shared Component&lt;/em&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:verdana,geneva;"&gt;As two of the LED’s are on the Port B (PTB18 and PTB19), I configure it as such. I specify the port (PTB) and press on the plus sign to add bit fields:&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;a href="http://mcuoneclipse.files.wordpress.com/2012/09/setting-up-port-and-adding-bit-fields.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Setting up port and adding bit fields" class="jiveImage wp-image-4203 size-full" src="http://mcuoneclipse.files.wordpress.com/2012/09/setting-up-port-and-adding-bit-fields.png?w=584" style="margin-left:auto;margin-right:auto;" title="Setting up port and adding bit fields" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;text-align:center;"&gt;&lt;em style="font-family:arial,helvetica,sans-serif;"&gt;Setting up port and adding bit fields&lt;/em&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:verdana,geneva;"&gt;Next I configure the pin as output, and mark it for auto initialization so I do not need to call the initialization of it in my application:&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;a href="http://mcuoneclipse.files.wordpress.com/2012/09/ptb18-and-ptb19.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="PTB18 and PTB19" class="jiveImage size-full wp-image-4204" src="http://mcuoneclipse.files.wordpress.com/2012/09/ptb18-and-ptb19.png?w=584" style="margin-left:auto;margin-right:auto;" title="PTB18 and PTB19" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;text-align:center;"&gt;&lt;em&gt;PTB18 and PTB19&lt;/em&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:verdana,geneva;"&gt;The &lt;em&gt;Field Name&lt;/em&gt; has to match the field name I used in the LED component.&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;em style="font-family:arial,helvetica,sans-serif;"&gt;Hint: If I specify the optional ‘Pin Signal’ name, then Processor Expert will document it in the list of pins used.&lt;/em&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-family:verdana,geneva;"&gt;As the green LED is on the same port, I simply link to 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;a href="http://mcuoneclipse.files.wordpress.com/2012/09/green-led1.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Green Led Settings" class="jiveImage wp-image-4232 size-full" src="http://mcuoneclipse.files.wordpress.com/2012/09/green-led1.png?w=584" style="margin-left:auto;margin-right:auto;" title="Green Led Settings" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;text-align:center;"&gt;&lt;em&gt;Green Led Settings&lt;/em&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:verdana,geneva;"&gt;As the blue LED is on port D (PTD1), I create a new shared component 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;a href="http://mcuoneclipse.files.wordpress.com/2012/09/new-shared-component-for-blue-led-ptd1.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="New shared component for blue LED (PTD1)" class="jiveImage size-full wp-image-4209" src="http://mcuoneclipse.files.wordpress.com/2012/09/new-shared-component-for-blue-led-ptd1.png?w=584" style="margin-left:auto;margin-right:auto;" title="New shared component for blue LED (PTD1)" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;text-align:center;"&gt;&lt;em&gt;New shared component for blue LED (PTD1)&lt;/em&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:verdana,geneva;"&gt;Similar to the other LED’s, I set up the properties for PTD1 and the blue 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;a href="http://mcuoneclipse.files.wordpress.com/2012/09/settings-for-blue-led.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Settings for Blue LED" class="jiveImage size-full wp-image-4211" src="http://mcuoneclipse.files.wordpress.com/2012/09/settings-for-blue-led.png?w=584" style="margin-left:auto;margin-right:auto;" title="Settings for Blue LED" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;text-align:center;"&gt;&lt;em&gt;Settings for Blue LED&lt;/em&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:verdana,geneva;"&gt;With this, the blue LED settings look like this:&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;a href="http://mcuoneclipse.files.wordpress.com/2012/09/blue-led.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Blue Led" class="jiveImage size-full wp-image-4233" src="http://mcuoneclipse.files.wordpress.com/2012/09/blue-led.png?w=584" style="margin-left:auto;margin-right:auto;" title="Blue Led" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;text-align:center;"&gt;&lt;em&gt;Blue Led&lt;/em&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;h2&gt;&lt;span style="font-family:verdana,geneva;font-size:10pt;"&gt;Wait Component&lt;/span&gt;&lt;/h2&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:verdana,geneva;font-size:10pt;"&gt;As I want to busy wait between the LED toggling, I add the ‘Wait’ component to 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;a href="http://mcuoneclipse.files.wordpress.com/2012/09/adding-wait-component.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Adding Wait Component" class="jiveImage wp-image-4214 size-full" src="http://mcuoneclipse.files.wordpress.com/2012/09/adding-wait-component.png?w=584" style="margin-left:auto;margin-right:auto;" title="Adding Wait Component" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;text-align:center;"&gt;&lt;em&gt;Adding Wait Component&lt;/em&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;h2&gt;&lt;span style="font-family:verdana,geneva;font-size:10pt;"&gt;Generating Code&lt;/span&gt;&lt;/h2&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:verdana,geneva;font-size:10pt;"&gt;Now I have all my components together, time to generate code. For this I use the toolbar button:&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;a href="http://mcuoneclipse.files.wordpress.com/2012/09/generate-processor-expert-code.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Generate Processor Expert Code" class="jiveImage size-full wp-image-4215" src="http://mcuoneclipse.files.wordpress.com/2012/09/generate-processor-expert-code.png?w=584" style="margin-left:auto;margin-right:auto;" title="Generate Processor Expert Code" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;text-align:center;"&gt;&lt;em&gt;Generate Processor Expert Code&lt;/em&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:verdana,geneva;"&gt;This generates the code for my components:&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;a href="http://mcuoneclipse.files.wordpress.com/2012/09/generating-code.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Generating Code" class="jiveImage size-full wp-image-4219" src="http://mcuoneclipse.files.wordpress.com/2012/09/generating-code.png?w=584" style="margin-left:auto;margin-right:auto;" title="Generating Code" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;text-align:center;"&gt;&lt;em&gt;Generating Code&lt;/em&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;h2&gt;&lt;span style="font-family:verdana,geneva;font-size:10pt;"&gt;Adding LED Code&lt;/span&gt;&lt;/h2&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:verdana,geneva;font-size:10pt;"&gt;The application &lt;em&gt;main()&lt;/em&gt; is inside &lt;em&gt;ProcessorExpert.c&lt;/em&gt;, where add my LED demo 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;a href="http://mcuoneclipse.files.wordpress.com/2012/09/led-code.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="LED Code" class="jiveImage wp-image-4221 size-full" height="299" src="http://mcuoneclipse.files.wordpress.com/2012/09/led-code.png?w=584&amp;amp;h=299" style="margin-left:auto;margin-right:auto;" title="LED Code" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;text-align:center;"&gt;&lt;em&gt;LED Code&lt;/em&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;em&gt;Hint: An easy way to add code and function calls to components is to use &lt;a class="jive-link-external-small" href="http://mcuoneclipse.wordpress.com/2012/03/08/dragdrop-in-processor-expert/" rel="nofollow" target="_blank"&gt;drag &amp;amp; drop&lt;/a&gt;.&lt;/em&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;strong style="font-family:verdana,geneva;font-size:10pt;"&gt;Build&lt;/strong&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-family:verdana,geneva;font-size:10pt;"&gt;I build the project with the menu &lt;em&gt;Project &amp;gt; Build Project&lt;/em&gt; or using the ‘hammer’ icon:&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;a href="http://mcuoneclipse.files.wordpress.com/2012/09/building-project.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Building Project with Hammer Icon" class="jiveImage size-full wp-image-4223" src="http://mcuoneclipse.files.wordpress.com/2012/09/building-project.png?w=584" style="margin-left:auto;margin-right:auto;" title="Building Project with Hammer Icon" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;text-align:center;"&gt;&lt;em&gt;Building Project with Hammer Icon&lt;/em&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:verdana,geneva;"&gt;At this point there should be no problems, so the Problems view should just show empty:&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;a href="http://mcuoneclipse.files.wordpress.com/2012/09/empty-problems-view-with-no-problems.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Empty Problems view with no problems" class="jiveImage wp-image-4225 size-full" src="http://mcuoneclipse.files.wordpress.com/2012/09/empty-problems-view-with-no-problems.png?w=584" style="margin-left:auto;margin-right:auto;" title="Empty Problems view with no problems" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;text-align:center;"&gt;&lt;em&gt;Empty Problems view with no problems&lt;/em&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;h2&gt;&lt;span style="font-family:verdana,geneva;font-size:10pt;"&gt;Debug&lt;/span&gt;&lt;/h2&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:verdana,geneva;font-size:10pt;"&gt;To download and debug, I press the debug toolbar icon. An annoying thing in Eclipse is I first need to &lt;strong&gt;*select*&lt;/strong&gt; the project first to select the right debug configuration:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:verdana,geneva;font-size:10pt;"&gt;So I select the project, then hover over the icon to make sure my project is selected. Otherwise I use the small drop down of the debug toolbar icon to select the right 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;a href="http://mcuoneclipse.files.wordpress.com/2012/09/debug1.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Starting Debugger" class="wp-image-4228 jiveImage size-full" src="http://mcuoneclipse.files.wordpress.com/2012/09/debug1.png?w=584" style="margin-left:auto;margin-right:auto;" title="Starting Debugger" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;text-align:center;"&gt;&lt;em&gt;Starting Debugger&lt;/em&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:verdana,geneva;"&gt;This will start the debugger, and I can use the toolbar items in the Debug view to step through my 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;a href="http://mcuoneclipse.files.wordpress.com/2012/09/debug2.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="debugging the application" class="wp-image-4235 jiveImage size-full" src="http://mcuoneclipse.files.wordpress.com/2012/09/debug2.png?w=584" style="margin-left:auto;margin-right:auto;" title="debugging the application" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;text-align:center;"&gt;&lt;em&gt;debugging the application&lt;/em&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;h2&gt;&lt;span style="font-family:verdana,geneva;font-size:10pt;"&gt;Source Code&lt;/span&gt;&lt;/h2&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:verdana,geneva;font-size:10pt;"&gt;The project I have created in above steps can be downloaded from &lt;a class="jive-link-external-small" href="http://mcuoneclipse.wordpress.com/2012/09/07/tutorial-enlighting-the-freedom-kl25z-board/www.steinerberg.com/EmbeddedComponents/Examples/FreedomBoard/Freedom_LED.zip" rel="nofollow" target="_blank"&gt;this link&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;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;h2&gt;&lt;span style="font-family:verdana,geneva;font-size:10pt;"&gt;Summary&lt;/span&gt;&lt;/h2&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:verdana,geneva;font-size:10pt;"&gt;The steps presented here are really generic, and work for many boards and microcontrollers, especially for the Kinetis family. All what I need to know is the information to which pin the LED’s are connected. With this it is very easy to create a bare board (without RTOS) application blinking 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-family:verdana,geneva;font-size:10pt;"&gt;Happy enlightning &lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt=":-)" class="jiveImage wp-smiley" src="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g" /&gt;&lt;/a&gt; &lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: freescaledocs, Freescale Tagged Content, processor_expert, freescale, codewarrior, frdm-kl25z, kinetis-l, 10.3beta, freedom&lt;/div&gt;
</description></item></channel></rss>