<?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>Documents</title><link>https://community.element14.com/products/devtools/kinetiskl2freedomboard/w/documents</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>[FRDM-KL46Z - PE - CW] Tutorial: Make it blink in just 5min</title><link>https://community.element14.com/products/devtools/kinetiskl2freedomboard/w/documents/16986/frdm-kl46z---pe---cw-tutorial-make-it-blink-in-just-5min</link><pubDate>Wed, 09 Aug 2023 12:14:14 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:b672d299-50da-4bf1-b17a-900088549271</guid><dc:creator>cstanton</dc:creator><description>Current Revision posted to Documents by cstanton on 8/9/2023 12:14:14 PM&lt;br /&gt;
&lt;p style="color:#333333;font-family:Verdana;font-size:12px;margin:0;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;This Project brings you with a quick step in blinking an LED on &lt;span style="font-family:inherit;font-style:inherit;font-weight:inherit;"&gt;&lt;span class="e14-init-hidden" style="font-family:inherit;font-style:inherit;font-weight:inherit;"&gt;&lt;span class="pf-widget-map pf-productlink-cart-icon" style="background-position:-519px -45px;font-family:inherit;font-style:inherit;font-weight:inherit;"&gt;&lt;/span&gt;&lt;span&gt;&lt;span id="addProduct-8mAjfrii-linked" class="e14-init-shown" style="white-space:nowrap;"&gt;&lt;a class="jive-link-product-addtolist" href="https://www.element14.com/community/view-product.jspa?fsku=2318318&amp;amp;nsku=&amp;amp;COM=noscript" target="_blank" data-e14adj="y"&gt;&lt;span class="pf-widget-map pf-productlink-cart-icon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;a class="jive-link-product pf-embedded-product-link" href="https://www.element14.com/community/view-product.jspa?fsku=2318318&amp;amp;nsku=&amp;amp;COM=noscript" target="_blank" data-e14adj="y"&gt;FRDM-KL46Z&lt;/a&gt;&lt;/span&gt;&lt;span id="addProduct-8mAjfrii-unlinked" class="e14-init-hidden"&gt;FRDM-KL46Z&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; board using Processor Expert.&lt;/span&gt;&lt;/p&gt;
&lt;p style="color:#333333;font-family:Verdana;font-size:12px;margin:0;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="color:#333333;font-family:Verdana;font-size:12px;margin:0;margin-bottom:0.0001pt;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;The Freescale Freedom development platform is a set of software and hardware tools for evaluation and development. It is ideal for rapid prototyping of microcontroller-based applications. The Freescale Freedom KL46Z hardware, &lt;span style="font-family:inherit;font-style:inherit;font-weight:inherit;"&gt;&lt;span class="e14-init-hidden" style="font-family:inherit;font-style:inherit;font-weight:inherit;"&gt;&lt;span class="pf-widget-map pf-productlink-cart-icon" style="background-position:-519px -45px;font-family:inherit;font-style:inherit;font-weight:inherit;"&gt;&lt;/span&gt;&lt;span&gt;&lt;span id="addProduct-L70tDFme-linked" class="e14-init-shown" style="white-space:nowrap;"&gt;&lt;a class="jive-link-product-addtolist" href="https://www.element14.com/community/view-product.jspa?fsku=2318318&amp;amp;nsku=&amp;amp;COM=noscript" target="_blank" data-e14adj="y"&gt;&lt;span class="pf-widget-map pf-productlink-cart-icon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;a class="jive-link-product pf-embedded-product-link" href="https://www.element14.com/community/view-product.jspa?fsku=2318318&amp;amp;nsku=&amp;amp;COM=noscript" target="_blank" data-e14adj="y"&gt;FRDM-KL46Z&lt;/a&gt;&lt;/span&gt;&lt;span id="addProduct-L70tDFme-unlinked" class="e14-init-hidden"&gt;FRDM-KL46Z&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;, is a simple, yet sophisticated design featuring a Kinetis L series microcontroller, built on the ARM&lt;span class="emoticon" data-url="https://community.element14.com/cfs-file/__key/system/emoji/00ae.svg" title="Registered"&gt;&amp;#x00ae;&lt;/span&gt;&amp;nbsp;Cortex&lt;span class="emoticon" data-url="https://community.element14.com/cfs-file/__key/system/emoji/2122.svg" title="Tm"&gt;&amp;#x2122;&lt;/span&gt;-M0+ core.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="color:#333333;font-family:Verdana;font-size:12px;margin:0;margin-bottom:0.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;FRDM-KL46Z can be used to evaluate the KL46, KL36, KL26 and KL16 Kinetis L series devices. It features a &lt;span style="font-family:inherit;font-style:inherit;font-weight:inherit;"&gt;&lt;span class="e14-init-hidden" style="font-family:inherit;font-style:inherit;font-weight:inherit;"&gt;&lt;span class="pf-widget-map pf-productlink-cart-icon" style="background-position:-519px -45px;font-family:inherit;font-style:inherit;font-weight:inherit;"&gt;&lt;/span&gt;&lt;span&gt;&lt;span id="addProduct-Qo1ZiKnz-linked" class="e14-init-shown" style="white-space:nowrap;"&gt;&lt;a class="jive-link-product-addtolist" href="https://www.element14.com/community/view-product.jspa?fsku=2345457&amp;amp;nsku=&amp;amp;COM=noscript" target="_blank" data-e14adj="y"&gt;&lt;span class="pf-widget-map pf-productlink-cart-icon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;a class="jive-link-product pf-embedded-product-link" href="https://www.element14.com/community/view-product.jspa?fsku=2345457&amp;amp;nsku=&amp;amp;COM=noscript" target="_blank" data-e14adj="y"&gt;MKL46Z256VLL4&lt;/a&gt;&lt;/span&gt;&lt;span id="addProduct-Qo1ZiKnz-unlinked" class="e14-init-hidden"&gt;MKL46Z256VLL4&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;, this device boasting a max operating frequency of 48MHz, 256KB of flash, 32KB RAM, a full-speed USB controller, segment LCD controller, and loads of analog and digital peripherals. The FRDM-KL46Z hardware is form-factor compatible with the Arduino&lt;span class="emoticon" data-url="https://community.element14.com/cfs-file/__key/system/emoji/2122.svg" title="Tm"&gt;&amp;#x2122;&lt;/span&gt;&amp;nbsp;R3 pin layout, providing a broad range of expansion board options. The on-board interfaces includes a 4 digit segment LCD, a 3-axis digital accelerometer, magnetometer, capacitive touch slider, and ambient light sensor.&lt;/span&gt;&lt;/p&gt;
&lt;p style="color:#333333;font-family:Verdana;font-size:12px;margin:0;margin-bottom:0.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;The FRDM-KL46Z features the Freescale open standard embedded serial and debug adapter known as OpenSDA. This circuit offers several options for serial communications, flash programming and run-control debugging.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="color:#333333;font-family:Verdana;font-size:12px;margin:0;margin-bottom:0.0001pt;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;&lt;span style="color:black;font-family:inherit;font-style:inherit;font-weight:inherit;"&gt;Refer to the &lt;/span&gt;&lt;a class="jive-link-external-small" style="color:#592d5f;font-family:inherit;font-style:inherit;font-weight:inherit;" href="http://www.element14.com/community/docs/DOC-54780/l/freedom-development-platform-for-kinetis-l-series-kl46" target="_blank" data-e14adj="y"&gt;link&lt;/a&gt;&lt;span style="color:black;font-family:inherit;font-style:inherit;font-weight:inherit;"&gt; for more details on Freedom board.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="Default" style="color:#333333;font-family:Verdana;font-size:12px;margin:0;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;The features of the &lt;span style="font-family:inherit;font-style:inherit;font-weight:inherit;"&gt;&lt;span class="e14-init-hidden" style="font-family:inherit;font-style:inherit;font-weight:inherit;"&gt;&lt;span class="pf-widget-map pf-productlink-cart-icon" style="background-position:-519px -45px;font-family:inherit;font-style:inherit;font-weight:inherit;"&gt;&lt;/span&gt;&lt;span&gt;&lt;span id="addProduct-gNylXkd3-linked" class="e14-init-shown" style="white-space:nowrap;"&gt;&lt;a class="jive-link-product-addtolist" href="https://www.element14.com/community/view-product.jspa?fsku=2318318&amp;amp;nsku=&amp;amp;COM=noscript" target="_blank" data-e14adj="y"&gt;&lt;span class="pf-widget-map pf-productlink-cart-icon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;a class="jive-link-product pf-embedded-product-link" href="https://www.element14.com/community/view-product.jspa?fsku=2318318&amp;amp;nsku=&amp;amp;COM=noscript" target="_blank" data-e14adj="y"&gt;FRDM-KL46Z&lt;/a&gt;&lt;/span&gt;&lt;span id="addProduct-gNylXkd3-unlinked" class="e14-init-hidden"&gt;FRDM-KL46Z&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; include:&lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;&lt;span style="color:black;font-family:inherit;font-style:inherit;font-weight:inherit;"&gt;&lt;span style="font-family:inherit;font-style:inherit;font-weight:inherit;"&gt;&lt;span class="e14-init-hidden" style="font-family:inherit;font-style:inherit;font-weight:inherit;"&gt;&lt;span&gt;&lt;span id="addProduct-n0nnbiuR-linked" class="e14-init-shown" style="white-space:nowrap;"&gt;&lt;a class="jive-link-product-addtolist" href="https://www.element14.com/community/view-product.jspa?fsku=2345457&amp;amp;nsku=&amp;amp;COM=noscript" target="_blank" data-e14adj="y"&gt;&lt;span class="pf-widget-map pf-productlink-cart-icon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;a class="jive-link-product pf-embedded-product-link" href="https://www.element14.com/community/view-product.jspa?fsku=2345457&amp;amp;nsku=&amp;amp;COM=noscript" target="_blank" data-e14adj="y"&gt;MKL46Z256VLLZ4&lt;/a&gt;&lt;/span&gt;&lt;span id="addProduct-n0nnbiuR-unlinked" class="e14-init-hidden"&gt;MKL46Z256VLLZ4&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; MCU (48 MHz, 256 KB Flash, 32 KB RAM, &lt;/span&gt;&lt;span style="color:black;font-family:inherit;font-style:inherit;font-weight:inherit;"&gt;Low power, 100 LQFP package)&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;Dual role USB interface with mini-B USB connector&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;Open SDA&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;4 digit segment LCD module&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;Capacitive touch slider&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;Ambient light sensor&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;&lt;span style="font-family:inherit;font-style:inherit;font-weight:inherit;"&gt;&lt;span class="e14-init-hidden" style="font-family:inherit;font-style:inherit;font-weight:inherit;"&gt;&lt;span&gt;&lt;span id="addProduct-sl6WBHWS-linked" class="e14-init-shown" style="white-space:nowrap;"&gt;&lt;a class="jive-link-product-addtolist" href="https://www.element14.com/community/view-product.jspa?fsku=2238134&amp;amp;nsku=&amp;amp;COM=noscript" target="_blank" data-e14adj="y"&gt;&lt;span class="pf-widget-map pf-productlink-cart-icon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;a class="jive-link-product pf-embedded-product-link" href="https://www.element14.com/community/view-product.jspa?fsku=2238134&amp;amp;nsku=&amp;amp;COM=noscript" target="_blank" data-e14adj="y"&gt;MMA8451Q&lt;/a&gt;&lt;/span&gt;&lt;span id="addProduct-sl6WBHWS-unlinked" class="e14-init-hidden"&gt;MMA8451Q&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; accelerometer&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;&lt;span style="font-family:inherit;font-style:inherit;font-weight:inherit;"&gt;&lt;span class="e14-init-hidden" style="font-family:inherit;font-style:inherit;font-weight:inherit;"&gt;&lt;span&gt;&lt;span id="addProduct-8LeiC7fC-linked" class="e14-init-shown" style="white-space:nowrap;"&gt;&lt;a class="jive-link-product-addtolist" href="https://www.element14.com/community/view-product.jspa?fsku=2080492&amp;amp;nsku=&amp;amp;COM=noscript" target="_blank" data-e14adj="y"&gt;&lt;span class="pf-widget-map pf-productlink-cart-icon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;a class="jive-link-product pf-embedded-product-link" href="https://www.element14.com/community/view-product.jspa?fsku=2080492&amp;amp;nsku=&amp;amp;COM=noscript" target="_blank" data-e14adj="y"&gt;MAG3110&lt;/a&gt;&lt;/span&gt;&lt;span id="addProduct-8LeiC7fC-unlinked" class="e14-init-hidden"&gt;MAG3110&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; Magnetometer&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;2 user LEDs&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;2 user push buttons&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;Flexible power supply options &amp;ndash; USB, coin cell battery, external source&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;Battery-ready, power-measurement access points&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;Easy access to MCU I/O via Arduino&amp;nbsp;&lt;span class="emoticon" data-url="https://community.element14.com/cfs-file/__key/system/emoji/2122.svg" title="Tm"&gt;&amp;#x2122;&lt;/span&gt;&amp;nbsp;R3 compatible I/O connectors&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;Programmable OpenSDA debug interface with multiple applications available including:&lt;/span&gt;
&lt;ul style="font-family:inherit;font-style:inherit;font-weight:inherit;"&gt;
&lt;li style="font-family:inherit;font-style:inherit;font-weight:inherit;list-style-type:inherit;margin-bottom:0.5ex;margin-top:0.5ex;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;Mass storage device flash programming interface&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;P&amp;amp;E Debug interface provides run-control debugging and compatibility with IDE tools&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;CMSIS-DAP interface: new ARM standard for embedded debug interface&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;Data logging application&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;Arduino R3 compatibility&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p style="margin:0;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="color:#333333;font-family:Verdana;font-size:12px;margin:0;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;Before we start on our project make sure the board is in Debug mode (refer to the &lt;a class="jive-link-external-small" style="color:#592d5f;font-family:inherit;font-style:inherit;font-weight:inherit;" href="http://www.element14.com/community/community/knode/dev_platforms_kits/element14_dev_kits/kinetis_kl2_freedom_board/blog/2013/08/24/quick-review-and-getting-started-with-the-frdm-kl46z" target="_blank" data-e14adj="y"&gt;blog&lt;/a&gt; how to load in Debug mode using OpenSDA)&lt;/span&gt;&lt;/p&gt;
&lt;p style="color:#333333;font-family:Verdana;font-size:12px;margin:0;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p style="color:#333333;font-family:Verdana;font-size:12px;margin:0;margin-bottom:0.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;Now that our board is loaded in Debug Let&amp;rsquo;s start on creating a CodeWarrior project to quickly demonstrate blinking LED on KL46 board.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="color:#333333;font-family:Verdana;font-size:12px;margin:0;margin-bottom:0.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;A free version of Codewarrior can be downloaded following the link below in the Downloads section:&lt;/span&gt;&lt;/p&gt;
&lt;p style="color:#333333;font-family:Verdana;font-size:12px;margin:0;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;&lt;a class="jive-link-external-small" style="color:#592d5f;font-family:inherit;font-style:inherit;font-weight:inherit;" href="http://www.freescale.com/cwmcu10" rel="noopener noreferrer nofollow" target="_blank" data-e14adj="y"&gt;www.freescale.com/cwmcu10&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="color:#333333;font-family:Verdana;font-size:12px;margin:0;margin-bottom:0.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;The Evaluation version is a 30 days Limited version and the Special Edition is Code Size Limited version (64KB for Kinetis MCUs with an ARM Cortex-M0+ core and 128KB for the Kinetis MCUs with an ARM Cortex-M4 core).&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="color:#333333;font-family:Verdana;font-size:12px;margin:0;margin-bottom:0.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;Follow the below steps for creating the CW project:&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="color:#333333;font-family:Verdana;font-size:12px;margin:0;margin-bottom:0.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;text-decoration:underline;"&gt;Select File-&amp;gt;New-&amp;gt;Bareboard Project&lt;/span&gt;&lt;/p&gt;
&lt;p style="color:#333333;font-family:Verdana;font-size:12px;margin:0;margin-bottom:0.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;text-decoration:underline;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="color:#333333;font-family:Verdana;font-size:12px;margin:0;margin-bottom:0.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;text-decoration:underline;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/601x529/__key/communityserver-wikis-components-files/00-00-00-01-49/0160.contentimage_5F00_35017.jpg"&gt;&lt;img alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/0160.contentimage_35017.jpg-601x529.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=UgADnTwNVetMBL4IJoRk4iwm6VjERGUhfR190N0Y%2BOU%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=M2st2DUkFzVUOGi5A2v4Aw==" style="max-height: 529px;max-width: 601px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="color:#333333;font-family:Verdana;font-size:12px;margin:0;margin-bottom:0.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="color:#333333;font-family:Verdana;font-size:12px;margin:0;margin-bottom:0.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Provide Project Name &amp;ldquo;&lt;span style="background:yellow;text-decoration:underline;"&gt;Blink it using PE-KL46&lt;/span&gt;&amp;rdquo; then click &lt;span style="background:yellow;text-decoration:underline;"&gt;Next&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="color:#333333;font-family:Verdana;font-size:12px;margin:0;margin-bottom:0.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;text-decoration:underline;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/441x580/__key/communityserver-wikis-components-files/00-00-00-01-49/7026.contentimage_5F00_35018.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/7026.contentimage_35018.jpg-441x580.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=Tt4puVwzWI5BCecZ9JhQ75Q2W013QlPBxZehcqOGqm8%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=RMSZ/pXy6OG0BRWGEJU2fw==" style="max-height: 580px;max-width: 441px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Now select the MCU exist on our KL46 board it is &amp;ldquo;MKL46Z256&amp;rdquo;&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;&amp;nbsp; &lt;span style="background:yellow;color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;text-decoration:underline;"&gt;Kinetis L Series-&amp;gt; KL4x Family-&amp;gt;KL46Z(48 MHz) Family-&amp;gt;MKL46Z256 &lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp; then Click Next&lt;/span&gt;&lt;/p&gt;
&lt;p style="color:#333333;font-family:Verdana;font-size:12px;margin:0;margin-bottom:0.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;&lt;a style="color:#592d5f;font-family:inherit;font-style:inherit;font-weight:inherit;" href="/servlet/JiveServlet/downloadImage/102-67309-2-197735/kl46.jpg" data-e14adj="y"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/393x514/__key/communityserver-wikis-components-files/00-00-00-01-49/5873.contentimage_5F00_35019.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_35019.jpg-393x514.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=HAY%2FwRlFupnRBRyH1kCtfqZFjz327EITu7XntKCvsfU%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=Clfr5rT+9kMO1odZNM5ngA==" style="max-height: 514px;max-width: 393px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="color:#333333;font-family:Verdana;font-size:12px;margin:0;margin-bottom:0.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;Select OpenSDA option to connect for this board for debugging and programming, then click Next&lt;/span&gt;&lt;/p&gt;
&lt;p style="color:#333333;font-family:Verdana;font-size:12px;margin:0;margin-bottom:0.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;&lt;a style="color:#592d5f;font-family:inherit;font-style:inherit;font-weight:inherit;" href="/servlet/JiveServlet/downloadImage/102-67309-2-197736/kl46.jpg" data-e14adj="y"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/363x474/__key/communityserver-wikis-components-files/00-00-00-01-49/7002.contentimage_5F00_35020.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/7002.contentimage_35020.jpg-363x474.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=ReTV3X%2BVvu3zUL6561zoPRD7%2BP4uYXZlXN7ua%2BupFO0%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=K0wjISCzgmzxCFzSg28QbQ==" style="max-height: 474px;max-width: 363px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="color:#333333;font-family:Verdana;font-size:12px;margin:0;margin-bottom:0.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;Then click Next to proceed further&lt;/span&gt;&lt;/p&gt;
&lt;p style="color:#333333;font-family:Verdana;font-size:12px;margin:0;margin-bottom:0.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;&lt;a style="color:#592d5f;font-family:inherit;font-style:inherit;font-weight:inherit;" href="/servlet/JiveServlet/downloadImage/102-67309-2-197737/kl46.jpg" data-e14adj="y"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/355x469/__key/communityserver-wikis-components-files/00-00-00-01-49/5857.contentimage_5F00_35021.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/5857.contentimage_35021.jpg-355x469.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=G%2B5%2BKrizjOyhqArAZhXOeSOCvQOTh6tHhzk5Q3%2FXdBw%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=t9+W0wEoIgYcA2vV1xkwkw==" style="max-height: 469px;max-width: 355px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="color:#333333;font-family:Verdana;font-size:12px;margin:0;margin-bottom:0.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Select &amp;lsquo;&lt;span style="background:yellow;text-decoration:underline;"&gt;Processor Expert&amp;rsquo;&lt;/span&gt; option as we are creating the project using Processor Expert then click &amp;lsquo;&lt;span style="background:yellow;text-decoration:underline;"&gt;Finish&amp;rsquo;&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/379x495/__key/communityserver-wikis-components-files/00-00-00-01-49/0181.contentimage_5F00_35022.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/0181.contentimage_35022.jpg-379x495.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=DMRiujudTqFRk8eEwxAluh6%2BUat8eWMvHEJXueweYw0%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=xi2wD+wDHqE3P3AVIxO54g==" style="max-height: 495px;max-width: 379px;" /&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="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;I have created the project by name &amp;ldquo;&lt;span style="background:yellow;text-decoration:underline;"&gt;Blink it using PE-KL46&lt;/span&gt;&amp;rdquo; as shown below are the component inspector showing CPU with default settings:&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/650x382/__key/communityserver-wikis-components-files/00-00-00-01-49/6036.contentimage_5F00_35023.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/6036.contentimage_35023.jpg-620x364.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=Y%2FFzUfKKxdcQj1bBlEOJ6cHZb0Tz%2BY3LYZE5qtV%2Fe8s%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=V8Ho+l/EBF/XYuScfy8oAQ==" style="max-height: 364px;max-width: 620px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;First we need to configure CPU parameter settings as shown below:&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/617x373/__key/communityserver-wikis-components-files/00-00-00-01-49/0488.contentimage_5F00_35024.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_35024.jpg-617x373.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=%2Bq%2FIN%2Fzxp8ddMEzk%2BCJULuTZLwzkgw%2BfEUdYC6928gY%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=W34Z5xt4S8laSjphvV/r+A==" style="max-height: 373px;max-width: 617px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Under &lt;span style="background:yellow;text-decoration:underline;"&gt;clock Settings-&amp;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;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;System Oscillator: Enabled&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Clock Source: External Oscillator&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Clock Frequency: 8 MHz&lt;/span&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt; (as this board is connected to external crystal oscillator )&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-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Under clock &lt;span style="background:yellow;text-decoration:underline;"&gt;source settings-&amp;gt; clock source settings 0-&amp;gt; MCG settings-&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;MCG mode: FEI (FLL engaged internal)&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;FLL settings-&amp;gt;FLL output[MHz] : 47.972352&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Then automatically MCG output[MHz] gets selected to 47.972352&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-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Then under &lt;span style="background:yellow;text-decoration:underline;"&gt;Clock configurations-&amp;gt;Clock configuration 0-&amp;gt;System clocks-&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Set &lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Core clock: 47.972352 MHz&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Bus clock: 23.986176 MHz&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-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Then all other parameters which were highlighted in RED gets cleared which means the settings are correct. These settings are as shown in above figure.&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;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Since now our project skeleton is ready (i.e no component module peripherals has been added to our project) we need to add the required peripheral component module as per our requirement.&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;&amp;nbsp; &lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Our requirement here is to blink the LED present in KL46 board; refer to below schematic there are two LED&amp;rsquo;s exist on board Red and Green connected to Port-E 29&lt;sup&gt;th&lt;/sup&gt; bit (PTE29) and Port-D 5&lt;sup&gt;th&lt;/sup&gt; bit (PTD5).&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;table style="border:none;color:#333333;font-family:Verdana;font-size:12px;margin-left:58.75pt;" border="1" cellpadding="0" cellspacing="0"&gt;
&lt;tbody style="font-family:inherit;font-style:inherit;font-weight:inherit;"&gt;
&lt;tr style="border:0px;font-family:inherit;font-style:inherit;font-weight:inherit;"&gt;
&lt;td style="border:1pt solid windowtext;font-family:inherit;font-style:inherit;padding:0 5.4pt;" valign="top" width="118"&gt;
&lt;p style="font-family:inherit;font-style:inherit;font-weight:inherit;margin:0;margin-bottom:0.0001pt;"&gt;&lt;span style="color:black;font-family:inherit;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;&lt;strong&gt;LED&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td style="border:1pt solid windowtext;font-family:inherit;font-style:inherit;padding:0 5.4pt;" valign="top" width="76"&gt;
&lt;p style="font-family:inherit;font-style:inherit;font-weight:inherit;margin:0;margin-bottom:0.0001pt;"&gt;&lt;span style="color:black;font-family:inherit;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;&lt;strong&gt;KL46&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style="border:0px;font-family:inherit;font-style:inherit;font-weight:inherit;"&gt;
&lt;td style="border:1pt solid windowtext;font-family:inherit;font-style:inherit;padding:0 5.4pt;" valign="top" width="118"&gt;
&lt;p style="font-family:inherit;font-style:inherit;font-weight:inherit;margin:0;margin-bottom:0.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;Green (LED1)&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td style="border:0px;border-bottom-color:windowtext;border-bottom-width:1pt;border-right-color:windowtext;border-right-width:1pt;border-style:none solid solid none;font-family:inherit;font-style:inherit;padding:0 5.4pt;" valign="top" width="76"&gt;
&lt;p style="font-family:inherit;font-style:inherit;font-weight:inherit;margin:0;margin-bottom:0.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;PTD5&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style="border:0px;font-family:inherit;font-style:inherit;font-weight:inherit;"&gt;
&lt;td style="border:1pt solid windowtext;font-family:inherit;font-style:inherit;padding:0 5.4pt;" valign="top" width="118"&gt;
&lt;p style="font-family:inherit;font-style:inherit;font-weight:inherit;margin:0;margin-bottom:0.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;Red (LED2)&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td style="border:0px;border-bottom-color:windowtext;border-bottom-width:1pt;border-right-color:windowtext;border-right-width:1pt;border-style:none solid solid none;font-family:inherit;font-style:inherit;padding:0 5.4pt;" valign="top" width="76"&gt;
&lt;p style="font-family:inherit;font-style:inherit;font-weight:inherit;margin:0;margin-bottom:0.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;PTE29&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p style="color:#333333;font-family:Verdana;font-size:12px;margin:0;margin-bottom:0.0001pt;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;a style="color:#592d5f;font-family:inherit;font-style:inherit;font-weight:inherit;" href="/servlet/JiveServlet/downloadImage/102-67309-2-197742/kl46.jpg" data-e14adj="y"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/265x194/__key/communityserver-wikis-components-files/00-00-00-01-49/1050.contentimage_5F00_35025.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/1050.contentimage_35025.jpg-265x194.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=P7WtGPZtdtBSEcljlRfYEjVLpfmvETwxUCjOCdoUTJA%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=HG3/XQc9zlGYkJtSB+lgpw==" style="max-height: 194px;max-width: 265px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="color:#333333;font-family:Verdana;font-size:12px;margin:0;margin-bottom:0.0001pt;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;&lt;a style="color:#592d5f;font-family:inherit;font-style:inherit;font-weight:inherit;" href="/servlet/JiveServlet/downloadImage/102-67309-2-197743/kl46.jpg" data-e14adj="y"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/641x96/__key/communityserver-wikis-components-files/00-00-00-01-49/0564.contentimage_5F00_35026.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/0564.contentimage_35026.jpg-641x96.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=9tJpPc0Fw%2BrsCObXxNkTmD5U6rTsc%2BtmZr1EI8svJrQ%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=MFF3OUTah7ks2Eo0j4iaOA==" style="max-height: 96px;max-width: 641px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;We now need to add two component modules for these two led&amp;rsquo;s those are as shown below&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-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Now select under &lt;span style="background:yellow;text-decoration:underline;"&gt;Component Library-&amp;gt; categories&lt;/span&gt; sub window&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Click on &lt;span style="text-decoration:underline;"&gt;&lt;span style="background:yellow;"&gt;Logical Device Drivers-&amp;gt;Port I/O-&amp;gt; BitIO_LDD&lt;/span&gt; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Right click and select &amp;lsquo;&lt;span style="background:yellow;"&gt;Add to Project&amp;rsquo;&lt;/span&gt; twice since we need two LED component in our project.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="color:#333333;font-family:Verdana;font-size:12px;margin:0;margin-bottom:0.0001pt;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/492x520/__key/communityserver-wikis-components-files/00-00-00-01-49/4606.contentimage_5F00_35027.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/4606.contentimage_35027.jpg-492x520.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=4ZLDtSMA3J6pBE4Lbmfurrn5c8o2wiZhx29cP2ZsANs%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=cG7wetXrta6I/vvOJsOt+w==" style="max-height: 520px;max-width: 492px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Now we are adding software generated &amp;lsquo;wait&amp;rsquo; component in order to add delay routine to our 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;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Under &lt;span style="background:yellow;text-decoration:underline;"&gt;Component Library-&amp;gt; categories&lt;/span&gt; sub window&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Click on &lt;span style="text-decoration:underline;"&gt;&lt;span style="background:yellow;"&gt;SW-&amp;gt;User Components-&amp;gt;Wait&lt;/span&gt; &lt;/span&gt;component, Right click and select &amp;lsquo;&lt;span style="background:yellow;"&gt;Add to Project&amp;rsquo;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/454x437/__key/communityserver-wikis-components-files/00-00-00-01-49/2543.contentimage_5F00_35028.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/2543.contentimage_35028.jpg-454x437.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=R9G938lz5zR189Fcsj9tyzPkCnuZIg7KkW0BSGd1BKA%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=5RX/tZNWtNbE6c6GA5RI3Q==" style="max-height: 437px;max-width: 454px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/440x525/__key/communityserver-wikis-components-files/00-00-00-01-49/8400.contentimage_5F00_35029.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/8400.contentimage_35029.jpg-440x525.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=8LaOZpRqVgZfwDUMsdKghfRXOU%2BYaA0Zn5sYFHu3fhA%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=GyoLaUJr2xLIofi86+wCtg==" style="max-height: 525px;max-width: 440px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Rename the components (LED_RED, LED_Green, WAIT1)as shown below:&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/319x276/__key/communityserver-wikis-components-files/00-00-00-01-49/8004.contentimage_5F00_35030.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/8004.contentimage_35030.jpg-319x276.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=RKJbg4wl7rxv3vjzy5bqvTjReX2KCIlScR%2FX3C5UBiY%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=vMHa0MZsDv7625WJWRXhkw==" style="max-height: 276px;max-width: 319px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Make the &amp;lsquo;LED_RED&amp;rsquo; BitIO settings as shown below: assigned to output pin &amp;lsquo;PTE29&amp;rsquo;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/615x152/__key/communityserver-wikis-components-files/00-00-00-01-49/5850.contentimage_5F00_35031.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/5850.contentimage_35031.jpg-615x152.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=Z038zjL9ukopER0P3KGlhUcF8vokpt3r2L852PHv5so%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=w4t4CU7Yy8+rAKhlcdkGAg==" style="max-height: 152px;max-width: 615px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Make the &amp;lsquo;LED_Green&amp;rsquo; BitIO settings as shown below: assigned to output pin &amp;lsquo;PTD5&amp;rsquo;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/612x152/__key/communityserver-wikis-components-files/00-00-00-01-49/0083.contentimage_5F00_35032.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/0083.contentimage_35032.jpg-612x152.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=vPPPLUaRuszTAYeE%2FuZFz6WfxlB%2FNNkteBMMaxuWqCQ%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=A4zhLtjdlClj1SLMhbDgNA==" style="max-height: 152px;max-width: 612px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;And default settings for &amp;lsquo;Wait1&amp;rsquo; component as shown below:&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/612x138/__key/communityserver-wikis-components-files/00-00-00-01-49/2211.contentimage_5F00_35033.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/2211.contentimage_35033.jpg-612x138.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=paNYht6Uy6uijesK7LUEdkxRswhswNVG%2BZYwDUghr6g%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=wt2C2BqHFAXbYUNXYe747g==" style="max-height: 138px;max-width: 612px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Now click on &lt;span style="background:yellow;"&gt;&amp;lsquo;Generate Processor Expert code&amp;rsquo;&lt;/span&gt; radio button as shown below&lt;/span&gt;:&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/612x468/__key/communityserver-wikis-components-files/00-00-00-01-49/6443.contentimage_5F00_35034.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_35034.jpg-612x468.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=2mAGguNOmLZwtS%2BXjkr3XyBeWN29S8gaZIxP8iopOHg%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=MRzdKUOEqoBPXTBktlQJXQ==" style="max-height: 468px;max-width: 612px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;You can see the tool generates required code as shown below:&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/543x244/__key/communityserver-wikis-components-files/00-00-00-01-49/4300.contentimage_5F00_35035.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_35035.jpg-543x244.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=biwYwusXUcGyDDp%2BlIRJmEftiT%2FQBnpzinFjIK6E06I%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=ykLByLRb8z1ryA2uZUbGnw==" style="max-height: 244px;max-width: 543px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;All the required header files will get generated under &amp;lsquo;Generated_Code&amp;rsquo; folder as shown below&lt;/span&gt;:&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/232x527/__key/communityserver-wikis-components-files/00-00-00-01-49/6428.contentimage_5F00_35036.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/6428.contentimage_35036.jpg-232x527.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=30gsdzuziQLIWdDv9%2BpDYqv3rvylruGskWguwzX2%2BWo%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=XL+xdFqXNK391z8wdrHVSA==" style="max-height: 527px;max-width: 232px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Now select &lt;span style="background:yellow;"&gt;&amp;lsquo;ProcessorExpert.c&amp;rsquo;&lt;/span&gt; from project window&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/616x447/__key/communityserver-wikis-components-files/00-00-00-01-49/4375.contentimage_5F00_35037.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/4375.contentimage_35037.jpg-616x447.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=b4mGqjKiLKWGc3BLRKRkeN1bBMXzm93vA0sJR7y4qas%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=XY5CgCF30Ns2eWfdyU8Npw==" style="max-height: 447px;max-width: 616px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Add below lines of code in &amp;lsquo;ProcessorExpert.c&amp;rsquo; file&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-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:#7f0055;font-family:Consolas;font-size:10.0pt;"&gt;&lt;strong&gt;int&lt;/strong&gt;&lt;/span&gt;&lt;span style="background:yellow;color:black;font-family:Consolas;font-size:10.0pt;"&gt; &lt;strong&gt;main&lt;/strong&gt;(&lt;/span&gt;&lt;span style="background:yellow;color:#7f0055;font-family:Consolas;font-size:10.0pt;"&gt;&lt;strong&gt;void&lt;/strong&gt;&lt;/span&gt;&lt;span style="background:yellow;color:black;font-family:Consolas;font-size:10.0pt;"&gt;)&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:#3f7f5f;font-family:Consolas;font-size:10.0pt;"&gt;/*lint -restore Enable MISRA rule (6.3) checking. */&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:Consolas;font-size:10.0pt;"&gt;{&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&amp;nbsp; &lt;span style="background:yellow;color:#3f7f5f;font-family:Consolas;font-size:10.0pt;"&gt;/* Write your local variable definition here */&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&amp;nbsp; &lt;span style="background:yellow;color:#3f7f5f;font-family:Consolas;font-size:10.0pt;"&gt;/*** Processor Expert internal &lt;span style="text-decoration:underline;"&gt;initialization&lt;/span&gt;. DON&amp;#39;T REMOVE THIS CODE!!! ***/&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:Consolas;font-size:10.0pt;"&gt;&amp;nbsp; PE_low_level_init();&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&amp;nbsp; &lt;span style="background:yellow;color:#3f7f5f;font-family:Consolas;font-size:10.0pt;"&gt;/*** End of Processor Expert internal &lt;span style="text-decoration:underline;"&gt;initialization&lt;/span&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;&amp;nbsp; ***/&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:#005032;font-family:Consolas;font-size:10.0pt;"&gt;LDD_TDeviceData&lt;/span&gt;&lt;span style="background:yellow;color:black;font-family:Consolas;font-size:10.0pt;"&gt; *Led_RPtr, *Led_GPtr;&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-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:Consolas;font-size:10.0pt;"&gt; Led_RPtr = LED_RED_Init((&lt;/span&gt;&lt;span style="background:yellow;color:#005032;font-family:Consolas;font-size:10.0pt;"&gt;LDD_TUserData&lt;/span&gt;&lt;span style="background:yellow;color:black;font-family:Consolas;font-size:10.0pt;"&gt; *)NULL);&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:Consolas;font-size:10.0pt;"&gt; Led_GPtr = LED_Green_Init((&lt;/span&gt;&lt;span style="background:yellow;color:#005032;font-family:Consolas;font-size:10.0pt;"&gt;LDD_TUserData&lt;/span&gt;&lt;span style="background:yellow;color:black;font-family:Consolas;font-size:10.0pt;"&gt; *)NULL);&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-bottom:.0001pt;"&gt;&amp;nbsp; &lt;span style="background:yellow;color:#3f7f5f;font-family:Consolas;font-size:10.0pt;"&gt;/* Write your code here */&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&amp;nbsp; &lt;span style="background:yellow;color:#3f7f5f;font-family:Consolas;font-size:10.0pt;"&gt;/* For example: for(;;) { } */&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&amp;nbsp; &lt;span style="background:yellow;color:#7f0055;font-family:Consolas;font-size:10.0pt;"&gt;&lt;strong&gt;while&lt;/strong&gt;&lt;/span&gt;&lt;span style="background:yellow;color:black;font-family:Consolas;font-size:10.0pt;"&gt;(1)&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:Consolas;font-size:10.0pt;"&gt;&amp;nbsp; {&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:Consolas;font-size:10.0pt;"&gt; LED_RED_ClrVal(Led_RPtr); &lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:Consolas;font-size:10.0pt;"&gt; LED_Green_ClrVal(Led_GPtr);&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-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:Consolas;font-size:10.0pt;"&gt; WAIT1_Waitms(1000);&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-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:Consolas;font-size:10.0pt;"&gt; LED_RED_SetVal(Led_RPtr);&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:Consolas;font-size:10.0pt;"&gt; LED_Green_SetVal(Led_GPtr);&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-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:Consolas;font-size:10.0pt;"&gt; WAIT1_Waitms(500);&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:Consolas;font-size:10.0pt;"&gt;&amp;nbsp; }&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&amp;nbsp; &lt;span style="background:yellow;color:#3f7f5f;font-family:Consolas;font-size:10.0pt;"&gt;/*** Don&amp;#39;t write any code pass this line, or it will be deleted during code generation. ***/&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&amp;nbsp; &lt;span style="background:yellow;color:#3f7f5f;font-family:Consolas;font-size:10.0pt;"&gt;/*** RTOS startup code. Macro PEX_RTOS_START is defined by the RTOS component. DON&amp;#39;T MODIFY THIS CODE!!! ***/&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&amp;nbsp; &lt;span style="background:yellow;color:#7f0055;font-family:Consolas;font-size:10.0pt;"&gt;&lt;strong&gt;#ifdef&lt;/strong&gt;&lt;/span&gt;&lt;span style="background:yellow;color:black;font-family:Consolas;font-size:10.0pt;"&gt; PEX_RTOS_START&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:Consolas;font-size:10.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PEX_RTOS_START();&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;/span&gt;&lt;span style="background:yellow;color:#3f7f5f;font-family:Consolas;font-size:10.0pt;"&gt;/* Startup of the selected RTOS. Macro is defined by the RTOS component. */&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&amp;nbsp; &lt;span style="background:yellow;color:#7f0055;font-family:Consolas;font-size:10.0pt;"&gt;&lt;strong&gt;#endif&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&amp;nbsp; &lt;span style="background:yellow;color:#3f7f5f;font-family:Consolas;font-size:10.0pt;"&gt;/*** End of RTOS startup code.&amp;nbsp; ***/&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&amp;nbsp; &lt;span style="background:yellow;color:#3f7f5f;font-family:Consolas;font-size:10.0pt;"&gt;/*** Processor Expert end of main routine. DON&amp;#39;T MODIFY THIS CODE!!! ***/&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&amp;nbsp; &lt;span style="background:yellow;color:#7f0055;font-family:Consolas;font-size:10.0pt;"&gt;&lt;strong&gt;for&lt;/strong&gt;&lt;/span&gt;&lt;span style="background:yellow;color:black;font-family:Consolas;font-size:10.0pt;"&gt;(;;){}&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&amp;nbsp; &lt;span style="background:yellow;color:#3f7f5f;font-family:Consolas;font-size:10.0pt;"&gt;/*** Processor Expert end of main routine. DON&amp;#39;T WRITE CODE BELOW!!! ***/&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:Consolas;font-size:10.0pt;"&gt;} &lt;/span&gt;&lt;span style="background:yellow;color:#3f7f5f;font-family:Consolas;font-size:10.0pt;"&gt;/*** End of main routine. DO NOT MODIFY THIS TEXT!!! ***/&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:#3f7f5f;font-family:Consolas;font-size:10.0pt;"&gt;/* END ProcessorExpert */&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-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;The functions related to LED_RED, LED_Green can be explored from the Generated code folder in &amp;ldquo;LED_RED.c&amp;rdquo;, &amp;ldquo;LED_Green.c&amp;rdquo; and defined in LED_RED.h, LED_Green.h files as shown below:&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/632x427/__key/communityserver-wikis-components-files/00-00-00-01-49/2100.contentimage_5F00_35038.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/2100.contentimage_35038.jpg-620x419.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=2z%2FTYBFgdCRhtG6w6IfB2T76rN7HaGolpb5xPw0uFKw%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=FjmQ6HaEFE2HL2Mv8aWbwQ==" style="max-height: 419px;max-width: 620px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Its functions can also be seen from components window as shown:&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/221x453/__key/communityserver-wikis-components-files/00-00-00-01-49/0045.contentimage_5F00_35039.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/0045.contentimage_35039.jpg-221x453.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=uPnc9PzMyQkUZecfvAd9RzVvpegDetbUqHT3fLWBlQA%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=vNTHSWkDfV7nfp6z6VAp4w==" style="max-height: 453px;max-width: 221px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;As per the code instruction we are turning on LED for 1000 ms and turning off the LED&amp;rsquo;s for 500 ms and looping forever.&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-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Now it&amp;rsquo;s time to clean and Build the project as shown:&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&lt;br /&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/617x455/__key/communityserver-wikis-components-files/00-00-00-01-49/8551.contentimage_5F00_35040.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/8551.contentimage_35040.jpg-617x455.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=DMC8YiBkE1tlmfHfMPAZG4cfi6IiN8HVFzHmYil7rNg%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=8Hob3dOzHZC5IkDexkIv7Q==" style="max-height: 455px;max-width: 617px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;You can then see project starts building as shown&lt;/span&gt;:&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/612x330/__key/communityserver-wikis-components-files/00-00-00-01-49/6406.contentimage_5F00_35041.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/6406.contentimage_35041.jpg-612x330.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=hepvjAJpFoid8fpqLeBjH%2Bl5P3ajZpIGNmtHGgp3Znc%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=l097D953PkLIxjtBUHHK8g==" style="max-height: 330px;max-width: 612px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Now Run the project as shown:&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/618x400/__key/communityserver-wikis-components-files/00-00-00-01-49/4353.contentimage_5F00_35042.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/4353.contentimage_35042.jpg-618x400.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=M7fBq8HFy1j5etnNH36GEjl1EEmxfsSIqXJK%2Fqlaj50%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=Dsf9vuG1W+AigF/KSGW8aA==" style="max-height: 400px;max-width: 618px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Now you can see the blinking of Red and Green LED on KL46 board&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&lt;br /&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/390x296/__key/communityserver-wikis-components-files/00-00-00-01-49/2210.contentimage_5F00_35043.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/2210.contentimage_35043.jpg-390x296.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=gI80fmc%2FHwfdNXG5mBEnvaPohA3WlkWX4p6JBldRJ08%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=7Dcg0bQuM5ubS2hVutbweg==" style="max-height: 296px;max-width: 390px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Created Project folder and output video file is attached in this tutorial for quick reference.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Happy Blinking LED on PE.....&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/16x16/__key/communityserver-wikis-components-files/00-00-00-01-49/1854.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/1854.contentimage_1.png-16x16.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=JEpSask5XBPWGiVL0%2FDF2SUP7MqCfJuvaKDWy9GWIfY%3D&amp;amp;se=2026-04-26T23%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;a href="https://community.element14.com/resized-image/__size/16x16/__key/communityserver-wikis-components-files/00-00-00-01-49/0358.contentimage_5F00_938.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/0358.contentimage_938.png-16x16.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=IIsL1Wvsyx7efzMtEHjhJ%2B%2FbxIca0bMnr%2Fx0lqRK4mo%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=/gMpxEBFOrSQf8R73bMqwQ==" style="max-height: 16px;max-width: 16px;" /&gt;&lt;/a&gt;&lt;/span&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 id="attid_https://www.element14.com/community/api/core/v3/attachments/137876" class="_se_attachment"&gt;&lt;a href="https://community.element14.com/cfs-file/__key/communityserver-wikis-components-files/00-00-00-01-49/Blink-it_2D00_kl46-using-PE.rar"&gt;community.element14.com/.../Blink-it_2D00_kl46-using-PE.rar&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td colspan="2"&gt;&lt;span id="attid_https://www.element14.com/community/api/core/v3/attachments/137877" class="_se_attachment"&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://players.brightcove.net/1362235890001/default_default/index.html?videoId=6276286812001"&gt;players.brightcove.net/.../index.html&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: freedom-board, kl46, kinetis-l&lt;/div&gt;
</description></item><item><title>[FRDM-KL46Z - FRDM-KL25Z - PE] Tutorial: Migrate your code easily</title><link>https://community.element14.com/products/devtools/kinetiskl2freedomboard/w/documents/16987/frdm-kl46z---frdm-kl25z---pe-tutorial-migrate-your-code-easily</link><pubDate>Wed, 09 Aug 2023 12:10:03 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:fd266c99-3057-45f8-ab3b-595ec9feca42</guid><dc:creator>cstanton</dc:creator><description>Current Revision posted to Documents by cstanton on 8/9/2023 12:10:03 PM&lt;br /&gt;
&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;What if i have a processor expert project of my older freedom board and want to migrate or work on the same existing project on newer version of any freedom board? Do need to create from scratch till end: let&amp;rsquo;s see in this tutorial how to migrate between &lt;span&gt;&lt;span id="addProduct-gKrevZ7d-linked" class="e14-init-shown" style="white-space:nowrap;"&gt;&lt;a class="jive-link-product-addtolist" href="https://www.element14.com/community/view-product.jspa?fsku=2191861&amp;amp;nsku=&amp;amp;COM=noscript" target="_blank" data-e14adj="y"&gt;&lt;span class="pf-widget-map pf-productlink-cart-icon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;a class="jive-link-product pf-embedded-product-link" href="https://www.element14.com/community/view-product.jspa?fsku=2191861&amp;amp;nsku=&amp;amp;COM=noscript" target="_blank" data-e14adj="y"&gt;FRDM-KL25&lt;/a&gt;&lt;/span&gt;&lt;span id="addProduct-gKrevZ7d-unlinked" class="e14-init-hidden"&gt;FRDM-KL25&lt;/span&gt;&lt;/span&gt; to &lt;span&gt;&lt;span id="addProduct-y6ra7Df6-linked" class="e14-init-shown" style="white-space:nowrap;"&gt;&lt;a class="jive-link-product-addtolist" href="https://www.element14.com/community/view-product.jspa?fsku=2318318&amp;amp;nsku=&amp;amp;COM=noscript" target="_blank" data-e14adj="y"&gt;&lt;span class="pf-widget-map pf-productlink-cart-icon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;a class="jive-link-product pf-embedded-product-link" href="https://www.element14.com/community/view-product.jspa?fsku=2318318&amp;amp;nsku=&amp;amp;COM=noscript" target="_blank" data-e14adj="y"&gt;FRDM-KL46Z&lt;/a&gt;&lt;/span&gt;&lt;span id="addProduct-y6ra7Df6-unlinked" class="e14-init-hidden"&gt;FRDM-KL46Z&lt;/span&gt;&lt;/span&gt; freedom board using Processor Expert tool.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;" lang="EN-US"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;" lang="EN-US"&gt;Processor Expert provides an efficient development environment for rapid application development of the embedded applications. You can develop embedded applications for a wide range of microcontrollers and microprocessor systems using Processor Expert. &lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;" lang="EN-US"&gt;Processor Expert is integrated as a plug-in into the CodeWarrior IDE. You can access Processor Expert from the CodeWarrior IDE using the Processor Expert menu in the CodeWarrior IDE menu bar. The Processor Expert plug-in generates code from the embedded components and the CodeWarrior IDE manages the project files and compilation and debug processes. &lt;/span&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;" lang="EN-US"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;" lang="EN-US"&gt;Processor Expert generates all drivers during the code generation process. The generated files are automatically inserted into the active (default) target in the CodeWarrior project.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;" lang="EN-US"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&lt;span lang="EN-US"&gt;As a pre-requisite to work on this one should have sample code of KL25Z you can download this from &lt;/span&gt;&lt;strong&gt;HERE&lt;/strong&gt;&lt;span style="text-decoration:underline;"&gt;&lt;strong&gt; &lt;/strong&gt;&lt;/span&gt;&lt;span lang="EN-US"&gt;(alternately I have attached the project for quick reference) &lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;" lang="EN-US"&gt;And your new Freedom board, as in my case I am having &lt;span&gt;&lt;span id="addProduct-3HrF5u4M-linked" class="e14-init-shown" style="white-space:nowrap;"&gt;&lt;a class="jive-link-product-addtolist" href="https://www.element14.com/community/view-product.jspa?fsku=2318318&amp;amp;nsku=&amp;amp;COM=noscript" target="_blank" data-e14adj="y"&gt;&lt;span class="pf-widget-map pf-productlink-cart-icon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;a class="jive-link-product pf-embedded-product-link" href="https://www.element14.com/community/view-product.jspa?fsku=2318318&amp;amp;nsku=&amp;amp;COM=noscript" target="_blank" data-e14adj="y"&gt;FRDM-KL46Z&lt;/a&gt;&lt;/span&gt;&lt;span id="addProduct-3HrF5u4M-unlinked" class="e14-init-hidden"&gt;FRDM-KL46Z&lt;/span&gt;&lt;/span&gt; and latest version of Code Warrior tool.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;A free version of Codewarrior can be downloaded following the link below in the Downloads section:&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&lt;a class="jive-link-external-small" href="http://www.freescale.com/cwmcu10" rel="noopener noreferrer nofollow" target="_blank" data-e14adj="y"&gt;&lt;span style="color:windowtext;"&gt;www.freescale.com/cwmcu10&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;The Evaluation version is a 30 days Limited version and the Special Edition is Code Size Limited version (64KB for Kinetis MCUs with an ARM Cortex-M0+ core and 128KB for the Kinetis MCUs with an ARM Cortex-M4 core)&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&lt;span lang="EN-US"&gt;Before we start here are the features of our New &lt;span&gt;&lt;span id="addProduct-IUGF2Ftt-linked" class="e14-init-shown" style="white-space:nowrap;"&gt;&lt;a class="jive-link-product-addtolist" href="https://www.element14.com/community/view-product.jspa?fsku=2318318&amp;amp;nsku=&amp;amp;COM=noscript" target="_blank" data-e14adj="y"&gt;&lt;span class="pf-widget-map pf-productlink-cart-icon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;a class="jive-link-product pf-embedded-product-link" href="https://www.element14.com/community/view-product.jspa?fsku=2318318&amp;amp;nsku=&amp;amp;COM=noscript" target="_blank" data-e14adj="y"&gt;FRDM-KL46Z&lt;/a&gt;&lt;/span&gt;&lt;span id="addProduct-IUGF2Ftt-unlinked" class="e14-init-hidden"&gt;FRDM-KL46Z&lt;/span&gt;&lt;/span&gt; board stating which all the peripherals available are on board to work on: &lt;/span&gt;Refer to the &lt;a class="jive-link-external-small" href="http://www.element14.com/community/docs/DOC-54780/l/freedom-development-platform-for-kinetis-l-series-kl46" target="_blank" data-e14adj="y"&gt;&lt;strong&gt;link&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt; &lt;/strong&gt;for more details:&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;ul style="list-style-type:disc;"&gt;
&lt;li&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&lt;span&gt;&lt;span id="addProduct-99DeCMs6-linked" class="e14-init-shown" style="white-space:nowrap;"&gt;&lt;a class="jive-link-product-addtolist" href="https://www.element14.com/community/view-product.jspa?fsku=2345457&amp;amp;nsku=&amp;amp;COM=noscript" target="_blank" data-e14adj="y"&gt;&lt;span class="pf-widget-map pf-productlink-cart-icon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;a class="jive-link-product pf-embedded-product-link" href="https://www.element14.com/community/view-product.jspa?fsku=2345457&amp;amp;nsku=&amp;amp;COM=noscript" target="_blank" data-e14adj="y"&gt;MKL46Z256VLLZ4&lt;/a&gt;&lt;/span&gt;&lt;span id="addProduct-99DeCMs6-unlinked" class="e14-init-hidden"&gt;MKL46Z256VLLZ4&lt;/span&gt;&lt;/span&gt; MCU (48 MHz, 256KB Flash, 32 KB RAM, Low power, 100LQFP package) &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;Dual role USB interface with mini-B USB connector &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;Open SDA &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;4 digit segment LCD module &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;Capacitive touch slider &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;Ambient light sensor &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&lt;span&gt;&lt;span id="addProduct-Saw8GSlR-linked" class="e14-init-shown" style="white-space:nowrap;"&gt;&lt;a class="jive-link-product-addtolist" href="https://www.element14.com/community/view-product.jspa?fsku=2238134&amp;amp;nsku=&amp;amp;COM=noscript" target="_blank" data-e14adj="y"&gt;&lt;span class="pf-widget-map pf-productlink-cart-icon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;a class="jive-link-product pf-embedded-product-link" href="https://www.element14.com/community/view-product.jspa?fsku=2238134&amp;amp;nsku=&amp;amp;COM=noscript" target="_blank" data-e14adj="y"&gt;MMA8451Q&lt;/a&gt;&lt;/span&gt;&lt;span id="addProduct-Saw8GSlR-unlinked" class="e14-init-hidden"&gt;MMA8451Q&lt;/span&gt;&lt;/span&gt; accelerometer &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&lt;span&gt;&lt;span id="addProduct-XR8QXBzH-linked" class="e14-init-shown" style="white-space:nowrap;"&gt;&lt;a class="jive-link-product-addtolist" href="https://www.element14.com/community/view-product.jspa?fsku=2080492&amp;amp;nsku=&amp;amp;COM=noscript" target="_blank" data-e14adj="y"&gt;&lt;span class="pf-widget-map pf-productlink-cart-icon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;a class="jive-link-product pf-embedded-product-link" href="https://www.element14.com/community/view-product.jspa?fsku=2080492&amp;amp;nsku=&amp;amp;COM=noscript" target="_blank" data-e14adj="y"&gt;MAG3110 &lt;/a&gt;&lt;/span&gt;&lt;span id="addProduct-XR8QXBzH-unlinked" class="e14-init-hidden"&gt;MAG3110 &lt;/span&gt;&lt;/span&gt;Magnetometer &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;2 user LEDs &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;2 user push buttons &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;Flexible power supply options &amp;ndash; USB, coin cell battery, external source &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;Battery-ready, power-measurement access points &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;Easy access to MCU I/O via Arduino&amp;nbsp;&lt;span class="emoticon" data-url="https://community.element14.com/cfs-file/__key/system/emoji/2122.svg" title="Tm"&gt;&amp;#x2122;&lt;/span&gt;&amp;nbsp;R3 compatible I/O connectors&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;Programmable OpenSDA debug interface with multiple applications available including: &lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt; Mass storage device flash programming interface &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt; P&amp;amp;E Debug interface provides run-control debugging and compatibility with IDE tools &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt; CMSIS-DAP interface: new ARM standard for embedded debug interface &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt; Data logging application &lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;Arduino R3 compatibility &lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;Before we start on our project make sure the board is in Debug mode (refer to the &lt;a class="jive-link-external-small" href="http://www.element14.com/community/community/knode/dev_platforms_kits/element14_dev_kits/kinetis_kl2_freedom_board/blog/2013/08/24/quick-review-and-getting-started-with-the-frdm-kl46z" target="_blank" data-e14adj="y"&gt;&lt;strong&gt;blog&lt;/strong&gt;&lt;/a&gt; how to load in Debug mode using OpenSDA) &lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;" lang="EN-US"&gt;Now let&amp;rsquo;s start on migrating the available sample code of KL25Z, I have selected the &amp;ldquo;pwm_led&amp;rdquo; project which is located in folder &lt;span style="background:yellow;"&gt;&amp;ldquo;~\&lt;span style="text-decoration:underline;"&gt;Downloads\KL25 Sample Code\kl25_sc_rev10\klxx-sc-pex\projects\pwm_led\cw&amp;rdquo;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:arial, helvetica, sans-serif;font-size:12pt;text-decoration:underline;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;Open this project in code warrior in current workspace (you can drag and drop the &amp;ldquo;.project&amp;rdquo; present in pwm_led project folder).&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;I have rename the project as &amp;ldquo;pwm_led-KL25&amp;rdquo; and saved a copy in my current workspace to differentiate the original one.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&lt;br /&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/794x426/__key/communityserver-wikis-components-files/00-00-00-01-49/8664.contentimage_5F00_35044.jpg"&gt;&lt;img alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/8664.contentimage_35044.jpg-620x333.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=0Qpz52kNd%2BIGkPFczd6ubh4GRH4S3mrqqS5yCi0%2BGV4%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=GEKYuCB9HTG/u53Kij3MYQ==" style="max-height: 333px;max-width: 620px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;You can see from above snap shot i have opened the project it has kinetis family MCU &amp;lsquo;MKL25Z128VLK4&amp;rsquo; running at 8 MHz connected to external crystal, PEE(PLL engaged external) as MCG mode and core clock is 48 MHz, Bus clock is 24 MHz. &lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;The components present in this project are module &amp;quot;PeriodicInterrupt&amp;quot; (component TimerUnit_LDD), Module &amp;quot;PWMTimerRG&amp;quot; (component name &amp;lsquo;PWMTimerRG&amp;rsquo; of type TimerUnit_LDD ), and Module &amp;quot;PWMTimerB&amp;quot; (component name PWMTimerB of type TimerUnit_LDD).&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Now create a new project for KL46Z board following below procedure (refer to the blog link for &amp;ldquo;how to create project using processor expert&amp;rdquo; )&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;ul style="list-style-type:disc;"&gt;
&lt;li&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;In the CodeWarrior, click &lt;span style="background:yellow;"&gt;File&lt;/span&gt; menu and select &lt;span style="background:yellow;text-decoration:underline;"&gt;New &amp;gt; Bareboard Project&lt;/span&gt; in order to create a new project. The Project Wizard appears. Enter the name of the project &amp;ldquo;&lt;span style="background:yellow;text-decoration:underline;"&gt;pwm-led migrate-kl46&lt;/span&gt;&amp;rdquo; and click &lt;span style="background:yellow;text-decoration:underline;"&gt;&lt;strong&gt;Next&lt;/strong&gt;&lt;/span&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p style="margin:0;margin-bottom:1.15pt;margin-right:8.65pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;ul style="list-style-type:disc;"&gt;
&lt;li&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Now select the MCU exist on our KL46 board it is &amp;ldquo;MKL46Z256&amp;rdquo;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;margin-left:18.0pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;text-decoration:underline;"&gt;Kinetis L Series-&amp;gt; KL4x Family-&amp;gt;KL46Z(48 MHz) Family-&amp;gt;MKL46Z256 &lt;/span&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp; then Click Next.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;ul style="list-style-type:disc;"&gt;
&lt;li&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Select OpenSDA option to connect for this board for debugging and programming, then click &lt;span style="background:yellow;text-decoration:underline;"&gt;&lt;strong&gt;Next&lt;/strong&gt;&lt;/span&gt;.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;margin-left:18.0pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;ul style="list-style-type:disc;"&gt;
&lt;li&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Select &amp;lsquo;&lt;span style="background:yellow;text-decoration:underline;"&gt;Processor Expert&amp;rsquo;&lt;/span&gt; option as we are creating the project using Processor Expert then click &amp;lsquo;&lt;span style="background:yellow;text-decoration:underline;"&gt;Finish&amp;rsquo;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;margin-left:18.0pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&amp;nbsp; &lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;I have created the project by name &amp;ldquo;&lt;span style="background:yellow;text-decoration:underline;"&gt;pwm-led migrate-kl46&lt;/span&gt;&amp;rdquo; as shown below is the component inspector showing CPU with default settings:&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/788x426/__key/communityserver-wikis-components-files/00-00-00-01-49/4863.contentimage_5F00_35045.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/4863.contentimage_35045.jpg-620x335.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=ewW%2BOLYz8vQyHqNOrYu31yA4gSp4BoxI7qVw9RPlsF0%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=zJtp1XiJxVkQl+y+gPo3aQ==" style="max-height: 335px;max-width: 620px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;First we need to configure CPU parameter settings as shown below:&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/794x480/__key/communityserver-wikis-components-files/00-00-00-01-49/5543.contentimage_5F00_35046.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/5543.contentimage_35046.jpg-620x375.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=bhlVTdmWLpNYJaG9Iwh1sNgNinBRS%2FIz376qOk9pR8E%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=8HIzJMcSpn9sQtHhPlrtkQ==" style="max-height: 375px;max-width: 620px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Under &lt;span style="background:yellow;text-decoration:underline;"&gt;clock Settings-&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;System Oscillator: Enabled&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Clock Source: External Oscillator&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Clock Frequency: 8 MHz&lt;/span&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt; (as this board is connected to external crystal oscillator )&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Under clock &lt;span style="background:yellow;text-decoration:underline;"&gt;source settings-&amp;gt; clock source settings 0-&amp;gt; MCG settings-&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;MCG mode: FEI (FLL engaged internal)&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;FLL settings-&amp;gt;FLL output[MHz] : 47.972352&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Then automatically MCG output[MHz] gets selected to 47.972352&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Then under &lt;span style="background:yellow;text-decoration:underline;"&gt;Clock configurations-&amp;gt;Clock configuration 0-&amp;gt;System clocks-&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Set &lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Core clock: 47.972352 MHz&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Bus clock: 23.986176 MHz&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Then all other parameters which were highlighted in RED gets cleared which means the settings are correct. These settings are as shown in above figure.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Since now our project skeleton is ready (i.e no component module peripherals has been added to our project) we need to add the required peripheral component module as per our requirement.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:Arial, sans-serif;font-size:16px;"&gt;Copy all the three components present in KL25Z project as shown:&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&lt;br /&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/440x522/__key/communityserver-wikis-components-files/00-00-00-01-49/3480.contentimage_5F00_35047.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/3480.contentimage_35047.jpg-440x522.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=U4lTDjcF9JWECrdGSP8Zr8cTY6qf0dVukA%2BAGnpxick%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=8DL+IFLRcSmNkrcu2lIXUQ==" style="max-height: 522px;max-width: 440px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Paste the copied 3 components to our created project folder &amp;ldquo;&lt;span style="background:yellow;text-decoration:underline;"&gt;pwm-led migrate-kl46&lt;/span&gt;&amp;rdquo; under &amp;lsquo;Components&amp;rsquo; window as shown below:&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/687x362/__key/communityserver-wikis-components-files/00-00-00-01-49/1346.contentimage_5F00_35048.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/1346.contentimage_35048.jpg-620x327.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=Bbnbvkd754JIMNhmDsdU1EYO0nri1s87Grb7nQot9Pw%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=6qjP9VzlnjbwvWuaXQn1gA==" style="max-height: 327px;max-width: 620px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Now select the first component &amp;lsquo;PeriodicInterrupt&amp;rsquo; and change the settings as shown:&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&lt;br /&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/677x363/__key/communityserver-wikis-components-files/00-00-00-01-49/3465.contentimage_5F00_35049.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/3465.contentimage_35049.jpg-620x332.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=YXuJ51ixMnCbOZqdOF0xIvQ9kh6KdlYo4HtGpUG5YyQ%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=gVe0RJ87H/t1ytkhF3vXAA==" style="max-height: 332px;max-width: 620px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;This is a Periodic interrupt timer module with counter direction as Down count, it uses internal clock source of 24 MHz as counter frequency. Make sure the interrupt is enabled and the period of the counter is set to 50 us (i.e this PIT will generate an interrupt on every 50us)&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Note: there is an RGB LED connected to port pins in KL25Z board but in KL46Z board only 2 LED&amp;rsquo;s are connected no RGB is present in this. RED connected to PTE29 and Green is connected to PTD5, in order to connect the third LED i.e blue we need to connect it manually.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;The second component is &amp;ldquo;PWMTimerRG&amp;rdquo; of type &amp;ldquo;TimerUnit_LDD&amp;rdquo; which is connected to RED and GREEN LED of KL25Z board its setting are as shown below:&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/681x366/__key/communityserver-wikis-components-files/00-00-00-01-49/1321.contentimage_5F00_35050.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/1321.contentimage_35050.jpg-620x333.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=wtjEUc%2FQ0qHStT6rC7%2BrH1XHzwcDqQZab3tgTQphO4A%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=UXRiBd1lUPp2+3mX1I3/xw==" style="max-height: 333px;max-width: 620px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;This module is connected to TPM0 Flex Timer Module which runs in &amp;lsquo;UP&amp;rdquo; counter direction with period of 2.7306 ms with its interrupt disabled.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Further to this timer module we are taking 2 outputs by connecting them to two channels, one is connected to channel-2 (TPM0_C2) of timer module which leads to o/p port pin PTE29 and another connected to channel-5 (TPM0_C5) of timer module which in turn connects to PTD5 port pin.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;We have selected these channel output port pins because the physical LED&amp;rsquo;s are connected in the board to particular GPIO pins i.e&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&amp;nbsp; &lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Refer to below schematic there are two LED&amp;rsquo;s exist on board Red and Green connected to Port-E 29&lt;sup&gt;th&lt;/sup&gt; bit (PTE29) and Port-D 5&lt;sup&gt;th&lt;/sup&gt; bit (PTD5).&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="color:#333333;font-family:Verdana;font-size:12px;margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;table style="border:none;color:#333333;font-family:Verdana;font-size:12px;margin-left:58.75pt;" border="1" cellpadding="0" cellspacing="0"&gt;
&lt;tbody style="font-family:inherit;font-style:inherit;font-weight:inherit;"&gt;
&lt;tr style="border:0px;font-family:inherit;font-style:inherit;font-weight:inherit;"&gt;
&lt;td style="border:1pt solid windowtext;font-family:inherit;font-style:inherit;padding:0 5.4pt;" valign="top" width="118"&gt;
&lt;p style="font-family:inherit;font-style:inherit;font-weight:inherit;margin:0;margin-bottom:0.0001pt;"&gt;&lt;span style="color:black;font-family:inherit;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;&lt;strong&gt;LED&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td style="border:1pt solid windowtext;font-family:inherit;font-style:inherit;padding:0 5.4pt;" valign="top" width="76"&gt;
&lt;p style="font-family:inherit;font-style:inherit;font-weight:inherit;margin:0;margin-bottom:0.0001pt;"&gt;&lt;span style="color:black;font-family:inherit;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;&lt;strong&gt;KL46&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style="border:0px;font-family:inherit;font-style:inherit;font-weight:inherit;"&gt;
&lt;td style="border:1pt solid windowtext;font-family:inherit;font-style:inherit;padding:0 5.4pt;" valign="top" width="118"&gt;
&lt;p style="font-family:inherit;font-style:inherit;font-weight:inherit;margin:0;margin-bottom:0.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;Green (LED1)&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td style="border:0px;border-bottom-color:windowtext;border-right-color:windowtext;border-style:none solid solid none;border-width:0px 1pt 1pt 0px;font-family:inherit;font-style:inherit;padding:0 5.4pt;" valign="top" width="76"&gt;
&lt;p style="font-family:inherit;font-style:inherit;font-weight:inherit;margin:0;margin-bottom:0.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;PTD5&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr style="border:0px;font-family:inherit;font-style:inherit;font-weight:inherit;"&gt;
&lt;td style="border:1pt solid windowtext;font-family:inherit;font-style:inherit;padding:0 5.4pt;" valign="top" width="118"&gt;
&lt;p style="font-family:inherit;font-style:inherit;font-weight:inherit;margin:0;margin-bottom:0.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;Red (LED2)&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td style="border:0px;border-bottom-color:windowtext;border-right-color:windowtext;border-style:none solid solid none;border-width:0px 1pt 1pt 0px;font-family:inherit;font-style:inherit;padding:0 5.4pt;" valign="top" width="76"&gt;
&lt;p style="font-family:inherit;font-style:inherit;font-weight:inherit;margin:0;margin-bottom:0.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;PTE29&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p style="color:#333333;font-family:Verdana;font-size:12px;margin:0;margin-bottom:0.0001pt;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;a style="color:#592d5f;font-family:inherit;font-style:inherit;font-weight:inherit;" href="/servlet/JiveServlet/downloadImage/102-67309-2-197742/kl46.jpg" data-e14adj="y"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/265x194/__key/communityserver-wikis-components-files/00-00-00-01-49/8267.contentimage_5F00_35051.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/8267.contentimage_35051.jpg-265x194.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=n5n2RxeWtjgJriBxox8OfK95467Y5FM6AEZTXf54B5c%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=HG3/XQc9zlGYkJtSB+lgpw==" style="max-height: 194px;max-width: 265px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="color:#333333;font-family:Verdana;font-size:12px;margin:0;margin-bottom:0.0001pt;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;font-style:inherit;font-weight:inherit;"&gt;&lt;a style="color:#592d5f;font-family:inherit;font-style:inherit;font-weight:inherit;" href="/servlet/JiveServlet/downloadImage/102-67309-2-197743/kl46.jpg" data-e14adj="y"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/641x96/__key/communityserver-wikis-components-files/00-00-00-01-49/8015.contentimage_5F00_35052.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/8015.contentimage_35052.jpg-641x96.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=fB%2FRpyYt6qmByXeIpGxBKdUIXPlPhs7W8h0GwKq9jhw%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=MFF3OUTah7ks2Eo0j4iaOA==" style="max-height: 96px;max-width: 641px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;We should run this timer as PWM to do so it has to run in &amp;lsquo;compare&amp;rsquo; mode. As this module is 16 bit timer running counts from 0000 to FFFF (0 to 65535 timer-ticks) and&amp;nbsp; initial offset is given as &amp;lsquo;0&amp;rsquo; timer-ticks so that the PWM starts from 0% of dutycycle. We access this &amp;lsquo;offset&amp;rsquo; variable during programming and continuously change its value varying the duty cycle to 100%.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Next coming to third module &amp;ldquo;PWMTimerB&amp;rdquo; it is connected to &amp;lsquo;Blue&amp;rsquo; LED in KL25Z board we need to connect this manually in case of KL46Z board and we are connecting it to PTE23 port pin which internal connected to TPM2- channel-1, its period is 2.7306 ms and &amp;lsquo;offset&amp;rsquo; is set to &amp;lsquo;0&amp;rsquo;.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/677x364/__key/communityserver-wikis-components-files/00-00-00-01-49/1234.contentimage_5F00_35053.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/1234.contentimage_35053.jpg-620x333.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=E5S%2F2vKiOJKCy70OP9xAZpbGIQisDSlqX%2B5GWITZ9zk%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=HWCiRpPYIdhCUb6V+Tx8tw==" style="max-height: 333px;max-width: 620px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;The PWM waveform will look like the below picture:&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/926x476/__key/communityserver-wikis-components-files/00-00-00-01-49/8171.contentimage_5F00_35054.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/8171.contentimage_35054.jpg-620x319.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=JykRwgS9lO5HAg4fXUWc%2FGIJNAr2us3oyQDhnk4%2Fsvc%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=Uoj+a23te3QlJH5zdA+kJg==" style="max-height: 319px;max-width: 620px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;" lang="EN-US"&gt;Now all our module settings have been done and we can now &amp;lsquo;generate&amp;rsquo; the project to generate Processor Expert code, which creates all supporting header files and API&amp;rsquo;s required.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;" lang="EN-US"&gt;&lt;br /&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/620x525/__key/communityserver-wikis-components-files/00-00-00-01-49/5037.contentimage_5F00_35055.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/5037.contentimage_35055.jpg-620x525.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=3GuiQoyppoC2jeNQkX%2FX%2FHyfvNyUiW7aW5sYXY3d1GM%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=cmgYWgtKyrxhGzFdj0Pxwg==" style="max-height: 525px;max-width: 620px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Now it&amp;rsquo;s time for us to write our application code, since RGB LED is not present in KL46Z board i am going to write my own application where i will be varying the brightness of LED present in KL46Z (i.e Red and Green) through varying the PWM duty cycle. &lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;The place where i need to write my code is file &amp;ldquo;ProcessorExpert.c&amp;rdquo; located in &amp;lsquo;sources&amp;rsquo; folder in my project folder which is shown in below picture.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/551x513/__key/communityserver-wikis-components-files/00-00-00-01-49/3884.contentimage_5F00_35056.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/3884.contentimage_35056.jpg-551x513.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=EuxFR5yAv2qFTGM1fk6qDMcxzB0jU2LKDPxFWt3Xs4s%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=v8tRjNjNl9itSpz3X4nXTw==" style="max-height: 513px;max-width: 551px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Since we are writing fresh lines of code i delete all its content by pressing &lt;span style="background:yellow;text-decoration:underline;"&gt;Ctrl-A&lt;/span&gt; and &lt;span style="text-decoration:underline;"&gt;&lt;span style="background:yellow;"&gt;Delete&lt;/span&gt; &lt;/span&gt;then paste below line of code.&lt;/span&gt;&lt;/p&gt;
&lt;blockquote class="jive-quote"&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;/* ###################################################################&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;** Filename&amp;nbsp;&amp;nbsp;&amp;nbsp; : ProcessorExpert.c&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;** Project&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : ProcessorExpert&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;** Processor&amp;nbsp;&amp;nbsp; : MKL46Z256VMC4&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;** Version&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : Driver 01.01&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;** Compiler&amp;nbsp;&amp;nbsp;&amp;nbsp; : GNU C Compiler&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;** Date/Time&amp;nbsp;&amp;nbsp; : 2014-06-06, 08:06, # CodeGen: 0&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;** Abstract&amp;nbsp;&amp;nbsp;&amp;nbsp; :&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;**&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Main module.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;**&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This module contains user&amp;#39;s application code.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;** Settings&amp;nbsp;&amp;nbsp;&amp;nbsp; :&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;** Contents&amp;nbsp;&amp;nbsp;&amp;nbsp; :&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;**&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; No public methods&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;**&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;** ###################################################################*/&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;/*!&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;** @file ProcessorExpert.c&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;** @version 01.01&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;** @brief&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;**&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Main module.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;**&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This module contains user&amp;#39;s application code.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;*/&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;/*!&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;** @addtogroup ProcessorExpert_module ProcessorExpert module documentation&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;** @{&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;*/&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;/* MODULE ProcessorExpert */&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;/* Including needed modules to compile this module/procedure */&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;#include &amp;quot;Cpu.h&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;#include &amp;quot;Events.h&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;#include &amp;quot;PeriodicInterrupt.h&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;#include &amp;quot;PWMTimerRG.h&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;#include &amp;quot;PWMTimerB.h&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;/* Including shared modules, which are used for whole project */&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;#include &amp;quot;PE_Types.h&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;#include &amp;quot;PE_Error.h&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;#include &amp;quot;PE_Const.h&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;#include &amp;quot;IO_Map.h&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;volatile bool PeriodicEvent = FALSE; // interrupt for every 50us to write each inc timer value (0 to 65535 timer value)&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;LDD_TDeviceData *PWMTimerRG_DeviceData, *PWMTimerB_DeviceData;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;LDD_TDeviceData *PeriodicInterrupt_DeviceData;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;const int RedChannel = 0;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;const int GreenChannel = 1;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;const int BlueChannel = 0;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;/******************************************************************************/&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;int main(void)&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;{&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LDD_TError Error;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int PulseOffset = 0;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int dir = 0;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /*** Processor Expert internal initialization. DON&amp;#39;T REMOVE THIS CODE!!! ***/&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PE_low_level_init();&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /*** End of Processor Expert internal initialization.&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;&amp;nbsp; ***/&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Intialize the timers */&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PWMTimerRG_DeviceData = PWMTimerRG_Init(NULL);&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PWMTimerB_DeviceData = PWMTimerB_Init(NULL);&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PeriodicInterrupt_DeviceData = PeriodicInterrupt_Init(NULL);&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Set initial compare value */&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PWMTimerRG_SetOffsetTicks(PWMTimerRG_DeviceData, RedChannel, PulseOffset);&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PWMTimerRG_SetOffsetTicks(PWMTimerRG_DeviceData, GreenChannel, PulseOffset);&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PWMTimerB_SetOffsetTicks(PWMTimerB_DeviceData, BlueChannel, PulseOffset);&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Turn on the timers */&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Error = PWMTimerRG_Enable(PWMTimerRG_DeviceData);&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (Error != ERR_OK)&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PE_DEBUGHALT();&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Error = PWMTimerB_Enable(PWMTimerB_DeviceData);&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (Error != ERR_OK)&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PE_DEBUGHALT();&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Error = PeriodicInterrupt_Enable(PeriodicInterrupt_DeviceData);&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (Error != ERR_OK)&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PE_DEBUGHALT();&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PulseOffset = 0;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while (1)&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (PeriodicEvent) {&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&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;&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;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&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;&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; if(dir == 0) //incremental intensity&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&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;&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;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PulseOffset = PulseOffset + 1;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(PulseOffset &amp;gt;= 65535)&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&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;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dir = 1;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&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;&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;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&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;&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; else // dir == 1 decrementing intensity&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&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;&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;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PulseOffset = PulseOffset - 1;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(PulseOffset == 0)&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&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;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dir = 0;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&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;&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;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&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;&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;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&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;&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; PWMTimerRG_SetOffsetTicks(PWMTimerRG_DeviceData, RedChannel,PulseOffset);&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&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;&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; PWMTimerRG_SetOffsetTicks(PWMTimerRG_DeviceData, GreenChannel, PulseOffset);&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&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;&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;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&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;&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; PeriodicEvent = FALSE;&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;&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;&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;&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;&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;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&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;&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;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /*** Don&amp;#39;t write any code pass this line, or it will be deleted during code generation. ***/&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt; /*** RTOS startup code. Macro PEX_RTOS_START is defined by the RTOS component. DON&amp;#39;T MODIFY THIS CODE!!! ***/&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt; #ifdef PEX_RTOS_START&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt; PEX_RTOS_START(); /* Startup of the selected RTOS. Macro is defined by the RTOS component. */&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt; #endif&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt; /*** End of RTOS startup code. ***/&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt; /*** Processor Expert end of main routine. DON&amp;#39;T MODIFY THIS CODE!!! ***/&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt; for(;;){}&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt; /*** Processor Expert end of main routine. DON&amp;#39;T WRITE CODE BELOW!!! ***/&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;} /*** End of main routine. DO NOT MODIFY THIS TEXT!!! ***/&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;/* END ProcessorExpert */&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;/*&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt; ** ###################################################################&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt; **&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt; ** This file was created by Processor Expert 10.0 [05.03]&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt; ** for the Freescale Kinetis series of microcontrollers.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt; **&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt; ** ###################################################################&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt; */&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;text-decoration:underline;"&gt;Code explanation:&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;text-decoration:underline;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;First initialise the timer as shown below line of code:&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt; &lt;span style="background:yellow;"&gt;PWMTimerRG_DeviceData = PWMTimerRG_Init(NULL);&amp;nbsp; // initialise timer concern to Red and Green LED&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt; PWMTimerB_DeviceData = PWMTimerB_Init(NULL); // initialise timer concern to Blue LED&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt; PeriodicInterrupt_DeviceData = PeriodicInterrupt_Init(NULL);// initialise the Periodic interrupt timer&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:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Next we are giving initial value to the PWM output channels (Red channel, Green channel, Blue channel)&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Function &amp;quot;PWMTimerRG_SetOffsetTicks()&amp;quot; does this job&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;#39;PulseOffset&amp;#39; = 0 initially so PWM starts from 0 value&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="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;PWMTimerRG_SetOffsetTicks(PWMTimerRG_DeviceData, RedChannel, PulseOffset);&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;PWMTimerRG_SetOffsetTicks(PWMTimerRG_DeviceData, GreenChannel, PulseOffset);&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;PWMTimerB_SetOffsetTicks(PWMTimerB_DeviceData, BlueChannel, PulseOffset);&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:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Next we need to turn on the timers this is done using the function &amp;quot;PWMTimerRG_Enable()&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-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;In while(1) loop we are writing PWM value from 0 to 65535 and again from 65535 to 0 using the function &amp;quot;PWMTimerRG_SetOffsetTicks()&amp;quot;. this is done every periodically 50 us. &lt;/span&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;#39;PulseOffset&amp;#39; is variable which will take care of writing the PWM cycle value&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;As mentioned earlier the Periodic interrupt timer module will be generating an interrupt for every 50 us we need to create a variable &amp;ldquo;&lt;span style="background:yellow;text-decoration:underline;"&gt;PeriodicEvent&lt;/span&gt;&amp;rdquo;&lt;/span&gt; &lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;as shown below in the file &amp;ldquo;Events.c&amp;rdquo;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&amp;nbsp; &lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;text-decoration:underline;"&gt;extern volatile bool PeriodicEvent;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;text-decoration:underline;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;text-decoration:underline;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/791x423/__key/communityserver-wikis-components-files/00-00-00-01-49/4454.contentimage_5F00_35057.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/4454.contentimage_35057.jpg-620x332.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=zQCJWhRZMvTPMk%2BTxeKvmUtxpR6pJkW%2F6CnpsXjEe%2Bs%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=BFeP0sPmOlmaLIwk2j7egA==" style="max-height: 332px;max-width: 620px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="background:yellow;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;text-decoration:underline;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Add below lines of code inside a function as shown&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;ldquo;void PeriodicInterrupt_OnCounterRestart(LDD_TUserData *UserDataPtr)&amp;rdquo;&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="background:yellow;color:#7f0055;font-family:Consolas;font-size:10.0pt;"&gt;&lt;strong&gt;void&lt;/strong&gt;&lt;/span&gt;&lt;span style="background:yellow;color:black;font-family:Consolas;font-size:10.0pt;"&gt; &lt;strong&gt;PeriodicInterrupt_OnCounterRestart&lt;/strong&gt;(&lt;/span&gt;&lt;span style="background:yellow;color:#005032;font-family:Consolas;font-size:10.0pt;"&gt;LDD_TUserData&lt;/span&gt;&lt;span style="background:yellow;color:black;font-family:Consolas;font-size:10.0pt;"&gt; *UserDataPtr)&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:Consolas;font-size:10.0pt;"&gt;{&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&amp;nbsp; &lt;span style="background:yellow;color:#3f7f5f;font-family:Consolas;font-size:10.0pt;"&gt;/* Write your code here ... */&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:Consolas;font-size:10.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PeriodicEvent = TRUE;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="background:yellow;color:black;font-family:Consolas;font-size:10.0pt;"&gt;}&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Save all the files then clean and Build the project as shown below:&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/424x524/__key/communityserver-wikis-components-files/00-00-00-01-49/2311.contentimage_5F00_35058.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/2311.contentimage_35058.jpg-424x524.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=hhA1K2ODwSXq4rO5tzAtepA2cEYO8A77Ko4R5UxkNGY%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=3M/HbuHgpxyus/UyJ+WJZw==" style="max-height: 524px;max-width: 424px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;The build progress is shown below:&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/671x358/__key/communityserver-wikis-components-files/00-00-00-01-49/5543.contentimage_5F00_35059.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/5543.contentimage_35059.jpg-620x331.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=lc3uDEfdLpU4olf4gWP7JMxV0oXXDlFBD3Ac0PTlrWc%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=aUz8npY0Cxm9YOxGAc5TfA==" style="max-height: 331px;max-width: 620px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Now connect the board to USB through OpenSDA port of the board and Run the project as shown below:&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/664x358/__key/communityserver-wikis-components-files/00-00-00-01-49/8662.contentimage_5F00_35060.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/8662.contentimage_35060.jpg-620x334.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=IsB%2FeFi%2BRlO%2FpXsPS%2FhaPum9PtaDJ1MbAzWS8xP97TM%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=LOmw86Li+j48m6o46XN15Q==" style="max-height: 334px;max-width: 620px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;You can see Run progress bar as shown below:&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/674x370/__key/communityserver-wikis-components-files/00-00-00-01-49/6518.contentimage_5F00_35061.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/6518.contentimage_35061.jpg-620x340.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=3iz%2BsQM0fymrPyyaERDG3yXJudbuvYUDDFsKbbP%2B7to%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=CErW7rfHBYVVJX0JsvdXKQ==" style="max-height: 340px;max-width: 620px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Below is the console window which shows the status of execution process&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/670x360/__key/communityserver-wikis-components-files/00-00-00-01-49/3465.contentimage_5F00_35062.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/3465.contentimage_35062.jpg-620x333.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=3SK4xAxwWaN2z6yW0mdAdkI%2B%2BXgKXwwgoMTChZGuFzM%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=5NH9twHhwAokQzqjny2OEg==" style="max-height: 333px;max-width: 620px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;You can see the output which shows 2 LED&amp;rsquo;s Red and Green intensity is increased from 0% to 100% and again coming back from 100% to 0%. You can see the output waveform on CRO by connecting at led terminal as shown:&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/399x300/__key/communityserver-wikis-components-files/00-00-00-01-49/1321.contentimage_5F00_35063.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/1321.contentimage_35063.jpg-399x300.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=WDNTmxEe5wIm3tzWxZh4Rd5ABT1zK%2BsU4z7yxW55%2B7U%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=ZBNiCiHYSyzWgvEmTCsciA==" style="max-height: 300px;max-width: 399px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;The output waveform seen through oscilloscope is as shown below along with setup:&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/414x311/__key/communityserver-wikis-components-files/00-00-00-01-49/5554.contentimage_5F00_35064.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/5554.contentimage_35064.jpg-414x311.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=yVyJebFDxsJdDD%2FIk6RIb2PGCe5TcdFYhyIj40%2FGnUs%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=qQgzkFy9EST8UGua0lyI6A==" style="max-height: 311px;max-width: 414px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Watch the video output which is attached in this blog. Created supporting project files have been enclosed too for quick reference.&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-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;So it is concluded that by using the processor expert migration of the project from different Freedom platform boards made easy. &lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;font-size:12.0pt;"&gt;Happy Migrating ..... &lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/16x16/__key/communityserver-wikis-components-files/00-00-00-01-49/8182.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/8182.contentimage_1.png-16x16.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=fs2ZgQU9kQ17bs56x4taA0cVUsxgxL7ipn8m7N6mSdY%3D&amp;amp;se=2026-04-26T23%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;a href="https://community.element14.com/resized-image/__size/16x16/__key/communityserver-wikis-components-files/00-00-00-01-49/8686.contentimage_5F00_938.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/8686.contentimage_938.png-16x16.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=uOPOguUCrz%2B%2BC3KrlOQS%2FIOEPYlFjkuaveMivuYdTIM%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=/gMpxEBFOrSQf8R73bMqwQ==" style="max-height: 16px;max-width: 16px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&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 id="attid_https://www.element14.com/community/api/core/v3/attachments/137976" class="_se_attachment"&gt;&lt;a href="https://community.element14.com/cfs-file/__key/communityserver-wikis-components-files/00-00-00-01-49/pwm_5F00_led_2D00_kl25.rar"&gt;community.element14.com/.../pwm_5F00_led_2D00_kl25.rar&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td colspan="2"&gt;&lt;span id="attid_https://www.element14.com/community/api/core/v3/attachments/137977" class="_se_attachment"&gt;&lt;a href="https://community.element14.com/cfs-file/__key/communityserver-wikis-components-files/00-00-00-01-49/pwm_2D00_led-migrate_2D00_kl46.rar"&gt;community.element14.com/.../pwm_2D00_led-migrate_2D00_kl46.rar&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td colspan="2"&gt;&lt;span id="attid_https://www.element14.com/community/api/core/v3/attachments/137984" class="_se_attachment"&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://players.brightcove.net/1362235890001/default_default/index.html?videoId=6276288317001"&gt;players.brightcove.net/.../index.html&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: freedom-board, freescale, kl46, frdm-kl25z&lt;/div&gt;
</description></item><item><title>[FRDM-KL46Z - CW] Tutorial: Make it blink in 15min</title><link>https://community.element14.com/products/devtools/kinetiskl2freedomboard/w/documents/16980/frdm-kl46z---cw-tutorial-make-it-blink-in-15min</link><pubDate>Wed, 09 Aug 2023 12:07:07 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:0b2fc339-7f8d-47b5-9dd4-6e2b742c7932</guid><dc:creator>cstanton</dc:creator><description>Current Revision posted to Documents by cstanton on 8/9/2023 12:07:07 PM&lt;br /&gt;
&lt;p style="margin:0;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;This Project brings you with a quick step in blinking an LED on &lt;span&gt;&lt;span id="addProduct-eVnENOtz-linked" class="e14-init-shown" style="white-space:nowrap;"&gt;&lt;a class="jive-link-product-addtolist" href="https://www.element14.com/community/view-product.jspa?fsku=2318318&amp;amp;nsku=&amp;amp;COM=noscript" target="_blank" data-e14adj="y"&gt;&lt;span class="pf-widget-map pf-productlink-cart-icon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;a class="jive-link-product pf-embedded-product-link" href="https://www.element14.com/community/view-product.jspa?fsku=2318318&amp;amp;nsku=&amp;amp;COM=noscript" target="_blank" data-e14adj="y"&gt;FRDM-KL46Z&lt;/a&gt;&lt;/span&gt;&lt;span id="addProduct-eVnENOtz-unlinked" class="e14-init-hidden"&gt;FRDM-KL46Z&lt;/span&gt;&lt;/span&gt; board using CodeWarrior.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;The Freescale Freedom development platform is a set of software and hardware tools for evaluation and development. It is ideal for rapid prototyping of microcontroller-based applications. The Freescale Freedom KL46Z hardware, &lt;span&gt;&lt;span id="addProduct-owomLAID-linked" class="e14-init-shown" style="white-space:nowrap;"&gt;&lt;a class="jive-link-product-addtolist" href="https://www.element14.com/community/view-product.jspa?fsku=2318318&amp;amp;nsku=&amp;amp;COM=noscript" target="_blank" data-e14adj="y"&gt;&lt;span class="pf-widget-map pf-productlink-cart-icon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;a class="jive-link-product pf-embedded-product-link" href="https://www.element14.com/community/view-product.jspa?fsku=2318318&amp;amp;nsku=&amp;amp;COM=noscript" target="_blank" data-e14adj="y"&gt;FRDM-KL46Z&lt;/a&gt;&lt;/span&gt;&lt;span id="addProduct-owomLAID-unlinked" class="e14-init-hidden"&gt;FRDM-KL46Z&lt;/span&gt;&lt;/span&gt;, is a simple, yet sophisticated design featuring a Kinetis L series microcontroller, built on the ARM&lt;span class="emoticon" data-url="https://community.element14.com/cfs-file/__key/system/emoji/00ae.svg" title="Registered"&gt;&amp;#x00ae;&lt;/span&gt;&amp;nbsp;Cortex&lt;span class="emoticon" data-url="https://community.element14.com/cfs-file/__key/system/emoji/2122.svg" title="Tm"&gt;&amp;#x2122;&lt;/span&gt;-M0+ core.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;FRDM-KL46Z can be used to evaluate the KL46, KL36, KL26 and KL16 Kinetis L series devices. It features a &lt;span&gt;&lt;span id="addProduct-0ocywE2O-linked" class="e14-init-shown" style="white-space:nowrap;"&gt;&lt;a class="jive-link-product-addtolist" href="https://www.element14.com/community/view-product.jspa?fsku=2345457&amp;amp;nsku=&amp;amp;COM=noscript" target="_blank" data-e14adj="y"&gt;&lt;span class="pf-widget-map pf-productlink-cart-icon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;a class="jive-link-product pf-embedded-product-link" href="https://www.element14.com/community/view-product.jspa?fsku=2345457&amp;amp;nsku=&amp;amp;COM=noscript" target="_blank" data-e14adj="y"&gt;MKL46Z256VLL4&lt;/a&gt;&lt;/span&gt;&lt;span id="addProduct-0ocywE2O-unlinked" class="e14-init-hidden"&gt;MKL46Z256VLL4&lt;/span&gt;&lt;/span&gt;, this device boasting a max operating frequency of 48MHz, 256KB of flash, 32KB RAM, a full-speed USB controller, segment LCD controller, and loads of analog and digital peripherals. The FRDM-KL46Z hardware is form-factor compatible with the Arduino&lt;span class="emoticon" data-url="https://community.element14.com/cfs-file/__key/system/emoji/2122.svg" title="Tm"&gt;&amp;#x2122;&lt;/span&gt;&amp;nbsp;R3 pin layout, providing a broad range of expansion board options. The on-board interfaces includes a 4 digit segment LCD, a 3-axis digital accelerometer, magnetometer, capacitive touch slider, and ambient light sensor.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;The FRDM-KL46Z features the Freescale open standard embedded serial and debug adapter known as OpenSDA. This circuit offers several options for serial communications, flash programming and run-control debugging.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&lt;span style="color:black;"&gt;Refer to the &lt;/span&gt;&lt;a class="jive-link-external-small" href="http://www.element14.com/community/docs/DOC-54780/l/freedom-development-platform-for-kinetis-l-series-kl46" target="_blank" data-e14adj="y"&gt;link&lt;/a&gt;&lt;span style="color:black;"&gt; for more details on Freedom board.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="Default" style="margin:0;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;The features of the &lt;span&gt;&lt;span id="addProduct-KR6BFrCv-linked" class="e14-init-shown" style="white-space:nowrap;"&gt;&lt;a class="jive-link-product-addtolist" href="https://www.element14.com/community/view-product.jspa?fsku=2318318&amp;amp;nsku=&amp;amp;COM=noscript" target="_blank" data-e14adj="y"&gt;&lt;span class="pf-widget-map pf-productlink-cart-icon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;a class="jive-link-product pf-embedded-product-link" href="https://www.element14.com/community/view-product.jspa?fsku=2318318&amp;amp;nsku=&amp;amp;COM=noscript" target="_blank" data-e14adj="y"&gt;FRDM-KL46Z&lt;/a&gt;&lt;/span&gt;&lt;span id="addProduct-KR6BFrCv-unlinked" class="e14-init-hidden"&gt;FRDM-KL46Z&lt;/span&gt;&lt;/span&gt; include: &lt;/span&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&lt;span style="color:black;"&gt;&lt;span&gt;&lt;span id="addProduct-P9SDuWk3-linked" class="e14-init-shown" style="white-space:nowrap;"&gt;&lt;a class="jive-link-product-addtolist" href="https://www.element14.com/community/view-product.jspa?fsku=2345457&amp;amp;nsku=&amp;amp;COM=noscript" target="_blank" data-e14adj="y"&gt;&lt;span class="pf-widget-map pf-productlink-cart-icon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;a class="jive-link-product pf-embedded-product-link" href="https://www.element14.com/community/view-product.jspa?fsku=2345457&amp;amp;nsku=&amp;amp;COM=noscript" target="_blank" data-e14adj="y"&gt;MKL46Z256VLLZ4&lt;/a&gt;&lt;/span&gt;&lt;span id="addProduct-P9SDuWk3-unlinked" class="e14-init-hidden"&gt;MKL46Z256VLLZ4&lt;/span&gt;&lt;/span&gt; MCU (48 MHz, 256 KB Flash, 32 KB RAM, &lt;/span&gt;&lt;span style="color:black;"&gt;Low power, 100 LQFP package)&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;Dual role USB interface with mini-B USB connector&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;Open SDA&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;4 digit segment LCD module&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;Capacitive touch slider&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;Ambient light sensor&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&lt;span&gt;&lt;span id="addProduct-dNusrNwD-linked" class="e14-init-shown" style="white-space:nowrap;"&gt;&lt;a class="jive-link-product-addtolist" href="https://www.element14.com/community/view-product.jspa?fsku=1842359&amp;amp;nsku=&amp;amp;COM=noscript" target="_blank" data-e14adj="y"&gt;&lt;span class="pf-widget-map pf-productlink-cart-icon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;a class="jive-link-product pf-embedded-product-link" href="https://www.element14.com/community/view-product.jspa?fsku=1842359&amp;amp;nsku=&amp;amp;COM=noscript" target="_blank" data-e14adj="y"&gt;MMA8451Q&lt;/a&gt;&lt;/span&gt;&lt;span id="addProduct-dNusrNwD-unlinked" class="e14-init-hidden"&gt;MMA8451Q&lt;/span&gt;&lt;/span&gt; accelerometer&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&lt;span&gt;&lt;span id="addProduct-qFIUt2jq-linked" class="e14-init-shown" style="white-space:nowrap;"&gt;&lt;a class="jive-link-product-addtolist" href="https://www.element14.com/community/view-product.jspa?fsku=2080492&amp;amp;nsku=&amp;amp;COM=noscript" target="_blank" data-e14adj="y"&gt;&lt;span class="pf-widget-map pf-productlink-cart-icon"&gt;&lt;/span&gt;&lt;/a&gt;&lt;a class="jive-link-product pf-embedded-product-link" href="https://www.element14.com/community/view-product.jspa?fsku=2080492&amp;amp;nsku=&amp;amp;COM=noscript" target="_blank" data-e14adj="y"&gt;MAG3110&lt;/a&gt;&lt;/span&gt;&lt;span id="addProduct-qFIUt2jq-unlinked" class="e14-init-hidden"&gt;MAG3110&lt;/span&gt;&lt;/span&gt; Magnetometer&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;2 user LEDs&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;2 user push buttons&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;Flexible power supply options &amp;ndash; USB, coin cell battery, external source&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;Battery-ready, power-measurement access points&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;Easy access to MCU I/O via Arduino&amp;nbsp;&lt;span class="emoticon" data-url="https://community.element14.com/cfs-file/__key/system/emoji/2122.svg" title="Tm"&gt;&amp;#x2122;&lt;/span&gt;&amp;nbsp;R3 compatible I/O connectors&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;Programmable OpenSDA debug interface with multiple applications available including:&lt;/span&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;Mass storage device flash programming interface&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;P&amp;amp;E Debug interface provides run-control debugging and compatibility with IDE tools&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;CMSIS-DAP interface: new ARM standard for embedded debug interface&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;Data logging application&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;Arduino R3 compatibility&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p style="margin:0;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;Before we start on our project make sure the board is in Debug mode (refer to the &lt;a class="jive-link-external-small" href="http://www.element14.com/community/community/knode/dev_platforms_kits/element14_dev_kits/kinetis_kl2_freedom_board/blog/2013/08/24/quick-review-and-getting-started-with-the-frdm-kl46z" target="_blank" data-e14adj="y"&gt;blog&lt;/a&gt; how to load in Debug mode using OpenSDA)&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;Now that our board is loaded in Debug Let&amp;rsquo;s start on creating a CodeWarrior project to quickly demonstrate blinking LED on KL46 board.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;A free version of Codewarrior can be downloaded following the link below in the Downloads section:&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&lt;a class="jive-link-external-small" href="http://www.freescale.com/cwmcu10" rel="noopener noreferrer nofollow" target="_blank" data-e14adj="y"&gt;www.freescale.com/cwmcu10&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;The Evaluation version is a 30 days Limited version and the Special Edition is Code Size Limited version (64KB for Kinetis MCUs with an ARM Cortex-M0+ core and 128KB for the Kinetis MCUs with an ARM Cortex-M4 core)&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;Follow the below steps for creating the CW project:&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;text-decoration:underline;"&gt;Select File-&amp;gt;New-&amp;gt;Bareboard Project&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/601x529/__key/communityserver-wikis-components-files/00-00-00-01-49/4505.contentimage_5F00_35001.jpg"&gt;&lt;img alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/4505.contentimage_35001.jpg-601x529.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=afx37cUCPfiw%2BhN7D%2FpWYTIuw8nRKAoK4DInPBOXvO8%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=M2st2DUkFzVUOGi5A2v4Aw==" style="max-height: 529px;max-width: 601px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;Provide Project Name &amp;ldquo;&lt;span style="background:yellow;text-decoration:underline;"&gt;Blink-it using CW&lt;/span&gt;&amp;rdquo; then click &lt;span style="background:yellow;text-decoration:underline;"&gt;Next&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/447x478/__key/communityserver-wikis-components-files/00-00-00-01-49/7737.contentimage_5F00_35002.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/7737.contentimage_35002.jpg-447x478.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=GzhBv3TIkSVLvetbX%2FNkg79jB5N8KalPe5GvdFcULUg%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=8E+z7xjwJ6I5iqhesBZ6mA==" style="max-height: 478px;max-width: 447px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;Now select the MCU exist on our KL46 board it is &amp;ldquo;MKL46Z256&amp;rdquo;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&lt;span style="background:yellow;color:black;text-decoration:underline;"&gt;Kinetis L Series-&amp;gt; KL4x Family-&amp;gt;KL46Z(48 MHz) Family-&amp;gt;MKL46Z256&lt;/span&gt;&lt;span style="color:black;"&gt;&amp;nbsp;&amp;nbsp; then Click Next.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/393x514/__key/communityserver-wikis-components-files/00-00-00-01-49/3527.contentimage_5F00_35003.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/3527.contentimage_35003.jpg-393x514.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=EBI6QZbyn%2FoxvnYcJkoCq3kAUrh1GpGRL0%2BvmUfzlPk%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=Clfr5rT+9kMO1odZNM5ngA==" style="max-height: 514px;max-width: 393px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;Select OpenSDA option to connect for this board for debugging and programming, then click Next&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/363x474/__key/communityserver-wikis-components-files/00-00-00-01-49/8308.contentimage_5F00_35004.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/8308.contentimage_35004.jpg-363x474.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=29wHQzrm6xTBIxmJrlg4RzBcWlImZMm2c1evbGDp5bw%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=K0wjISCzgmzxCFzSg28QbQ==" style="max-height: 474px;max-width: 363px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;Then click Next to proceed further&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/355x469/__key/communityserver-wikis-components-files/00-00-00-01-49/3531.contentimage_5F00_35005.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/3531.contentimage_35005.jpg-355x469.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=cYhr1PyIuiR%2B%2FGSL6887fw0YqeL9nRSv%2FVVnt%2BM5W1o%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=t9+W0wEoIgYcA2vV1xkwkw==" style="max-height: 469px;max-width: 355px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;proceed further by clicking Next&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/339x443/__key/communityserver-wikis-components-files/00-00-00-01-49/2045.contentimage_5F00_35006.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/2045.contentimage_35006.jpg-339x443.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=7ehGWiGxKZfvH34tNto9ngJfGzJY%2BubsZRwAE0Y0eDA%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=1snqNEb2O9imW9K5Cp/qMA==" style="max-height: 443px;max-width: 339px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;in Rapid application development do not select Processor Expert then click on finish.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;I have created the project by name &amp;ldquo;Blink-it using CW&amp;rdquo; as shown below:&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/394x425/__key/communityserver-wikis-components-files/00-00-00-01-49/7725.contentimage_5F00_35007.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/7725.contentimage_35007.jpg-394x425.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=JEqRIDOAYSgsb9%2FWl6MK3s32YKu3lYX6x1GHhPoX7xg%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=KjqxcERI8Q+ta68mMjvrbw==" style="max-height: 425px;max-width: 394px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;Now open &amp;ldquo;main.c&amp;rdquo; and add the below code to it.&lt;/span&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&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-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&lt;span style="background:yellow;color:#7f0055;"&gt;&lt;strong&gt;#include&lt;/strong&gt;&lt;/span&gt;&lt;span style="background:yellow;color:#2a00ff;"&gt;&amp;quot;derivative.h&amp;quot;&lt;/span&gt;&lt;span style="background:yellow;color:#3f7f5f;"&gt;/* include peripheral declarations */&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&lt;span style="background:yellow;color:#7f0055;"&gt;&lt;strong&gt;void&lt;/strong&gt;&lt;/span&gt;&lt;span style="background:yellow;color:black;"&gt; &lt;strong&gt;delay&lt;/strong&gt;(&lt;/span&gt;&lt;span style="background:yellow;color:#7f0055;"&gt;&lt;strong&gt;int&lt;/strong&gt;&lt;/span&gt;&lt;span style="background:yellow;color:black;"&gt; itime);&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&lt;span style="background:yellow;color:#7f0055;"&gt;&lt;strong&gt;int&lt;/strong&gt;&lt;/span&gt;&lt;span style="background:yellow;color:black;"&gt; &lt;strong&gt;main&lt;/strong&gt;(&lt;/span&gt;&lt;span style="background:yellow;color:#7f0055;"&gt;&lt;strong&gt;void&lt;/strong&gt;&lt;/span&gt;&lt;span style="background:yellow;color:black;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;{&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt; SIM_SCGC5 |= SIM_SCGC5_PORTE_MASK; &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-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;" lang="FR"&gt;PORTE_PCR29 = PORT_PCR_MUX(1);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;" lang="FR"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GPIOE_PDDR |= (1 &amp;lt;&amp;lt; 29);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;strong&gt;&lt;span style="background:yellow;color:#7f0055;" lang="FR"&gt;for&lt;/span&gt;&lt;/strong&gt;&lt;span style="background:yellow;color:black;" lang="FR"&gt;(;;) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;" lang="FR"&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; GPIOE_PTOR |= (1 &amp;lt;&amp;lt; 29);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&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; delay(1000);&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="background:yellow;color:#7f0055;"&gt;&lt;strong&gt;return&lt;/strong&gt;&lt;/span&gt;&lt;span style="background:yellow;color:black;"&gt; 0;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;}&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&lt;span style="background:yellow;color:#7f0055;"&gt;&lt;strong&gt;void&lt;/strong&gt;&lt;/span&gt;&lt;span style="background:yellow;color:black;"&gt; &lt;strong&gt;delay&lt;/strong&gt;(&lt;/span&gt;&lt;span style="background:yellow;color:#7f0055;"&gt;&lt;strong&gt;int&lt;/strong&gt;&lt;/span&gt;&lt;span style="background:yellow;color:black;"&gt; itime){&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;span style="background:yellow;color:#7f0055;"&gt;&lt;strong&gt;int&lt;/strong&gt;&lt;/span&gt;&lt;span style="background:yellow;color:black;"&gt; icompTime = 0;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;span style="background:yellow;color:#7f0055;"&gt;&lt;strong&gt;for&lt;/strong&gt;&lt;/span&gt;&lt;span style="background:yellow;color:black;"&gt;(icompTime=itime*1000;icompTime!=0;icompTime--){&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;}&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;The line of code shown below is System Clock Gating Control Register 5 (SIM_SCGC5)and Enable clock for PORT E setting bit field PORTE&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;SIM_SCGC5 |= SIM_SCGC5_PORTE_MASK&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&lt;span style="color:#000000;"&gt;Next below line is Pin Control Register n (PORTx_PCRn) setting for PORTE, and Select GPIO as pin functionality on &lt;/span&gt;&lt;span style="color:#000000;"&gt;multiplexer&lt;/span&gt;&lt;span style="color:#000000;"&gt; setting field MUX=001&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;" lang="FR"&gt;PORTE_PCR29 = PORT_PCR_MUX(1);&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;The below line of code is Port Data Direction Register (GPIOx_PDDR) and Set GPIO direction set bit corresponding bit on the direction register for each port, set the bit means OUTPUT&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;GPIOE_PDDR |= (1 &amp;lt;&amp;lt; 29); &lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;In for() loop we are toggling the output LED connected to PortE29&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-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&lt;span style="color:black;"&gt;This can be found from Schematic of KL46Z board (&lt;/span&gt;&lt;a class="jive-link-external-small" href="http://www.element14.com/community/docs/DOC-54780/l/freedom-development-platform-for-kinetis-l-series-kl46" target="_blank" data-e14adj="y"&gt;http://www.element14.com/community/docs/DOC-54780/l/element14-presents-the-frdm-kl46z--a-freescale-kinetis-l-based-freedom-development-platform&lt;/a&gt;&lt;span style="color:black;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;table style="border:none;margin-left:58.75pt;" border="1" cellpadding="0" cellspacing="0"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td style="border:solid windowtext 1.0pt;padding:0 5.4pt 0 5.4pt;" valign="top" width="118"&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&lt;strong&gt;LED &lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td style="border:solid windowtext 1.0pt;border-left:none;padding:0 5.4pt 0 5.4pt;" valign="top" width="76"&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&lt;strong&gt;KL46 &lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="border:solid windowtext 1.0pt;border-top:none;padding:0 5.4pt 0 5.4pt;" valign="top" width="118"&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;Green (LED1)&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td style="border:none;border-bottom:solid windowtext 1.0pt;border-left:none;border-right:solid windowtext 1.0pt;border-top:none;padding:0 5.4pt 0 5.4pt;" valign="top" width="76"&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;PTD5 &lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td style="border:solid windowtext 1.0pt;border-top:none;padding:0 5.4pt 0 5.4pt;" valign="top" width="118"&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;Red (LED2)&lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;td style="border:none;border-bottom:solid windowtext 1.0pt;border-left:none;border-right:solid windowtext 1.0pt;border-top:none;padding:0 5.4pt 0 5.4pt;" valign="top" width="76"&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;PTE29 &lt;/span&gt;&lt;/p&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/265x194/__key/communityserver-wikis-components-files/00-00-00-01-49/3515.contentimage_5F00_35008.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/3515.contentimage_35008.jpg-265x194.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=Rnb4e3tbFOV4de2kLytFWgMzvhQYfqJYRFl19N44foY%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=HG3/XQc9zlGYkJtSB+lgpw==" style="max-height: 194px;max-width: 265px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/641x96/__key/communityserver-wikis-components-files/00-00-00-01-49/6747.contentimage_5F00_35009.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/6747.contentimage_35009.jpg-620x93.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=NgMsGaMxt5n3%2FnjgFv0p6KsJS2pafsnX0ykRJ4E8YrU%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=3nlQn41kSHr0jhOVSl748w==" style="max-height: 93px;max-width: 620px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/609x327/__key/communityserver-wikis-components-files/00-00-00-01-49/2538.contentimage_5F00_35010.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/2538.contentimage_35010.jpg-609x327.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=nKqZffKJ%2Bu9yPckrW%2F5%2BFb%2BSCctvsidCOL4xRJiLl3M%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=eyrvKAFTEAXYnBYwDDaO1A==" style="max-height: 327px;max-width: 609px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;line-height:1.5em;"&gt;Now it&amp;rsquo;s time to clean and Build the project as shown:&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/397x317/__key/communityserver-wikis-components-files/00-00-00-01-49/6761.contentimage_5F00_35011.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/6761.contentimage_35011.jpg-397x317.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=7WT%2F6VwprSZM8ELdTxTCCP%2B2AqTrIQANym8MIf%2BKjoc%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=2e4avAWFBkIAI9+xHOuAcA==" style="max-height: 317px;max-width: 397px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;You can then see project starts building as shown&lt;/span&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/619x331/__key/communityserver-wikis-components-files/00-00-00-01-49/5265.contentimage_5F00_35012.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/5265.contentimage_35012.jpg-619x331.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=JtsIgQnfrzwjtCMJ58toZlhQX22%2FZ%2FojP68F2iIuWi4%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=u0LdIgOPhlo7rrqbIe/usw==" style="max-height: 331px;max-width: 619px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;Now Run the project as shown:&lt;/span&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/616x238/__key/communityserver-wikis-components-files/00-00-00-01-49/1055.contentimage_5F00_35013.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_35013.jpg-616x238.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=OUz%2BDDtyfEivWFS4VPm8v3xExA%2FDNZti%2BnXgKB8NFQ4%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=FEeNrpiWc3XfDeI28a5ZCg==" style="max-height: 238px;max-width: 616px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;Now you can see the blinking of Red LED on KL46 board &lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;Project created folder and Video output of this project execution is attached for reference.&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/226x293/__key/communityserver-wikis-components-files/00-00-00-01-49/5287.contentimage_5F00_35014.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/5287.contentimage_35014.jpg-226x293.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=f%2F5MiQj3i799bWE%2FFRO1oYymCOKcCzbd2nnx1e3z35w%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=VbxICya643n+sMseCv5/0Q==" style="max-height: 293px;max-width: 226px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;Now we will modify our code to blink Green LED too (both Red and Green)&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;By referring to schematic we know Green LED is connected to port PTD5 &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-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&lt;span style="background:yellow;color:#7f0055;"&gt;&lt;strong&gt;#include&lt;/strong&gt;&lt;/span&gt;&lt;span style="background:yellow;color:#2a00ff;"&gt;&amp;quot;derivative.h&amp;quot;&lt;/span&gt;&lt;span style="background:yellow;color:#3f7f5f;"&gt;/* include peripheral declarations */&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&lt;span style="background:yellow;color:#7f0055;"&gt;&lt;strong&gt;void&lt;/strong&gt;&lt;/span&gt;&lt;span style="background:yellow;color:black;"&gt; &lt;strong&gt;delay&lt;/strong&gt;(&lt;/span&gt;&lt;span style="background:yellow;color:#7f0055;"&gt;&lt;strong&gt;int&lt;/strong&gt;&lt;/span&gt;&lt;span style="background:yellow;color:black;"&gt; itime);&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&lt;span style="background:yellow;color:#7f0055;"&gt;&lt;strong&gt;int&lt;/strong&gt;&lt;/span&gt;&lt;span style="background:yellow;color:black;"&gt; &lt;strong&gt;main&lt;/strong&gt;(&lt;/span&gt;&lt;span style="background:yellow;color:#7f0055;"&gt;&lt;strong&gt;void&lt;/strong&gt;&lt;/span&gt;&lt;span style="background:yellow;color:black;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&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; &lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SIM_SCGC5 |= SIM_SCGC5_PORTE_MASK; // PORT E mask Red LED&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;margin-left:36.0pt;"&gt;&lt;span style="background:yellow;color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SIM_SCGC5 |= SIM_SCGC5_PORTD_MASK; // PORT D mask connected to Green LED&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;" lang="FR"&gt;&amp;nbsp; PORTE_PCR29 = PORT_PCR_MUX(1); // PORT E MUX&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;" lang="FR"&gt;PORTD_PCR5 = PORT_PCR_MUX(1); // PORT D MUX&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;" lang="FR"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GPIOE_PDDR |= (1 &amp;lt;&amp;lt; 29);&amp;nbsp; //&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; switching on RED LED&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;" lang="FR"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GPIOD_PDDR |= (1 &amp;lt;&amp;lt; 5);&amp;nbsp; //&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; switching on Green LED &lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;strong&gt;&lt;span style="background:yellow;color:#7f0055;" lang="FR"&gt;for&lt;/span&gt;&lt;/strong&gt;&lt;span style="background:yellow;color:black;" lang="FR"&gt;(;;) {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;" lang="FR"&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; GPIOE_PTOR |= (1 &amp;lt;&amp;lt; 29);&amp;nbsp; // Toggling RED LED after some delay&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;" lang="FR"&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; GPIOD_PTOR |= (1 &amp;lt;&amp;lt; 5);&amp;nbsp;&amp;nbsp; // Toggling Green LED after some delay&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&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; delay(1000);&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="background:yellow;color:#7f0055;"&gt;&lt;strong&gt;return&lt;/strong&gt;&lt;/span&gt;&lt;span style="background:yellow;color:black;"&gt; 0;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;}&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&lt;span style="background:yellow;color:#7f0055;"&gt;&lt;strong&gt;void&lt;/strong&gt;&lt;/span&gt;&lt;span style="background:yellow;color:black;"&gt; &lt;strong&gt;delay&lt;/strong&gt;(&lt;/span&gt;&lt;span style="background:yellow;color:#7f0055;"&gt;&lt;strong&gt;int&lt;/strong&gt;&lt;/span&gt;&lt;span style="background:yellow;color:black;"&gt; itime){&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;span style="background:yellow;color:#7f0055;"&gt;&lt;strong&gt;int&lt;/strong&gt;&lt;/span&gt;&lt;span style="background:yellow;color:black;"&gt; icompTime = 0;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;span style="background:yellow;color:#7f0055;"&gt;&lt;strong&gt;for&lt;/strong&gt;&lt;/span&gt;&lt;span style="background:yellow;color:black;"&gt;(icompTime=itime*1000;icompTime!=0;icompTime--){&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;margin-bottom:.0001pt;"&gt;&lt;span style="background:yellow;color:black;font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;}&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p style="margin:0;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;we can now see both LED&amp;#39;s are blinking&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:arial, helvetica, sans-serif;font-size:12pt;"&gt;&lt;span style="color:black;"&gt;Happy Blinking LED on KL46 board...&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/6332.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/6332.contentimage_1.png-16x16.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=CbiCtNpNFsjlUV9ZWfBK6zFfKbO7vLDVukAnDQK12eI%3D&amp;amp;se=2026-04-26T23%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;a href="https://community.element14.com/resized-image/__size/16x16/__key/communityserver-wikis-components-files/00-00-00-01-49/7802.contentimage_5F00_938.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/7802.contentimage_938.png-16x16.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=miQlgGQbqmBfqaonUchnEtDBRGUApKSQv8K8QXpM7zQ%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=/gMpxEBFOrSQf8R73bMqwQ==" style="max-height: 16px;max-width: 16px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&lt;span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="font-family:arial, helvetica, sans-serif;font-size:12pt;"&gt;&lt;span&gt;&lt;a href="https://players.brightcove.net/1362235890001/default_default/index.html?videoId=6276288309001"&gt;players.brightcove.net/.../index.html&lt;/a&gt;&lt;/span&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 id="attid_https://www.element14.com/community/api/core/v3/attachments/137770" class="_se_attachment"&gt;&lt;a href="https://community.element14.com/cfs-file/__key/communityserver-wikis-components-files/00-00-00-01-49/Blink-it-CW_2D00_KL46.rar"&gt;community.element14.com/.../Blink-it-CW_2D00_KL46.rar&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td colspan="2"&gt;&lt;span id="attid_https://www.element14.com/community/api/core/v3/attachments/137780" class="_se_attachment"&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: freescale, kl46, kinetis, freedom&lt;/div&gt;
</description></item><item><title>New Kinetis Design Studio V3.0.0 available</title><link>https://community.element14.com/products/devtools/kinetiskl2freedomboard/w/documents/19741/new-kinetis-design-studio-v3-0-0-available</link><pubDate>Fri, 08 Oct 2021 08:27:17 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:26293b52-a553-48ad-bab5-5abf8d32dd0e</guid><dc:creator>bheemarao</dc:creator><description>Current Revision posted to Documents by bheemarao on 10/8/2021 8:27:17 AM&lt;br /&gt;
&lt;p style="margin:0;"&gt;&lt;span style="color:#ff0000;font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;“This document has been extracted from Erich Styger blog &lt;/span&gt;&lt;span style="color:#ff0000;font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;a class="jive-link-external-small" href="https://community.freescale.com/docs/DOC-104880" rel="nofollow" target="_blank"&gt;&lt;span style="color:#ff0000;"&gt;https://community.freescale.com/docs/DOC-104880&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style="color:#ff0000;font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt; with his agreement.”&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;color:#3366ff;font-family:tahoma,arial,helvetica,sans-serif;"&gt;Greetings,&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:#3366ff;font-size:12pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;The new Kinetis Design Studio V3.0.0 is available in the download section of the Freescale web:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:tahoma,arial,helvetica,sans-serif;color:#3366ff;"&gt;&lt;a class="jive-link-external-small" href="http://www.freescale.com/kds" rel="nofollow" target="_blank"&gt;&lt;span style="color:#3366ff;"&gt;http://www.freescale.com/kds&lt;/span&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="color:#3366ff;font-size:12pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;Kinetis Design Studio is free of charge and unlimited.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;h1&gt;&lt;span style="color:#3366ff;font-size:14pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;What&amp;#39;s New&lt;/span&gt;&lt;/h1&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size:12pt;color:#3366ff;font-family:tahoma,arial,helvetica,sans-serif;"&gt;New &lt;strong&gt;Eclipse Luna&lt;/strong&gt; 4.4 IDE&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:12pt;color:#3366ff;font-family:tahoma,arial,helvetica,sans-serif;"&gt;Added &lt;strong&gt;Mac OS X&lt;/strong&gt; (10.10, &amp;quot;Yosemite&amp;quot;) host operating system support with Segger J-Link.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:12pt;color:#3366ff;font-family:tahoma,arial,helvetica,sans-serif;"&gt;Added &lt;strong&gt;CMSIS-SVD Peripheral Register viewer&lt;/strong&gt;.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:12pt;color:#3366ff;font-family:tahoma,arial,helvetica,sans-serif;"&gt;New &amp;#39;&lt;strong&gt;Welcome&lt;/strong&gt;&amp;#39; view&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:12pt;color:#3366ff;font-family:tahoma,arial,helvetica,sans-serif;"&gt;New &lt;strong&gt;GNU ARM Embedded (launchpad)&lt;/strong&gt; toolchain, reducing memory footprint especially for small devices.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:12pt;color:#3366ff;font-family:tahoma,arial,helvetica,sans-serif;"&gt;New &lt;strong&gt;upgrade/migration assistant&lt;/strong&gt; to migrate projects to V3.0.0.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:12pt;color:#3366ff;font-family:tahoma,arial,helvetica,sans-serif;"&gt;Updated and extended &lt;strong&gt;Segger&lt;/strong&gt; and &lt;strong&gt;P&amp;amp;E&lt;/strong&gt; debugging support: &lt;strong&gt;attach to running target, semihosting and advanced flash programming features&lt;/strong&gt;.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:12pt;color:#3366ff;font-family:tahoma,arial,helvetica,sans-serif;"&gt;New&lt;strong&gt; Processor Expert V3.0&lt;/strong&gt; with &lt;strong&gt;multiple repository&lt;/strong&gt; support and simplified Kinetis SDK usage and ability to generate projects for &lt;strong&gt;IAR&lt;/strong&gt; and &lt;strong&gt;Keil&lt;/strong&gt;.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:12pt;color:#3366ff;font-family:tahoma,arial,helvetica,sans-serif;"&gt;Updated &lt;strong&gt;New Project Wizard&lt;/strong&gt; (NPW) for simpler project creation.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:12pt;color:#3366ff;font-family:tahoma,arial,helvetica,sans-serif;"&gt;Updated &lt;strong&gt;GNU ARM Eclipse&lt;/strong&gt; plugins, multiple tool chain configurations.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:12pt;color:#3366ff;font-family:tahoma,arial,helvetica,sans-serif;"&gt;Aligned and optimized for &lt;strong&gt;Kinetis SDK v1.2&lt;/strong&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:12pt;color:#3366ff;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;strong&gt;New Device Support:&lt;/strong&gt; see attached release notes (Rev 1).&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;color:#3366ff;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;color:#3366ff;font-family:tahoma,arial,helvetica,sans-serif;"&gt;For full/additional device support:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;color:#3366ff;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-size:12pt;color:#3366ff;font-family:tahoma,arial,helvetica,sans-serif;"&gt;Download the Kinetis SDK v1.2 from &lt;a class="jive-link-external-small" href="http://www.freescale.com/ksdk" rel="nofollow" target="_blank"&gt;&lt;span style="color:#3366ff;"&gt;Software Development Kit for Kinetis MCUs|Freescale&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size:12pt;color:#3366ff;font-family:tahoma,arial,helvetica,sans-serif;"&gt;Install the Kinetis SDK&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="color:#3366ff;font-size:12pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;Add Kinetis SDK v1.2 to KDS: Use the menu &lt;strong&gt;&lt;em&gt;Help &amp;gt; Install New Software&lt;/em&gt;&lt;/strong&gt; and use C:\Freescale\KSDK_1.2.0\tools\eclipse_update\KSDK_1.2.0_Eclipse_Update (KSDK path on windows)&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;span style="font-family:tahoma,arial,helvetica,sans-serif;color:#3366ff;"&gt;See &lt;a class="jive-link-wiki-small" href="https://community.freescale.com/docs/DOC-103698"&gt;&lt;span style="color:#3366ff;"&gt;https://community.freescale.com/docs/DOC-103698&lt;/span&gt;&lt;/a&gt; for additional details, especially about porting KDS v2.0.0 projects to the GNU ARM Embedded (launchpad) tools.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;h1&gt;&lt;span style="color:#3366ff;font-size:14pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;Screenshots of new features&lt;/span&gt;&lt;/h1&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#3366ff;font-size:12pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;Mac OS X support:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;color:#3366ff;"&gt;&lt;a href="https://community.freescale.com/servlet/JiveServlet/downloadImage/102-104880-9-22845/pastedImage_1.png"&gt;&lt;img alt="image"  class="jiveImage jive-image" height="439" src="https://community.freescale.com/servlet/JiveServlet/downloadImage/102-104880-9-22845/pastedImage_1.png" width="702" /&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="color:#3366ff;font-size:12pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;New Workspace Welcome 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;span style="font-family:tahoma,arial,helvetica,sans-serif;color:#3366ff;"&gt;&lt;a href="https://community.freescale.com/servlet/JiveServlet/downloadImage/102-104880-9-22844/pastedImage_0.png"&gt;&lt;img loading="lazy" alt="image"  class="jiveImage jive-image" height="484" src="https://community.freescale.com/servlet/JiveServlet/downloadImage/102-104880-9-22844/pastedImage_0.png" width="866" /&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="color:#3366ff;font-size:12pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;Kinetis SDK selection in New Project Wizard:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;color:#3366ff;"&gt;&lt;a href="https://community.freescale.com/servlet/JiveServlet/showImage/102-104880-9-22839/pastedImage_0.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;span style="color:#3366ff;"&gt;&lt;img loading="lazy" alt="image"  class="jiveImage jive-image" height="652" src="https://community.freescale.com/servlet/JiveServlet/downloadImage/102-104880-9-22839/pastedImage_0.png" width="556" /&gt;&lt;/span&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="color:#3366ff;font-size:12pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;Ability to generate Processor Expert (Microcontroller Driver Suite) external projects for IAR and Keil:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;color:#3366ff;"&gt;&lt;a href="https://community.freescale.com/servlet/JiveServlet/showImage/102-104880-9-22840/pastedImage_1.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;span style="color:#3366ff;"&gt;&lt;img loading="lazy" alt="image"  class="jiveImage jive-image" height="296" src="https://community.freescale.com/servlet/JiveServlet/downloadImage/102-104880-9-22840/pastedImage_1.png" width="473" /&gt;&lt;/span&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="color:#3366ff;font-size:12pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;Eclipse Luna 4.4, e.g. Split Editor Views:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;color:#3366ff;"&gt;&lt;a href="https://community.freescale.com/servlet/JiveServlet/showImage/102-104880-9-22846/pastedImage_2.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;span style="color:#3366ff;"&gt;&lt;img loading="lazy" alt="image"  class="jiveImage jive-image" height="119" src="https://community.freescale.com/servlet/JiveServlet/downloadImage/102-104880-9-22846/pastedImage_2.png" width="502" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;color:#3366ff;"&gt;&lt;a href="https://community.freescale.com/servlet/JiveServlet/showImage/102-104880-9-22847/pastedImage_3.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;span style="color:#3366ff;"&gt;&lt;img loading="lazy" alt="image"  class="jiveImage jive-image" height="395" src="https://community.freescale.com/servlet/JiveServlet/downloadImage/102-104880-9-22847/pastedImage_3.png" width="866" /&gt;&lt;/span&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="color:#3366ff;font-size:12pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;Processor Expert V3.0 and multiple component repositories:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;color:#3366ff;"&gt;&lt;a href="https://community.freescale.com/servlet/JiveServlet/showImage/102-104880-9-22849/pastedImage_0.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;span style="color:#3366ff;"&gt;&lt;img loading="lazy" alt="image"  class="jiveImage jive-image" height="471" src="https://community.freescale.com/servlet/JiveServlet/downloadImage/102-104880-9-22849/pastedImage_0.png" width="972" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;color:#3366ff;"&gt;&lt;a href="https://community.freescale.com/servlet/JiveServlet/showImage/102-104880-9-22850/pastedImage_1.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;span style="color:#3366ff;"&gt;&lt;img loading="lazy" alt="image"  class="jiveImage jive-image" height="530" src="https://community.freescale.com/servlet/JiveServlet/downloadImage/102-104880-9-22850/pastedImage_1.png" width="628" /&gt;&lt;/span&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="color:#3366ff;font-size:12pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;Upgrade assistant to migrate projects from KDS V1.x/V2.0.0 to V3.0.0:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;color:#3366ff;"&gt;&lt;a href="https://community.freescale.com/servlet/JiveServlet/showImage/102-104880-9-22851/pastedImage_2.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;span style="color:#3366ff;"&gt;&lt;img loading="lazy" alt="image"  class="jiveImage jive-image" height="222" src="https://community.freescale.com/servlet/JiveServlet/downloadImage/102-104880-9-22851/pastedImage_2.png" width="240" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;color:#3366ff;"&gt;&lt;a href="https://community.freescale.com/servlet/JiveServlet/showImage/102-104880-9-22852/pastedImage_3.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;span style="color:#3366ff;"&gt;&lt;img loading="lazy" alt="image"  class="jiveImage jive-image" height="465" src="https://community.freescale.com/servlet/JiveServlet/downloadImage/102-104880-9-22852/pastedImage_3.png" width="396" /&gt;&lt;/span&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="color:#3366ff;font-size:12pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;Multiple tool chain configurations:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;color:#3366ff;"&gt;&lt;a href="https://community.freescale.com/servlet/JiveServlet/showImage/102-104880-9-22853/pastedImage_4.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;span style="color:#3366ff;"&gt;&lt;img loading="lazy" alt="image"  class="jiveImage jive-image" height="248" src="https://community.freescale.com/servlet/JiveServlet/downloadImage/102-104880-9-22853/pastedImage_4.png" width="561" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;color:#3366ff;"&gt;&lt;img loading="lazy" alt="image" class="migration-embeded-object" src="#https://www.element14.com/community/docs/DOC-76614/l/new-kinetis-design-studio-v300-available"  /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#3366ff;font-size:12pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;Peripheral Register Viewer:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;color:#3366ff;"&gt;&lt;a href="https://community.freescale.com/servlet/JiveServlet/showImage/102-104880-9-22855/pastedImage_7.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;span style="color:#3366ff;"&gt;&lt;img loading="lazy" alt="image"  class="jiveImage jive-image" height="388" src="https://community.freescale.com/servlet/JiveServlet/downloadImage/102-104880-9-22855/pastedImage_7.png" width="888" /&gt;&lt;/span&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="color:#3366ff;font-size:12pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;JTAG Daisy Chaining:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;color:#3366ff;"&gt;&lt;a href="https://community.freescale.com/servlet/JiveServlet/showImage/102-104880-9-22856/pastedImage_8.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;span style="color:#3366ff;"&gt;&lt;img loading="lazy" alt="image"  class="jiveImage jive-image" height="487" src="https://community.freescale.com/servlet/JiveServlet/downloadImage/102-104880-9-22856/pastedImage_8.png" width="830" /&gt;&lt;/span&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="color:#3366ff;font-size:12pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;Advanced Flash Programming Options:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;color:#3366ff;"&gt;&lt;a href="https://community.freescale.com/servlet/JiveServlet/showImage/102-104880-9-22858/pastedImage_10.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;span style="color:#3366ff;"&gt;&lt;img loading="lazy" alt="image"  class="jiveImage jive-image" height="450" src="https://community.freescale.com/servlet/JiveServlet/downloadImage/102-104880-9-22858/pastedImage_10.png" width="847" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#3366ff;font-size:12pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;Attach to running target:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;color:#3366ff;"&gt;&lt;a href="https://community.freescale.com/servlet/JiveServlet/showImage/102-104880-9-22857/pastedImage_9.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;span style="color:#3366ff;"&gt;&lt;img loading="lazy" alt="image"  class="jiveImage jive-image" height="525" src="https://community.freescale.com/servlet/JiveServlet/downloadImage/102-104880-9-22857/pastedImage_9.png" width="680" /&gt;&lt;/span&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="color:#3366ff;font-size:12pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;And finally, for the &amp;#39;lovers of the dark side&amp;#39; &lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/16x16/__key/communityserver-wikis-components-files/00-00-00-01-49/4478.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/4478.contentimage_1.png-16x16.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=18H10ojy1vPKUSvCAK%2FEK80msctzsQCj1NvjNNl89CU%3D&amp;amp;se=2026-04-26T23%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;a href="https://community.element14.com/resized-image/__size/16x16/__key/communityserver-wikis-components-files/00-00-00-01-49/4478.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/4478.contentimage_1.png-16x16.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=18H10ojy1vPKUSvCAK%2FEK80msctzsQCj1NvjNNl89CU%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=zGEM7pHL10Vt71gae75OdA==" style="max-height: 16px;max-width: 16px;" /&gt;&lt;/a&gt;&lt;/span&gt; Eclipse Luna &amp;#39;Dark&amp;#39; style:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;color:#3366ff;"&gt;&lt;a href="https://community.freescale.com/servlet/JiveServlet/showImage/102-104880-9-22860/pastedImage_1.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;span style="color:#3366ff;"&gt;&lt;img loading="lazy" alt="image"  class="jiveImage jive-image" height="381" src="https://community.freescale.com/servlet/JiveServlet/downloadImage/102-104880-9-22860/pastedImage_1.png" width="701" /&gt;&lt;/span&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="color:#3366ff;"&gt;&lt;span style="font-size:12pt;"&gt;Enjoy &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/4478.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/4478.contentimage_1.png-16x16.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=18H10ojy1vPKUSvCAK%2FEK80msctzsQCj1NvjNNl89CU%3D&amp;amp;se=2026-04-26T23%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;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: kds_ide, kds-v3.0.0, kds&lt;/div&gt;
</description></item><item><title>To Build MQX RTOS libraries required for MQX project execution using FRDM-K64F Board</title><link>https://community.element14.com/products/devtools/kinetiskl2freedomboard/w/documents/19734/to-build-mqx-rtos-libraries-required-for-mqx-project-execution-using-frdm-k64f-board</link><pubDate>Fri, 08 Oct 2021 08:27:11 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:3c01a728-3b6e-4285-84b9-4b452340997c</guid><dc:creator>bheemarao</dc:creator><description>Current Revision posted to Documents by bheemarao on 10/8/2021 8:27:11 AM&lt;br /&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;This section describes the steps required to configure KDS to build, run, and debug MQX&lt;span class="emoticon" data-url="https://community.element14.com/cfs-file/__key/system/emoji/2122.svg" title="Tm"&gt;&amp;#x2122;&lt;/span&gt; RTOS demo applications and necessary driver libraries provided in the KSDK framework.&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;font-size:12pt;"&gt;There are 3 libraries required to build for any new MQX project creation and execution:&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;font-size:12pt;"&gt;Platform Library for MQX, MQX Library, MQX Standard Library.&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;font-size:12pt;"&gt;&lt;br /&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;font-size:12pt;"&gt;Before building and debugging any demo applications, all libraries must be built. &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;font-size:12pt;"&gt;To build the library for a device, follow these instructions:&lt;/span&gt;&lt;/p&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-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;font-size:12pt;"&gt;1) &lt;span style="text-decoration:underline;"&gt;Platform Library for MQX, ‘libksdk_platform_mqx.a’&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="Default" style="margin:0;padding:0px;margin-left:36pt;"&gt;&amp;nbsp;&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;font-size:12pt;"&gt;We need to build a MQX platform library before we proceed.&lt;/span&gt;&lt;/p&gt;&lt;p class="Default" style="margin:0;padding:0px;"&gt;&amp;nbsp;&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;Right click on project explorer and select import 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/352x305/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_55645.png"&gt;&lt;img alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/contentimage_55645.png-352x305.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=dBOZQxkizxygOvS8%2FIAhtwrGdb7IdvuDEJfmhn2T%2BgU%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=XSjtZRXVVifApka5Mxxg6A==" style="max-height: 305px;max-width: 352px;" /&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:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;Select existing project into workspace 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/419x439/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_55646.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/contentimage_55646.png-419x439.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=X7WNd9cuZMK6FwchlRP6IN1EoyaAaCDUI4N%2Bm4IRKj0%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=TvtJwfKKkI08p7/lUkS8OA==" style="max-height: 439px;max-width: 419px;" /&gt;&lt;/a&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;Next browse to the installed KSDK folder 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/509x492/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_55647.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/contentimage_55647.png-509x492.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=WBAqw%2BTTteX0nhNTPjMLroizBUjL3Sv1%2BcAv3pyZRNs%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=lU0HZEU5LkVSCr0o1jBD2g==" style="max-height: 492px;max-width: 509px;" /&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;padding:0 0 1.0pt 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;The folder path in my case is&amp;nbsp;&amp;nbsp; &lt;span style="background:yellow;"&gt;“C:\Freescale\KSDK_1.1.0\lib\ksdk_mqx_lib\kds\K64F12”&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0 0 1.0pt 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;Proceed further by clicking 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/395x493/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_55648.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/contentimage_55648.png-395x493.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=8j%2BtJ1E9KCN5SdkIJhe7vHZDZI8bmXLZcxjXAOPsCfc%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=klSgzBCQvhARpPzJQHc3sw==" style="max-height: 493px;max-width: 395px;" /&gt;&lt;/a&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;Now select the project from project explorer and build the library 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/371x438/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_55649.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/contentimage_55649.png-371x438.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=JeyduecV3x6Kt99%2F8f6uCiia1D6AdW4fxyNgp%2B%2FT36s%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=NhmP5sQgiBBuNZfXuRYksA==" style="max-height: 438px;max-width: 371px;" /&gt;&lt;/a&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;You can see the project build progress as shown below:&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;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/487x243/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_55650.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/contentimage_55650.png-487x243.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=9vN4vDvF%2Fe6Y9j6fbAhFzVpDotv5%2B62ZKxlUKT5wTBQ%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=VT/JNwN8Wg9fd8RtHtrQlA==" style="max-height: 243px;max-width: 487px;" /&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;&lt;br /&gt;&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;You can see the generated library file “&lt;/span&gt;&lt;span style="font-size:10.0pt;font-family:Consolas;color:black;"&gt;libksdk_platform_mqx.a” &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;under console window as shown below: &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0 0 1.0pt 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;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/461x231/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_55651.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/contentimage_55651.png-461x231.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=z5OAuxl6EGKruhaEEPHRXuO0LorRWgM5Ynw9fD73MPY%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=RslAqW4ZUH/hwqMFAMhmzQ==" style="max-height: 231px;max-width: 461px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0 0 1.0pt 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;The path it is generated is “C:\Freescale\KSDK_1.1.0\lib\ksdk_mqx_lib\kds\K64F12\Debug”&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;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/605x365/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_55652.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/contentimage_55652.png-605x365.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=fpRLFkYzfc3FZMKST1ElB4B%2BRYuOLWGMwias47mi3qk%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=jXM/j8LVEINHplMZDXzmgg==" style="max-height: 365px;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:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;Note: remember this path which has to be provided for any new MQX project creation.&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:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;text-decoration:underline;"&gt;2) MQX Library, ‘lib_mqx.a’&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;br /&gt; &lt;span style="font-size:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;Follow the similar steps as above the path while importing for lib_mqx is &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0 0 1.0pt 0;"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;background:yellow;"&gt;“C:\Freescale\KSDK_1.1.0\rtos\mqx\mqx\build\kds\mqx_frdmk64f”&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/277x240/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_55653.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/contentimage_55653.png-277x240.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=xg9WLXXY9NM4j7iaP7IjAtNmDLbx8noJtp5P0HI62iM%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=Pkrvxy/bD03NagHdMM71GA==" style="max-height: 240px;max-width: 277px;" /&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&gt;&lt;a href="https://community.element14.com/resized-image/__size/472x409/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_55654.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/contentimage_55654.png-472x409.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=LGwBhzm7pzVEODL150YWsgwbXKOOKt%2F%2FHDqX%2FLqlP3U%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=MgGiEqVRSy3N15jEFvk7Lw==" style="max-height: 409px;max-width: 472px;" /&gt;&lt;/a&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;Build the project “mqx_frdmk64f”&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/483x316/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_55655.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/contentimage_55655.png-483x316.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=y%2BEfWyIeZPk9B%2FW%2BP2fEGww8JAQOMYANskn7ri1E0SE%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=G0mfAl6E7FTn37nrCb2m4A==" style="max-height: 316px;max-width: 483px;" /&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;padding:0 0 1.0pt 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;The library generated file is “lib_mqx.a” which is stored in path &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0 0 1.0pt 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;“C:\Freescale\KSDK_1.1.0\rtos\mqx\lib\frdmk64f.kds\debug\mqx”&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:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;text-decoration:underline;"&gt;3) MQX Standard Library, ‘lib_mqx_stdlib.a’&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:0 0 1.0pt 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;Similarly import “mqx_stdlib_frdmk64f” project from the folder &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0 0 1.0pt 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;padding:0 0 1.0pt 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;“C:\Freescale\KSDK_1.1.0\rtos\mqx\mqx_stdlib\build\kds\mqx_stdlib_frdmk64f”&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&amp;nbsp; &lt;span style="font-size:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;And build it as shown below:&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;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/605x415/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_55656.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/contentimage_55656.png-605x415.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=ui1Is34O8epvHZU7EPFlCcz69879GnlExrNmkQokQTc%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=NwfNGI/DuJFCFCai+lDt/g==" style="max-height: 415px;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:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;you will find the generated library “lib_mqx_stdlib.a” stored at location&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0 0 1.0pt 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;padding:0 0 1.0pt 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;quot;C:\Freescale\KSDK_1.1.0\rtos\mqx\lib\frdmk64f.kds\debug\mqx_stdlib&amp;quot;&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;Note: remember these paths to be included at the time of any new MQX project building and execution.&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;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;NOTE: For information about building KSDK and MQX libraries in KDS please see chapter ‘3 Building the MQX RTOS libraries’ of ‘Getting Started with Freescale MQX&lt;span class="emoticon" data-url="https://community.element14.com/cfs-file/__key/system/emoji/2122.svg" title="Tm"&gt;&amp;#x2122;&lt;/span&gt; RTOS for Kinetis SDK and Kinetis Design Studio IDE’ located in MQX for KSDK installation path C:\Freescale\KSDK_1.1.0\rtos\mqx\doc\tools &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: mqx, rtos, frdm-k64f, libraries&lt;/div&gt;
</description></item><item><title>Eclipse Update for Freescale Kinetis SDK 1.0.0-GA</title><link>https://community.element14.com/products/devtools/kinetiskl2freedomboard/w/documents/17082/eclipse-update-for-freescale-kinetis-sdk-1-0-0-ga</link><pubDate>Fri, 08 Oct 2021 07:54:07 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:1317dfcd-a333-4466-9890-ed55ea23f263</guid><dc:creator>bheemarao</dc:creator><description>Current Revision posted to Documents by bheemarao on 10/8/2021 7:54:07 AM&lt;br /&gt;
&lt;p style="margin:0;font-size:13.63636302948px;"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;This document will show how to install New Eclipse Update required to work on recent SDK 1.0.0-GA.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;font-size:13.63636302948px;"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;Without the update, KDS cannot generate KSDK-compatible projects.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;font-size:13.63636302948px;"&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;font-size:13.63636302948px;"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;To use the Kinetis SDK with Eclipse and Processor Expert, this updated needs to be installed into Eclipse (e.g. Kinetis Design Studio or Processor Expert Driver Suite). Otherwise both &amp;#39;New Project Wizard&amp;#39; and Processor Expert will not know about the devices present and supported in the Kinetis SDK.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;font-size:13.63636302948px;"&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;font-size:13.63636302948px;"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;With the installation of this update, the &amp;#39;New Project Wizard&amp;#39; will be enabled to use the Kinetis SDK for the devices supported, and Processor Expert components for the Kinetis SDK are added.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;font-size:13.63636302948px;"&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;font-size:13.63636302948px;"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;To install the update, follow these instructions:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;font-size:13.63636302948px;"&gt;&amp;nbsp;&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 a KDS project window Select &lt;span style="background:aqua;text-decoration:underline;"&gt;Help &amp;gt; Install New Software&lt;/span&gt;.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;font-size:13.63636302948px;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/318x294/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_38545.jpg"&gt;&lt;img alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/contentimage_38545.jpg-318x294.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=6kJZf8FIM6J1ICi4EQ3Y4TKWlFXBIR6K54HkFhV7GDs%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=026f23xYu6dsl2RBqhJqAg==" style="max-height: 294px;max-width: 318px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;font-size:13.63636302948px;"&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 “Install New Software” dialog box, select the “Add…” button in the upper right corner.&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;Select “Archive…” In the “Add Repository” dialog as shown below.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;font-size:13.63636302948px;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/544x376/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_38546.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/contentimage_38546.jpg-544x376.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=qZVY2EozavSs%2B9OT3OqbInT9T0eKBfBpcKkwvh6Fh%2Bk%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=YWgdhqluYPCv73Li040/Rg==" style="max-height: 376px;max-width: 544px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="Default" style="margin:0;font-size:13.63636302948px;"&gt;&lt;span style="color:#3333cc;font-size:12pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;Or optionally you can download the KSDK update from here &lt;/span&gt;&lt;span style="font-size:12pt;"&gt;&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" target="_blank"&gt;&lt;span style="color:#3333cc;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&gt;&lt;span style="color:#3333cc;font-size:12pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt; and provide the local path in “Add Repository” window.&lt;/span&gt;&lt;/p&gt;&lt;p class="Default" style="margin:0;font-size:13.63636302948px;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/613x317/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_38547.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/contentimage_38547.jpg-613x317.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=HqHKJUg7WUogwIpY3LuOp7gpZR2ZiRK5MA2JEfq1o3w%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=1cT6AX1CjTHFDekGWuww9A==" style="max-height: 317px;max-width: 613px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;font-size:13.63636302948px;"&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 dialog box that appears, browse the KSDK install directory. From the top-level, enter the &lt;span style="background:aqua;text-decoration:underline;"&gt;tools/eclipse_update&lt;/span&gt; folder and select the &lt;em&gt;&lt;span style="background:aqua;text-decoration:underline;"&gt;SDK_1.0.0-GA_Update_for_Eclipse.zip&lt;/span&gt; &lt;/em&gt;file as shown below.&lt;/span&gt;&lt;/p&gt;&lt;p class="Default" style="margin:0;padding:0px;font-size:13.63636302948px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="Default" style="margin:0;font-size:13.63636302948px;"&gt;&lt;span style="font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/563x354/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_38548.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/contentimage_38548.jpg-563x354.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=i9e7vmIm9Ka3nF91YL4DHhw7geWmIVZlmWsXYb4zAfI%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=jOZcbmEbyWJ05M8pItH5PA==" style="max-height: 354px;max-width: 563px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="Default" style="margin:0;font-size:13.63636302948px;"&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 on “Open”, and then “OK” in the “Add Repository” dialog box. The KSDK update now shows up as “Processor Expert Software” &amp;gt;“Eclipse Update for KSDK 1.0.0-GA” as shown below.&lt;/span&gt;&lt;/p&gt;&lt;p class="Default" style="margin:0;font-size:13.63636302948px;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/500x386/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_38549.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/contentimage_38549.jpg-500x386.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=WNzGUQlRaWjHrtCJn8zPxAGCqJZ%2B3g2aOHvkeRDoYAk%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=z5MWayE1dblkD67Hw5ppNg==" style="max-height: 386px;max-width: 500px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="Default" style="margin:0;font-size:13.63636302948px;"&gt;&lt;span style="font-size:12.0pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;Check the box to the left of the KSDK Eclipse update and click “Next” in the lower right corner. Follow the remaining instructions to finish the installation of the update.&lt;/span&gt;&lt;/p&gt;&lt;p class="Default" style="margin:0;padding:0px;font-size:13.63636302948px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="Default" style="margin:0;font-size:13.63636302948px;"&gt;&lt;span style="color:#3333cc;font-size:12pt;font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;Once the update is applied, restart KDS for the changes to take effect.&lt;/span&gt;&lt;/p&gt;&lt;p class="Default" style="margin:0;padding:0px;font-size:13.63636302948px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="Default" style="margin:0;font-size:13.63636302948px;"&gt;&lt;span style="font-family:Tahoma, sans-serif;color:#3333cc;font-size:12pt;"&gt;After installation you can see the contents as below&lt;/span&gt;&lt;/p&gt;&lt;p class="Default" style="margin:0;padding:0px;font-size:13.63636302948px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="Default" style="margin:0;font-size:13.63636302948px;"&gt;&lt;span style="font-family:&amp;#39;Tahoma&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#3333cc;"&gt;&lt;span style="font-size:12pt;"&gt;Click on &lt;/span&gt;&lt;span style="background:aqua;font-size:12pt;text-decoration:underline;"&gt;Help&amp;gt; About Kinetis Design Studio&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="Default" style="margin:0;font-size:13.63636302948px;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/254x254/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_38550.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/contentimage_38550.jpg-254x254.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=D%2FmXYkEGW949ZDAQEOFGespcnB%2Fm3ovSA4FWHZRYzvw%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=BaHcYdAc86UWySlh6K3+0Q==" style="max-height: 254px;max-width: 254px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="Default" style="margin:0;font-size:13.63636302948px;"&gt;&lt;span style="font-family:Tahoma, sans-serif;color:#3333cc;font-size:12pt;"&gt;And click on installation details as shown below:&lt;/span&gt;&lt;/p&gt;&lt;p class="Default" style="margin:0;font-size:13.63636302948px;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/402x195/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_38551.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/contentimage_38551.jpg-402x195.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=N9krwwiYSb42Yn8tDqOvZKmBzK4X8p7EB%2B15%2Fx0ManA%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=JQodd1s5sKsdGXswCcJCUw==" style="max-height: 195px;max-width: 402px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="Default" style="margin:0;font-size:13.63636302948px;"&gt;&lt;span style="font-family:Tahoma, sans-serif;color:#3333cc;font-size:12pt;"&gt;You can see all the updates installed check Eclipse Update for KSDK 1.0.0-GA is installed as shown&lt;/span&gt;&lt;/p&gt;&lt;p class="Default" style="margin:0;font-size:13.63636302948px;"&gt;&lt;span style="font-family:Tahoma, sans-serif;color:#3333cc;font-size:12pt;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/455x465/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_38552.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/contentimage_38552.jpg-455x465.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=QCfWERPzBTeLJ0kbVP2yKHHbvcfbvpaReYObfwcPU78%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=VxoCYDyyK5TSHFw1iwTb7w==" style="max-height: 465px;max-width: 455px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:Tahoma, sans-serif;color:#3333cc;font-size:12pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&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><item><title>[FRDM-K64F - PE - Eclipse] Project: Create a Data Logger</title><link>https://community.element14.com/products/devtools/kinetiskl2freedomboard/w/documents/17007/frdm-k64f---pe---eclipse-project-create-a-data-logger</link><pubDate>Fri, 08 Oct 2021 07:52:30 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:3c4f1e18-4814-4f6e-8212-6de34d437661</guid><dc:creator>bheemarao</dc:creator><description>Current Revision posted to Documents by bheemarao on 10/8/2021 7:52:30 AM&lt;br /&gt;
&lt;p style="margin:0;"&gt;&lt;em&gt;&lt;span lang="EN-US" style="font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#ff6600;background:white;"&gt;“&lt;/span&gt;&lt;span lang="EN-US" style="font-size:10.0pt;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#ff6600;background:white;"&gt;This tutorial was extracted from Erich Styger blog&lt;/span&gt;&lt;/em&gt;&lt;span class="apple-converted-space"&gt;&lt;em&gt; &lt;/em&gt;&lt;/span&gt;&lt;em&gt;&lt;span lang="EN-US" style="font-size:10.0pt;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#ff6600;background:white;"&gt;&lt;a class="jive-link-external-small" href="http://mcuoneclipse.wordpress.com/" rel="nofollow ugc noopener" target="_blank"&gt;&lt;span style="font-family:inherit;color:#592d5f;"&gt;http://mcuoneclipse.wordpress.com&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/em&gt;&lt;span class="apple-converted-space"&gt;&lt;em&gt; &lt;/em&gt;&lt;/span&gt;&lt;em&gt;&lt;span lang="EN-US" style="font-size:10.0pt;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#ff6600;background:white;"&gt;with his agreement.”&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#373737;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;"&gt;&lt;em&gt;&lt;span lang="EN-US" style="font-size:10.0pt;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#ff6600;background:white;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#373737;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;"&gt;The Freescale FRDM-K64F is a great board for data logger applications: it has a powerful ARM Cortex M4F with 120 MHz, 1 MB Flash and 256 KByte RAM. Best of all: it already has a micro SD card socket on the board &lt;/span&gt;&lt;span class="emoji emoji-smile wp-smiley" style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;text-indent:9999px;color:#373737;" title=":-)"&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/3750.contentimage_5F00_1.png"&gt;&lt;img alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/3750.contentimage_1.png-16x16.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=0TgLG%2Fzq2hwOCXZiw%2BUmpcH3REKe1zrLFLHWhqA9uEM%3D&amp;amp;se=2026-04-26T23%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;/p&gt;&lt;p style="margin:0;"&gt;&lt;span class="emoji emoji-smile wp-smiley" style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;text-indent:9999px;color:#373737;" title=":-)"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/05/data-logger-with-frdm-k64f.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="Data Logger with FRDM-K64F" class="jiveImage wp-image-11744 size-full" height="337" src="http://mcuoneclipse.files.wordpress.com/2014/05/data-logger-with-frdm-k64f.png?w=584&amp;amp;h=337" style="border-color:#eeeeee;padding:6px;" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia, serif;font-size:12px;font-style:inherit;font-weight:inherit;margin-bottom:0.6em;padding-top:10px;padding-bottom:5px;padding-left:40px;color:#666666;"&gt;Data Logger with FRDM-K64F&lt;/p&gt;&lt;p style="margin:0;padding:0px;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&amp;nbsp;&lt;/p&gt;&lt;h1 style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:0.8125em;color:#000000;"&gt;Outline&lt;/h1&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;In “&lt;a class="jive-link-external-small" href="http://mcuoneclipse.com/2012/11/18/arduino-data-logger-shield-with-the-frdm-kl25z-board/" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank" title="Arduino Data-Logger Shield with the FRDM-KL25Z Board"&gt;Arduino Data-Logger Shield with the FRDM-KL25Z Board&lt;/a&gt;” I already used the FRDM-KL25Z with the Arduino Data-Logger shield with CodeWarrior. Basically the same can be applied to the FRDM-K64F. I moved to Eclipse Kepler (see “&lt;a class="jive-link-external-small" href="http://mcuoneclipse.com/2014/05/18/constructing-a-classroom-ide-with-eclipse-for-arm/" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank" title="Constructing a Classroom IDE with Eclipse for ARM"&gt;Constructing a Classroom IDE with Eclipse for ARM&lt;/a&gt;“), so here is an updated tutorial: how to create a data logger application with the FRDM-K64F and Eclipse Kepler.&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;You need:&lt;/p&gt;&lt;ol style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;margin-left:2.5em;list-style-position:initial;list-style-image:initial;color:#373737;"&gt;&lt;li&gt;Eclipse Kepler with Processor Expert as outlined in “&lt;a class="jive-link-external-small" href="http://mcuoneclipse.com/2014/05/18/constructing-a-classroom-ide-with-eclipse-for-arm/" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank" title="Constructing a Classroom IDE with Eclipse for ARM"&gt;Constructing a Classroom IDE with Eclipse for ARM&lt;/a&gt;“&lt;/li&gt;&lt;li&gt;Freescale &lt;a class="jive-link-external-small" href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=FRDM-K64F" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;FRDM-K64F&lt;/a&gt; board with USB cable&lt;/li&gt;&lt;li&gt;A micro SD card&lt;/li&gt;&lt;/ol&gt;&lt;blockquote class="jive-quote" style="font-family:Georgia, &amp;#39;Bitstream Charter&amp;#39;, serif;font-size:15px;font-style:italic;margin:0 3em;color:#373737;"&gt;&lt;span style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;margin-bottom:1.625em;"&gt;&lt;span class="emoji emoji-idea wp-smiley" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;text-indent:9999px;" title=":idea:"&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/contentimage_5F00_6666.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/contentimage_6666.png-16x16.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=dVKqXAwGUCXC8zGkwhBgXBG%2B9Dui0Kh1j7%2F118paLQ4%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=z1B2Ic0e8J/0fkgv1GAVsg==" style="max-height: 16px;max-width: 16px;" /&gt;&lt;/a&gt;&lt;/span&gt;:&lt;/span&gt; This tutorial can be used with &lt;a class="jive-link-external-small" href="http://www.freescale.com/cwmcu10" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;CodeWarrior for MCU10.x&lt;/a&gt;, &lt;a class="jive-link-external-small" href="http://mcuoneclipse.com/2014/04/12/processor-expert-driver-suitepluginskds-v10-4-with-new-component-inspector/" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank" title="Processor Expert (Driver Suite/Plugins/KDS) V10.4 with new Component Inspector"&gt;Processor Expert Driver Suite&lt;/a&gt; or &lt;a class="jive-link-external-small" href="http://www.freescale.com/kds" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;Kinetis Design Studio&lt;/a&gt; too. The principle is the same, but the project creation steps will be somewhat different.&lt;/span&gt;&lt;/blockquote&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;Make sure you have loaded the latest Processor Expert components from GitHub (see “&lt;a class="jive-link-external-small" href="http://mcuoneclipse.com/2013/05/09/processor-expert-component-peupd-files-on-github/" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank" title="Processor Expert Component *.PEupd Files on GitHub"&gt;Processor Expert Component *.PEupd Files on GitHub&lt;/a&gt;“).&lt;/span&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;The project created in this tutorial is available on GitHub:&lt;a class="jive-link-external-small" href="https://github.com/ErichStyger/mcuoneclipse/tree/master/Examples/Eclipse/FRDM-K64F/FRDM-K64F120M/FRDM-K64F_DataLogger" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;https://github.com/ErichStyger/mcuoneclipse/tree/master/Examples/Eclipse/FRDM-K64F/FRDM-K64F120M/FRDM-K64F_DataLogger&lt;/a&gt;.&lt;/span&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;In principle, this tutorial can be applied to any other board: Just make sure you select the microcontroller on your board, and adopt the pin settings for the devices you have.&lt;/span&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;While it would make sense to use an RTOS like FreeRTOS for a data logger, I’m showing here a ‘bare metal’ data logger. An RTOS with tasks then can be easily added to the project.&lt;/span&gt;&lt;/p&gt;&lt;h1 style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:0.8125em;color:#000000;"&gt;&lt;/h1&gt;&lt;h1 style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:0.8125em;color:#000000;"&gt;Creating the Project&lt;/h1&gt;&lt;blockquote class="jive-quote" style="font-family:Georgia, &amp;#39;Bitstream Charter&amp;#39;, serif;font-size:15px;font-style:italic;margin:0 3em;color:#373737;"&gt;&lt;span style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;margin-bottom:1.625em;"&gt;&lt;span class="emoji-exclaim emoji wp-smiley" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;text-indent:9999px;" title=":!:"&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/contentimage_5F00_6666.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/contentimage_6666.png-16x16.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=dVKqXAwGUCXC8zGkwhBgXBG%2B9Dui0Kh1j7%2F118paLQ4%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=z1B2Ic0e8J/0fkgv1GAVsg==" style="max-height: 16px;max-width: 16px;" /&gt;&lt;/a&gt;&lt;/span&gt;:&lt;/span&gt; The steps below are for standard DIY Eclipse Kepler IDE and GNU ARM Eclipse. If you are using Kinetis Design Studio (KDS), then use the File &amp;gt; New &amp;gt; Kinetis Design Studio menu. If using CodeWarrior for MCU10.6, then use the File &amp;gt; New &amp;gt; Bareboard project. Note that the wizard pages are different. Create a Processor Expert project for the MK64FN1M0xxx12.&lt;/span&gt;&lt;/blockquote&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;Use the menu File &amp;gt; New &amp;gt; C Project to create a new&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/05/new-project.png?w=584"&gt;&lt;img loading="lazy" alt="New Project" class="jiveImage" src="http://mcuoneclipse.files.wordpress.com/2014/05/new-project.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; New Project&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:#373737;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;"&gt;Provide a name for the Cross ARM GCC Freescale Processor Expert C/C++ Project:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/05/datalogger-cross-arm-gcc-project-for-processor-expert.png?w=584&amp;amp;h=498"&gt;&lt;img loading="lazy" alt="DataLogger Cross ARM GCC Project for Processor Expert" class="jiveImage" src="http://mcuoneclipse.files.wordpress.com/2014/05/datalogger-cross-arm-gcc-project-for-processor-expert.png?w=584&amp;amp;h=498" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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; DataLogger Cross ARM GCC Project for Processor Expert&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#666666;font-family:Georgia, serif;font-size:12px;background-color:#eeeeee;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;Then select the M4 core with the PEx Driver Suite 10.4 Wizard invocation:&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/05/m4-core-for-pex-driversuite-10-4.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="M4 core for PEx DriverSuite 10.4" height="382" src="http://mcuoneclipse.files.wordpress.com/2014/05/m4-core-for-pex-driversuite-10-4.png?w=584&amp;amp;h=382" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#666666;font-size:12px;background-color:#eeeeee;margin-bottom:1.625em;font-family:Georgia, serif;"&gt; &lt;/span&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; M4 core for PEx DriverSuite 10.4&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:#373737;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;"&gt;In the next dialog I usually deselect the ‘Release’ configuration:&lt;/span&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;blockquote class="jive-quote" style="font-family:Georgia, &amp;#39;Bitstream Charter&amp;#39;, serif;font-size:15px;font-style:italic;margin:0 3em;color:#373737;"&gt;&lt;span style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;margin-bottom:1.625em;"&gt;&lt;span class="emoji emoji-idea wp-smiley" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;text-indent:9999px;" title=":idea:"&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/contentimage_5F00_6666.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/contentimage_6666.png-16x16.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=dVKqXAwGUCXC8zGkwhBgXBG%2B9Dui0Kh1j7%2F118paLQ4%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=z1B2Ic0e8J/0fkgv1GAVsg==" style="max-height: 16px;max-width: 16px;" /&gt;&lt;/a&gt;&lt;/span&gt;:&lt;/span&gt; In the Embedded World typically there is no such thing like ‘Release’ or ‘Debug’: it is always ‘Debug’, see “&lt;a class="jive-link-external-small" href="http://mcuoneclipse.com/2012/06/01/debug-vs-release/" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank" title="Debug vs. Release?"&gt;Debug vs. Release?&lt;/a&gt;“&lt;/span&gt;&lt;/blockquote&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/2014/05/debug-only.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Debug only" src="http://mcuoneclipse.files.wordpress.com/2014/05/debug-only.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;text-align:left;"&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; Debug only&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;In the next dialog I have the opportunity to configure the tool chain.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;blockquote class="jive-quote" style="font-family:Georgia, &amp;#39;Bitstream Charter&amp;#39;, serif;font-size:15px;font-style:italic;margin:0 3em;color:#373737;"&gt;&lt;span style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;margin-bottom:1.625em;"&gt;&lt;span class="emoji emoji-idea wp-smiley" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;text-indent:9999px;" title=":idea:"&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/contentimage_5F00_6666.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/contentimage_6666.png-16x16.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=dVKqXAwGUCXC8zGkwhBgXBG%2B9Dui0Kh1j7%2F118paLQ4%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=z1B2Ic0e8J/0fkgv1GAVsg==" style="max-height: 16px;max-width: 16px;" /&gt;&lt;/a&gt;&lt;/span&gt;:&lt;/span&gt; I’m using the ${gcc_path} Eclipse variable to point to my GNU ARM Embedded tool chain (see “&lt;a class="jive-link-external-small" href="http://mcuoneclipse.com/2014/05/18/constructing-a-classroom-ide-with-eclipse-for-arm/" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank" title="Constructing a Classroom IDE with Eclipse for ARM"&gt;Constructing a Classroom IDE with Eclipse for ARM&lt;/a&gt;“)&lt;/span&gt;&lt;/blockquote&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/2014/05/cross-gnu-arm-toolchain.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Cross GNU ARM Toolchain" src="http://mcuoneclipse.files.wordpress.com/2014/05/cross-gnu-arm-toolchain.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; Cross GNU ARM Toolchain&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;Press ‘Finish’, and the project wizard calls the Processor Expert wizard to configure the microcontroller. Select the MK64FN1M0xxx12 which is present on the FRDM-K64F board:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/05/mk64fn1m0xxx12.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="MK64FN1M0xxx12" src="http://mcuoneclipse.files.wordpress.com/2014/05/mk64fn1m0xxx12.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; MK64FN1M0xxx12&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;In the next dialog I use ‘Linked’: this means that the project uses links to the Processor Expert library files. Alternatively you can use ‘Standalone’, then the files get copied into the project.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/05/linked-mode.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Linked Mode" src="http://mcuoneclipse.files.wordpress.com/2014/05/linked-mode.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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;&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;&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; Linked Mode&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;Then I select the GNU C Compiler:&lt;/span&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/05/gnu-c-compiler.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="GNU C Compiler" src="http://mcuoneclipse.files.wordpress.com/2014/05/gnu-c-compiler.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GNU C Compiler&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;With ‘Finish’ the project gets created. Processor Expert opens a help window explaining how to convert a project for Processor Expert. We can ignore this as the wizard already has done everything for us &lt;span class="emoji emoji-smile wp-smiley" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;text-indent:9999px;" title=":-)"&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/3750.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/3750.contentimage_1.png-16x16.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=0TgLG%2Fzq2hwOCXZiw%2BUmpcH3REKe1zrLFLHWhqA9uEM%3D&amp;amp;se=2026-04-26T23%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;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;span class="emoji emoji-smile wp-smiley" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;text-indent:9999px;" title=":-)"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/05/datalogger-project.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="DataLogger Project" src="http://mcuoneclipse.files.wordpress.com/2014/05/datalogger-project.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DataLogger Project&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;blockquote class="jive-quote" style="font-family:Georgia, &amp;#39;Bitstream Charter&amp;#39;, serif;font-size:15px;font-style:italic;margin:0 3em;color:#373737;"&gt;&lt;span style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;margin-bottom:1.625em;"&gt;&lt;span class="emoji emoji-idea wp-smiley" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;text-indent:9999px;" title=":idea:"&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/contentimage_5F00_6666.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/contentimage_6666.png-16x16.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=dVKqXAwGUCXC8zGkwhBgXBG%2B9Dui0Kh1j7%2F118paLQ4%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=z1B2Ic0e8J/0fkgv1GAVsg==" style="max-height: 16px;max-width: 16px;" /&gt;&lt;/a&gt;&lt;/span&gt;:&lt;/span&gt; I’m using Processor Expert views in the next step. If this is your first Processor Expert project, make sure select the menu Processor Expert &amp;gt; Show Views to open the needed views.&lt;/span&gt;&lt;/blockquote&gt;&lt;h1 style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:0.8125em;color:#000000;"&gt;&lt;/h1&gt;&lt;h1 style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:0.8125em;color:#000000;"&gt;Project Cleanup and Adjustments&lt;/h1&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;While the project created is fine, I usually do some cleanup. First I remove the ‘RAM’ configuration with the context menu, as I’m only going to use the FLASH target:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/05/deleting-configuration.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Deleting Configuration" src="http://mcuoneclipse.files.wordpress.com/2014/05/deleting-configuration.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:10pt;line-height:1.5em;"&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;&amp;nbsp; Deleting Configuration&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;Same for the obsolete CPU (orphaned now as it was tight to the RAM configuration &lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/16x16/__key/communityserver-wikis-components-files/00-00-00-01-49/3750.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/3750.contentimage_1.png-16x16.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=0TgLG%2Fzq2hwOCXZiw%2BUmpcH3REKe1zrLFLHWhqA9uEM%3D&amp;amp;se=2026-04-26T23%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;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/05/removing-ram-configuration-cpu.png" rel="nofollow ugc noopener" target="_blank"&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; &lt;img loading="lazy" alt="Removing RAM Configuration CPU" src="http://mcuoneclipse.files.wordpress.com/2014/05/removing-ram-configuration-cpu.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Removing RAM Configuration CPU&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;The MK64FN1M0VLQ12 derivative is a LQFP 144-pin package, but the FRDM-K64F board is using a LQFP 100-pin package. In the component inspector, I change it to the 100-pin package:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;blockquote class="jive-quote" style="font-family:Georgia, &amp;#39;Bitstream Charter&amp;#39;, serif;font-size:15px;font-style:italic;margin:0 3em;color:#373737;"&gt;&lt;span style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;margin-bottom:1.625em;"&gt;&lt;span class="emoji emoji-idea wp-smiley" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;text-indent:9999px;" title=":idea:"&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/contentimage_5F00_6666.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/contentimage_6666.png-16x16.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=dVKqXAwGUCXC8zGkwhBgXBG%2B9Dui0Kh1j7%2F118paLQ4%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=z1B2Ic0e8J/0fkgv1GAVsg==" style="max-height: 16px;max-width: 16px;" /&gt;&lt;/a&gt;&lt;/span&gt;:&lt;/span&gt; Right click on CPU, select Inspector menu item to open the ‘Component Inspector’ view if not already open.&lt;/span&gt;&lt;/blockquote&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/2014/05/changing-cpu-package.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Changing CPU package" height="287" src="http://mcuoneclipse.files.wordpress.com/2014/05/changing-cpu-package.png?w=584&amp;amp;h=287" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Changing CPU package&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;The PinSettings component can be removed, as we will care ourselves about the pin settings in the components:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/05/pinsettings-component.png" rel="nofollow ugc noopener" target="_blank"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;img loading="lazy" alt="PinSettings Component" src="http://mcuoneclipse.files.wordpress.com/2014/05/pinsettings-component.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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;&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; PinSettings Component&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:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;Now the project is clean and using the 100-pin VLL12 package:&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;a href="http://mcuoneclipse.files.wordpress.com/2014/05/100-pin-vll12-package.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="100-pin VLL12 package" src="http://mcuoneclipse.files.wordpress.com/2014/05/100-pin-vll12-package.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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;&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; 100-pin VLL12 package&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;h1 style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:0.8125em;color:#000000;"&gt;Generating Code&lt;/h1&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;The project is still ‘empty’, but at this stage I prefer to verify that I can generate code, build it and download it to the target. To generate the Processor Expert code I use the toolbar 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/2014/05/generate-processor-expert-code.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Generate Processor Expert Code" src="http://mcuoneclipse.files.wordpress.com/2014/05/generate-processor-expert-code.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Generate Processor Expert Code&lt;/p&gt;&lt;h1 style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:0.8125em;color:#000000;"&gt;&lt;/h1&gt;&lt;h1 style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:0.8125em;color:#000000;"&gt;Building Project&lt;/h1&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;To build the project I select the project and use the ‘Hammer’ drop down icon:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/05/building-project.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Building Project" src="http://mcuoneclipse.files.wordpress.com/2014/05/building-project.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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;&amp;nbsp; Building Project&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;It should build with no errors:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/05/console-view-with-no-errors.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Console View with no Errors" height="270" src="http://mcuoneclipse.files.wordpress.com/2014/05/console-view-with-no-errors.png?w=584&amp;amp;h=270" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console View with no Errors&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;h1 style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:0.8125em;color:#000000;"&gt;Debugging&lt;/h1&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;I’m using here the &lt;a class="jive-link-external-small" href="http://mcuoneclipse.com/2014/04/27/segger-j-link-firmware-for-opensdav2/" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank" title="Segger J-Link Firmware for OpenSDAv2"&gt;Segger OpenSDAv2&lt;/a&gt; debug firmware on the FRDM-K64F board. I select the project and open the Debug Configurations:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/05/menu-debug-configurations.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Menu Debug Configurations" height="213" src="http://mcuoneclipse.files.wordpress.com/2014/05/menu-debug-configurations.png?w=584&amp;amp;h=213" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Menu Debug Configurations&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;The double-click on the GDB Segger J-Link Debugging item to create a new configuration: The .elf and project name should be filled automatically:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/05/new-segger-launch-configuration.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="New Segger Launch Configuration" height="488" src="http://mcuoneclipse.files.wordpress.com/2014/05/new-segger-launch-configuration.png?w=584&amp;amp;h=488" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; New Segger Launch Configuration&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;In the Debugger tab I make sure the proper device name (MK64FN1M0xxx12) and interface (SWD) is selected:&lt;/span&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/05/device-name-and-interface-for-segger.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Device name and interface for Segger" height="548" src="http://mcuoneclipse.files.wordpress.com/2014/05/device-name-and-interface-for-segger.png?w=584&amp;amp;h=548" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Device name and interface for Segger&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;In the Startup tab I make sure semihosting and SWO are disabled:&lt;/span&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/05/segger-semihosting-and-swo-disabled.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Segger Semihosting and SWO disabled" height="548" src="http://mcuoneclipse.files.wordpress.com/2014/05/segger-semihosting-and-swo-disabled.png?w=584&amp;amp;h=548" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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; Segger Semihosting and SWO disabled&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;Pressing Apply (if any changes), then press Debug to launch the debugger, and I should be debugging:&lt;/span&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/05/initial-debug-session.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Initial Debug Session" height="461" src="http://mcuoneclipse.files.wordpress.com/2014/05/initial-debug-session.png?w=584&amp;amp;h=461" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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;&amp;nbsp; Initial Debug Session&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;So with this I know that everything works from building to debugging. Time to terminate the debugging session:&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/05/terminating-the-debug-session.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Terminating the debug session" src="http://mcuoneclipse.files.wordpress.com/2014/05/terminating-the-debug-session.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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; Terminating the debug session&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;And to return to the C/C++ perspective:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/05/return-to-c-and-c-perspective.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Return to C and C++ Perspective" src="http://mcuoneclipse.files.wordpress.com/2014/05/return-to-c-and-c-perspective.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Return to C and C++ Perspective&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;h1 style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:0.8125em;color:#000000;"&gt;FatFS File System&lt;/h1&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;To use the SD card with the FAT file system, I add the FatFS component to the project:&lt;/span&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;As to write files to the file system I need date/time information, it asks me to add a clock component. I select the GenericTimeDate component:&lt;/span&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/05/adding-generictimedate-component.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Adding GenericTimeDate Component" src="http://mcuoneclipse.files.wordpress.com/2014/05/adding-generictimedate-component.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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; Adding GenericTimeDate Component&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;Next, FatFS needs a memory component, and here I select the SD_Card component:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/05/adding-memory-component-for-fatfs.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Adding Memory Component for FatFS" src="http://mcuoneclipse.files.wordpress.com/2014/05/adding-memory-component-for-fatfs.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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;&amp;nbsp; Adding Memory Component for FatFS&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;To protect the critical sections, it asks me to select the component I want to use. It already should have added a Critical Section (CS1) component, so I go with the CS1 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/2014/05/linking-to-cs1-component.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Linking to CS1 component" src="http://mcuoneclipse.files.wordpress.com/2014/05/linking-to-cs1-component.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Linking to CS1 component&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;With this, I have new components added to my project. Some with a red X indicate that some settings are missing:&lt;/span&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/05/fatfs-components-added.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="FatFS Components added" src="http://mcuoneclipse.files.wordpress.com/2014/05/fatfs-components-added.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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; FatFS Components added&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;I need to configure the pins for the SPI which talks to the SD card. For this I open the Component inspector for the SPI component:&lt;/span&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/05/need-to-configure-the-spi.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Need to configure the SPI" height="221" src="http://mcuoneclipse.files.wordpress.com/2014/05/need-to-configure-the-spi.png?w=584&amp;amp;h=221" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Need to configure the SPI&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;As the SD card on the board is connected to SPI1, I choose SPI1 as device with&lt;/span&gt;&lt;/p&gt;&lt;ol style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;margin-left:2.5em;list-style-position:initial;list-style-image:initial;color:#373737;"&gt;&lt;li&gt;MISO/Input pin: PTE1&lt;/li&gt;&lt;li&gt;MOSI/Output pin: PTE3&lt;/li&gt;&lt;li&gt;SCLK/Clock pin: PTE2&lt;/li&gt;&lt;li&gt;and no chip select list (use the ‘-’ button to remove it)&lt;/li&gt;&lt;/ol&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/05/miso-mosi-clock-and-chip-select.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="MISO, MOSI, Clock and chip select" height="370" src="http://mcuoneclipse.files.wordpress.com/2014/05/miso-mosi-clock-and-chip-select.png?w=584&amp;amp;h=370" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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;&amp;nbsp; MISO, MOSI, Clock and chip select&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;The chip select list is not needed as the FatFs component will handle the chip select on its own. Scrolling down I need to configure the clock details. For this I clock on the ‘…’:&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/2014/05/configuring-the-clock.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Configuring the clock" height="411" src="http://mcuoneclipse.files.wordpress.com/2014/05/configuring-the-clock.png?w=584&amp;amp;h=411" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Configuring the clock&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;From the available timings, I double-click from the list on the right hand side to have a value assigned:&lt;/span&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/05/selecting-timing-value.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Selecting timing value" height="475" src="http://mcuoneclipse.files.wordpress.com/2014/05/selecting-timing-value.png?w=584&amp;amp;h=475" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Selecting timing value&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;Then press OK, and do the same for the three delay timing 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/2014/05/delay-timing-assigned.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Delay timing assigned" src="http://mcuoneclipse.files.wordpress.com/2014/05/delay-timing-assigned.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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;&amp;nbsp; Delay timing assigned&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;For the clock rate we not only need one timing, but three: initial/low and high-speed. Again clicking on the ‘…’ for the Clock rate to open the dialog.&lt;/span&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;I want to assign values in kHz, so I select that from the Unit drop down list (click into the Value field to have it updated):&lt;/span&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/05/clocks-in-khz.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Clocks in kHz" height="547" src="http://mcuoneclipse.files.wordpress.com/2014/05/clocks-in-khz.png?w=584&amp;amp;h=547" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; Clocks in kHz&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;As I need two values, I configure it as ‘List of values’:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/05/list-of-values.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="List of Values" src="http://mcuoneclipse.files.wordpress.com/2014/05/list-of-values.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; List of Values&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;Then I assign for the low value a maximum value of 375 kHz, and for high I can go up to 12 MHz (my clock configuration only allows 10 MHz max &lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/16x16/__key/communityserver-wikis-components-files/00-00-00-01-49/3750.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/3750.contentimage_1.png-16x16.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=0TgLG%2Fzq2hwOCXZiw%2BUmpcH3REKe1zrLFLHWhqA9uEM%3D&amp;amp;se=2026-04-26T23%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;/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/2014/05/spi-clock-values.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="SPI Clock Values" height="379" src="http://mcuoneclipse.files.wordpress.com/2014/05/spi-clock-values.png?w=584&amp;amp;h=379" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; SPI Clock Values&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;Pressing OK to close the SPI clock configuration. To use the two configurations, I need to add a second attribute set. Because the ‘Tabs View’ uses a lot of screen real estate, it is easier if I switch to the ‘classic’ non-tabs view (small triangle in view toolbar to reach the menu &lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/16x16/__key/communityserver-wikis-components-files/00-00-00-01-49/3750.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/3750.contentimage_1.png-16x16.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=0TgLG%2Fzq2hwOCXZiw%2BUmpcH3REKe1zrLFLHWhqA9uEM%3D&amp;amp;se=2026-04-26T23%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;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/05/deselecting-tabs-view.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Deselecting Tabs View" height="415" src="http://mcuoneclipse.files.wordpress.com/2014/05/deselecting-tabs-view.png?w=584&amp;amp;h=415" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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;&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; Disabling Tabs View&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;Next step is to enable the automatic initialization of the SPI component:&lt;/span&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/05/automatic-initialization-of-the-spi-component.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Automatic initialization of the SPI component" height="294" src="http://mcuoneclipse.files.wordpress.com/2014/05/automatic-initialization-of-the-spi-component.png?w=584&amp;amp;h=294" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:10pt;line-height:1.5em;"&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;&amp;nbsp; Automatic initialization of the SPI component&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;I click into the Attribute set list box (where the ’1′ is) and click on the ‘+’:&lt;/span&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/05/adding-new-attribute-set.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Adding New Attribute Set" height="627" src="http://mcuoneclipse.files.wordpress.com/2014/05/adding-new-attribute-set.png?w=584&amp;amp;h=627" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; Adding New Attribute Set&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;Then specify that the SPI clock index 1 shall be used:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/05/clock-rate-index-for-attribute-set-1.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Clock Rate Index for Attribute Set 1" src="http://mcuoneclipse.files.wordpress.com/2014/05/clock-rate-index-for-attribute-set-1.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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;&amp;nbsp; Clock Rate Index for Attribute Set 1&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;In the SD_Card Component, I need to specify that it can use the index 1 (10 MHz) for fast mode:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/05/fast-baud-rate-mode.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Fast Baud Rate Mode" height="260" src="http://mcuoneclipse.files.wordpress.com/2014/05/fast-baud-rate-mode.png?w=584&amp;amp;h=260" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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;&amp;nbsp; Fast Baud Rate Mode&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;I order to be able to switch different clock configurations, I need to enable the method SelectConfiguration():&lt;/span&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;Next I need to assign the chip select pin. This is inside the SD_Card 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;a href="http://mcuoneclipse.files.wordpress.com/2014/05/need-to-configure-spi-chip-select.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Need to configure SPI Chip Select" height="219" src="http://mcuoneclipse.files.wordpress.com/2014/05/need-to-configure-spi-chip-select.png?w=584&amp;amp;h=219" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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;&amp;nbsp; Need to configure SPI Chip Select&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;The chip select is on PTE4. I can click into the field and type in the name (or to select from the list) to assign it:&lt;/span&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/05/assigning-pte4-as-chip-select.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Assigning PTE4 as Chip Select" height="235" src="http://mcuoneclipse.files.wordpress.com/2014/05/assigning-pte4-as-chip-select.png?w=584&amp;amp;h=235" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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;&amp;nbsp; Assigning PTE4 as Chip Select&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;Next we add the card detection (CD) pin: I select the SD_Card component and enable the pin:&lt;/span&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/05/enable-card-detection-pin.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Enable Card Detection Pin" height="179" src="http://mcuoneclipse.files.wordpress.com/2014/05/enable-card-detection-pin.png?w=584&amp;amp;h=179" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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;&amp;nbsp; Enable Card Detection Pin&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;On the FRDM-K64F, the card detection is HIGH active, so I need to deselect the ‘Card Detect is LOW active’:&lt;/span&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/05/card-detect-low-or-high-active.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Card Detect Low or High Active" height="242" src="http://mcuoneclipse.files.wordpress.com/2014/05/card-detect-low-or-high-active.png?w=584&amp;amp;h=242" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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; Card Detect Low or High Active&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;h1 style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:0.8125em;color:#000000;"&gt;Realtime Clock&lt;/h1&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;For the SD card I need a realtime clock. Our board does not have this, but I have configured a software realtime clock: GenericTimeDate. As in this tutorial I’m not going to use an RTOS, I add a TimerInt component to the project and configure it for 10 ms:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/05/timerint-component.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="TimerInt component" height="279" src="http://mcuoneclipse.files.wordpress.com/2014/05/timerint-component.png?w=584&amp;amp;h=279" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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;&amp;nbsp; TimerInt component&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;I need to call the AddTick() method of the realtime clock every 10 ms from above interrupt:&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/2014/05/realtime-clock-addtick-method.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Realtime Clock AddTick() Method" height="295" src="http://mcuoneclipse.files.wordpress.com/2014/05/realtime-clock-addtick-method.png?w=584&amp;amp;h=295" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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;&amp;nbsp; Realtime Clock AddTick() Method&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;So I generate code:&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/2014/05/generate-code.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Generate Code" src="http://mcuoneclipse.files.wordpress.com/2014/05/generate-code.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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;&amp;nbsp; Generate Code&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;Then I double-click on the OnInterrupt() event to open the Events.c source file with that event created:&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/2014/05/timer-oninterrupt.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Timer OnInterrupt()" height="434" src="http://mcuoneclipse.files.wordpress.com/2014/05/timer-oninterrupt.png?w=584&amp;amp;h=434" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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;&amp;nbsp; Timer OnInterrupt()&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;Then I can drag&amp;amp;drop the AddTick() method to the source:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/05/drag-and-drop-addtick-method.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Drag and Drop AddTick() Method" height="387" src="http://mcuoneclipse.files.wordpress.com/2014/05/drag-and-drop-addtick-method.png?w=584&amp;amp;h=387" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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;&amp;nbsp; Drag and Drop AddTick() Method&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;Then save the source changes:&lt;/span&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/05/save-source-changes.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Save Source Changes" height="308" src="http://mcuoneclipse.files.wordpress.com/2014/05/save-source-changes.png?w=584&amp;amp;h=308" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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;&amp;nbsp; Save Source Changes&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;h1&gt;&lt;/h1&gt;&lt;h1 style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:0.8125em;color:#000000;"&gt;The data to log: Accelerometer&lt;/h1&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;With the FatFS I have everything to read and write the SD card. Only the data is missing. In this tutorial I’m using the accelerometer of the FRDM-K64F. So I’m adding the FXOS8700CQ component to the project.&lt;/span&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;It will ask for the Wait component (which already is part of the project) and automatically adds the GenericI2C component to it. I enable the LDD I2C and add a new I2C_LDD component:&lt;/span&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/05/adding-i2c_ldd.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Adding I2C_LDD with FXOS8700CQ" height="313" src="http://mcuoneclipse.files.wordpress.com/2014/05/adding-i2c_ldd.png?w=584&amp;amp;h=313" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Adding I2C_LDD with FXOS8700CQ&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;The I2C_LDD component gets configured for I2C0, SDA (PTE25) and SCL (PTE24), with a clock configuration below 100 kHz:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/05/accelerometer-i2c-configuration.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Accelerometer I2C Configuration" src="http://mcuoneclipse.files.wordpress.com/2014/05/accelerometer-i2c-configuration.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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;&amp;nbsp; Accelerometer I2C Configuration&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;Important and not to forget: according to the schematics, the SA1 is LOW and SA0 pin is HIGH, so the device has the address 0x1D:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/05/accelerometer-slave-address1.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Accelerometer Slave Address" height="326" src="http://mcuoneclipse.files.wordpress.com/2014/05/accelerometer-slave-address1.png?w=584&amp;amp;h=326" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Accelerometer Slave Address&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;With this, the hardware configuration is completed, and I can write the application code &lt;span class="emoji emoji-smile wp-smiley" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;text-indent:9999px;" title=":-)"&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/3750.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/3750.contentimage_1.png-16x16.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=0TgLG%2Fzq2hwOCXZiw%2BUmpcH3REKe1zrLFLHWhqA9uEM%3D&amp;amp;se=2026-04-26T23%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;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;h1 style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:0.8125em;color:#000000;"&gt;Application Code&lt;/h1&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;I add a header file Application.h (context menu with File &amp;gt; New &amp;gt; Header File) and source file Application.c (context menu File &amp;gt; New Source File) to the Sources folder:&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/2014/05/application-files.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Application Files" src="http://mcuoneclipse.files.wordpress.com/2014/05/application-files.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Application Files&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;The header file needs only one function:&lt;/span&gt;&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;
&lt;p style="margin:0;"&gt;&lt;code class="cpp comments"&gt;/*&lt;/code&gt;&lt;/p&gt;
&lt;p class="number2 alt1 index1 line" style="margin:0;font-family:Consolas, &amp;#39;Bitstream Vera Sans Mono&amp;#39;, &amp;#39;Courier New&amp;#39;, Courier, monospace;font-size:15px;color:#373737;"&gt;&lt;code class="cpp comments"&gt;* Application.h&lt;/code&gt;&lt;/p&gt;
&lt;p class="number3 index2 alt2 line" style="margin:0;font-family:Consolas, &amp;#39;Bitstream Vera Sans Mono&amp;#39;, &amp;#39;Courier New&amp;#39;, Courier, monospace;font-size:15px;color:#373737;"&gt;&lt;code class="spaces cpp"&gt; &lt;/code&gt;&lt;code class="cpp comments"&gt;*/&lt;/code&gt;&lt;/p&gt;
&lt;p class="index4 alt2 number5 line" style="margin:0;font-family:Consolas, &amp;#39;Bitstream Vera Sans Mono&amp;#39;, &amp;#39;Courier New&amp;#39;, Courier, monospace;font-size:15px;color:#373737;"&gt;&lt;code class="cpp preprocessor"&gt;#ifndef APPLICATION_H_&lt;/code&gt;&lt;/p&gt;
&lt;p class="index5 alt1 line number6" style="margin:0;font-family:Consolas, &amp;#39;Bitstream Vera Sans Mono&amp;#39;, &amp;#39;Courier New&amp;#39;, Courier, monospace;font-size:15px;color:#373737;"&gt;&lt;code class="cpp preprocessor"&gt;#define APPLICATION_H_&lt;/code&gt;&lt;/p&gt;
&lt;p class="index5 alt1 line number6" style="margin:0;padding:0px;font-family:Consolas, &amp;#39;Bitstream Vera Sans Mono&amp;#39;, &amp;#39;Courier New&amp;#39;, Courier, monospace;font-size:15px;color:#373737;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p class="index7 number8 alt1 line" style="margin:0;font-family:Consolas, &amp;#39;Bitstream Vera Sans Mono&amp;#39;, &amp;#39;Courier New&amp;#39;, Courier, monospace;font-size:15px;color:#373737;"&gt;&lt;code class="keyword cpp bold"&gt;void&lt;/code&gt; &lt;code class="cpp plain"&gt;APP_Run(&lt;/code&gt;&lt;code class="keyword cpp bold"&gt;void&lt;/code&gt;&lt;code class="cpp plain"&gt;);&lt;/code&gt;&lt;/p&gt;
&lt;p class="index7 number8 alt1 line" style="margin:0;padding:0px;font-family:Consolas, &amp;#39;Bitstream Vera Sans Mono&amp;#39;, &amp;#39;Courier New&amp;#39;, Courier, monospace;font-size:15px;color:#373737;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="color:#808080;font-family:Consolas, &amp;#39;Bitstream Vera Sans Mono&amp;#39;, &amp;#39;Courier New&amp;#39;, Courier, monospace;font-size:15.454545021057129px;"&gt;#endif /* APPLICATION_H_ */&lt;/span&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;span style="color:#373737;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;line-height:1.5em;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;



&lt;/blockquote&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#373737;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;line-height:1.5em;"&gt;In main.c, I include that header file and call APP_Run:&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/2014/05/main-c.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Main.c calling application" height="262" src="http://mcuoneclipse.files.wordpress.com/2014/05/main-c.png?w=584&amp;amp;h=262" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Main.c calling application&lt;span style="color:#373737;font-size:15px;margin-bottom:1.625em;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#373737;font-size:15px;margin-bottom:1.625em;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;color:#373737;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;APP_Run() implements my logger loop: initialize the accelerometer and mount the file system. Then it gets the accelerometer data and logs it to a file every second.&lt;/span&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;First, I need to make sure I have a pull-down enabled for the SD card detection pin (PTE6). Because the BitIO component has no methods to change the electrical characteristics, I’m using PDD macros (see &lt;a class="jive-link-external-small" href="http://mcuoneclipse.com/2013/05/11/low-level-coding-with-pdd-physical-device-driver/" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank" title="Low-Level Coding with PDD (Physical Device Driver)"&gt;“Low-Level Coding with PDD (Physical Device Driver)”&lt;/a&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/3750.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/3750.contentimage_1.png-16x16.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=0TgLG%2Fzq2hwOCXZiw%2BUmpcH3REKe1zrLFLHWhqA9uEM%3D&amp;amp;se=2026-04-26T23%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;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#373737;font-size:15px;margin-bottom:1.625em;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;
&lt;p style="margin:0;"&gt;&lt;code class="spaces cpp"&gt; &lt;/code&gt;&lt;code class="cpp comments"&gt;/* SD card detection: PTE6 with pull-down! */&lt;/code&gt;&lt;/p&gt;
&lt;p class="number2 alt1 index1 line" style="margin:0;font-family:Consolas, &amp;#39;Bitstream Vera Sans Mono&amp;#39;, &amp;#39;Courier New&amp;#39;, Courier, monospace;font-size:15px;color:#373737;"&gt;&lt;code class="cpp plain"&gt;&amp;nbsp; PORT_PDD_SetPinPullSelect(PORTE_BASE_PTR, 6, PORT_PDD_PULL_DOWN);&lt;/code&gt;&lt;/p&gt;
&lt;p class="number3 index2 alt2 line" style="margin:0;font-family:Consolas, &amp;#39;Bitstream Vera Sans Mono&amp;#39;, &amp;#39;Courier New&amp;#39;, Courier, monospace;font-size:15px;color:#373737;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp plain"&gt;PORT_PDD_SetPinPullEnable(PORTE_BASE_PTR, 6, PORT_PDD_PULL_ENABLE);&lt;/code&gt;&lt;code class="spaces cpp"&gt; &lt;/code&gt;&lt;/p&gt;



&lt;/blockquote&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#373737;font-size:15px;margin-bottom:1.625em;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#373737;font-size:15px;margin-bottom:1.625em;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;"&gt;For the file system I need to have a file system object and a file pointer. To keep things simple, I’m using global variables:&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;"&gt;&lt;code class="keyword cpp bold"&gt;static&lt;/code&gt; &lt;code class="cpp plain"&gt;FAT1_FATFS fileSystemObject;&lt;/code&gt;&lt;/p&gt;
&lt;p style="margin:0;"&gt;&lt;code class="keyword cpp bold"&gt;static&lt;/code&gt;&lt;span style="color:#373737;font-family:Consolas, &amp;#39;Bitstream Vera Sans Mono&amp;#39;, &amp;#39;Courier New&amp;#39;, Courier, monospace;font-size:15.454545021057129px;"&gt; &lt;/span&gt;&lt;code class="cpp plain"&gt;FIL fp;&lt;/code&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="line-height:1.5em;color:#373737;font-size:15px;margin-bottom:1.625em;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;"&gt;The APP_Run() is implemented as below:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#373737;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;line-height:1.5em;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;void APP_Run(void) {
  int16_t x,y,z;
  uint8_t res;

  /* SD card detection: PTE6 with pull-down! */
  PORT_PDD_SetPinPullSelect(PORTE_BASE_PTR, 6, PORT_PDD_PULL_DOWN);
  PORT_PDD_SetPinPullEnable(PORTE_BASE_PTR, 6, PORT_PDD_PULL_ENABLE);

  res = FX1_Enable(); /* enable accelerometer (just in case) */
  if (res!=ERR_OK) {
    Err();
  }
  if (FAT1_Init()!=ERR_OK) { /* initialize FAT driver */
    Err();
  }
  if (FAT1_mount(0, &amp;amp;fileSystemObject) != FR_OK) { /* mount file system */
    Err();
  }
  for(;;) {
    /* get accelerometer values */
    x = FX1_GetX();
    y = FX1_GetY();
    z = FX1_GetZ();
    /* log it to the file on the SD card */
    LogToFile(x, y, z);
    /* do this every second */
    WAIT1_Waitms(1000);
  }
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="display:none;"&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#373737;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;line-height:1.5em;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#373737;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;line-height:1.5em;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#373737;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;line-height:1.5em;"&gt;The Err() function is used to indicate an error condition. I can show an error with LED’s or I simply stop application there:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#373737;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;line-height:1.5em;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void Err(void) {
  for(;;){}
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="display:none;"&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;I want to append the accelerometer data to a file, with date/time information, separated with TABs so I can easily import it into Excel. To construct the strings, I’m going to use the Utility component, so I have added it to my project:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/05/utility-component.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Utility Component" src="http://mcuoneclipse.files.wordpress.com/2014/05/utility-component.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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; Utility Component&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;With this, I write my data to the SD card in LogToFile():&lt;/span&gt;&lt;/p&gt;&lt;ol style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;margin-left:2.5em;list-style-position:initial;list-style-image:initial;color:#373737;"&gt;&lt;li&gt;Open the log file (FAT1_open()) with FA_OPEN_ALWAYS (open the file if it already exists, otherwise create the file) and for writing (FA_WRITE).&lt;/li&gt;&lt;li&gt;Move the file pointer to the end of the file to append the data (FAT1_lseek()).&lt;/li&gt;&lt;li&gt;Get the current time information from the software realtime clock (TmDt1_GetTime()).&lt;/li&gt;&lt;li&gt;Construct in a buffer the string to write with time and accelerometer data.&lt;/li&gt;&lt;li&gt;Write it to the file with FAT1_write().&lt;/li&gt;&lt;li&gt;Close the file with FAT1_close().&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void LogToFile(int16_t x, int16_t y, int16_t z) {
  uint8_t write_buf[48];
  UINT bw;
  TIMEREC time;

  /* open file */
  if (FAT1_open(&amp;amp;fp, &amp;quot;./log.txt&amp;quot;, FA_OPEN_ALWAYS|FA_WRITE)!=FR_OK) {
    Err();
  }
  /* move to the end of the file */
  if (FAT1_lseek(&amp;amp;fp, fp.fsize) != FR_OK || fp.fptr != fp.fsize) {
    Err();
  }
  /* get time */
  if (TmDt1_GetTime(&amp;amp;time)!=ERR_OK) {
    Err();
  }
  /* write data */
  write_buf[0] = &amp;#39;\0&amp;#39;;
  UTIL1_strcatNum8u(write_buf, sizeof(write_buf), time.Hour);
  UTIL1_chcat(write_buf, sizeof(write_buf), &amp;#39;:&amp;#39;);
  UTIL1_strcatNum8u(write_buf, sizeof(write_buf), time.Min);
  UTIL1_chcat(write_buf, sizeof(write_buf), &amp;#39;:&amp;#39;);
  UTIL1_strcatNum8u(write_buf, sizeof(write_buf), time.Sec);
  UTIL1_chcat(write_buf, sizeof(write_buf), &amp;#39;\t&amp;#39;);

  UTIL1_strcatNum16s(write_buf, sizeof(write_buf), x);
  UTIL1_chcat(write_buf, sizeof(write_buf), &amp;#39;\t&amp;#39;);
  UTIL1_strcatNum16s(write_buf, sizeof(write_buf), y);
  UTIL1_chcat(write_buf, sizeof(write_buf), &amp;#39;\t&amp;#39;);
  UTIL1_strcatNum16s(write_buf, sizeof(write_buf), z);
  UTIL1_strcat(write_buf, sizeof(write_buf), (unsigned char*)&amp;quot;\r\n&amp;quot;);
  if (FAT1_write(&amp;amp;fp, write_buf, UTIL1_strlen((char*)write_buf), &amp;amp;bw)!=FR_OK) {
    (void)FAT1_close(&amp;amp;fp);
    Err();
  }
  /* closing file */
  (void)FAT1_close(&amp;amp;fp);
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="display:none;"&gt;&lt;/div&gt;&lt;h1 style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:0.8125em;color:#000000;"&gt;&lt;/h1&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#373737;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;"&gt;All what is missing now is the include of the needed header files at the beginning of Application.c:&lt;/span&gt;&lt;/p&gt;&lt;h1 style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:0.8125em;color:#000000;"&gt;&lt;/h1&gt;&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#include &amp;quot;Application.h&amp;quot;
#include &amp;quot;WAIT1.h&amp;quot;
#include &amp;quot;FX1.h&amp;quot;
#include &amp;quot;FAT1.h&amp;quot;
#include &amp;quot;UTIL1.h&amp;quot;
#include &amp;quot;PORT_PDD.h&amp;quot;&lt;/pre&gt;&lt;/p&gt;&lt;div style="display:none;"&gt;&lt;/div&gt;&lt;h1 style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:0.8125em;color:#000000;"&gt;&lt;/h1&gt;&lt;h1 style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:0.8125em;color:#000000;"&gt;Result&lt;/h1&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#373737;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;"&gt;Time to generate code, build and then debug. And it writes file log.txt to the card I can import into Excel:&lt;/span&gt;&lt;span style="color:#373737;font-size:15px;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#373737;font-size:15px;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#373737;font-size:15px;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;"&gt;&amp;nbsp;&amp;nbsp; &lt;a href="http://mcuoneclipse.files.wordpress.com/2014/05/data-imported-in-excel.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="Data imported in Excel" class="jiveImage size-full wp-image-11797" src="http://mcuoneclipse.files.wordpress.com/2014/05/data-imported-in-excel.png?w=584" style="border-color:#eeeeee;padding:6px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&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;&amp;nbsp; Data imported in Excel&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:#373737;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;"&gt;And visualized in a chart:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#373737;font-size:15px;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#373737;font-size:15px;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/05/visualized-data.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="Visualized Data" class="jiveImage wp-image-11798 size-full" height="285" src="http://mcuoneclipse.files.wordpress.com/2014/05/visualized-data.png?w=584&amp;amp;h=285" style="border-color:#eeeeee;padding:6px;" width="584" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; Visualized Data&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;h1 style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:0.8125em;color:#000000;"&gt;Summary&lt;/h1&gt;&lt;p style="margin:0;"&gt;Writing a data logger is not that difficult with Processor Expert components. As there are many complex components (file system, SPI, I2C, accelerometer) and drivers involved, it takes some time to set everything up. But once understood, it is very easy to have such a data logger implemented easily for any other hardware.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;The tutorial project (with minor extensions) is available on GitHub as reference implementation:&lt;a class="jive-link-external-small" href="https://github.com/ErichStyger/mcuoneclipse/tree/master/Examples/Eclipse/FRDM-K64F/FRDM-K64F_DataLogger" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;https://github.com/ErichStyger/mcuoneclipse/tree/master/Examples/Eclipse/FRDM-K64F/FRDM-K64F_DataLogger&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;margin-bottom:1.625em;color:#373737;"&gt;Happy Logging &lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/16x16/__key/communityserver-wikis-components-files/00-00-00-01-49/3750.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/3750.contentimage_1.png-16x16.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=0TgLG%2Fzq2hwOCXZiw%2BUmpcH3REKe1zrLFLHWhqA9uEM%3D&amp;amp;se=2026-04-26T23%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 style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: freedom-board, freescale, kinetis, frdm-k64f&lt;/div&gt;
</description></item><item><title>Basics of Bootloader</title><link>https://community.element14.com/products/devtools/kinetiskl2freedomboard/w/documents/16960/basics-of-bootloader</link><pubDate>Fri, 08 Oct 2021 07:51:25 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:8d221aa2-be5a-430e-8d7b-8c2efe05dd21</guid><dc:creator>bheemarao</dc:creator><description>Current Revision posted to Documents by bheemarao on 10/8/2021 7:51:25 AM&lt;br /&gt;
&lt;p style="margin:0;"&gt;&lt;strong&gt;&lt;span lang="EN-US" style="font-size:12.0pt;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#627178;"&gt;What is a bootloader?&lt;/span&gt;&lt;/strong&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;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#627178;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="margin:0;margin-top:auto;margin-bottom:auto;"&gt;&lt;span lang="EN-US" style="font-size:12.0pt;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#51626f;"&gt;A bootloader is a program which is able to load another program (the application program). Typically, the bootloader program is not changed, and is kept in the microcontroller. That way the bootloader loads different program again and again. &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;margin-top:auto;margin-bottom:auto;"&gt;&lt;span lang="EN-US" style="font-size:12.0pt;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#51626f;"&gt;The following figure-1 shows a typical diagram of a serial bootloader:&lt;/span&gt;&lt;/p&gt;&lt;p align="center" style="margin:0;margin-bottom:3.75pt;text-align:center;"&gt;&lt;span lang="EN-US" style="font-size:12.0pt;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#51626f;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/373x411/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_31598.jpg"&gt;&lt;img alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/contentimage_31598.jpg-373x411.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=SIr%2FK2jbLzEX0djmCw0O2JGrZXDDk%2BhR%2FAzN7FMyUmE%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=yU9kJv2lH9WwJUdm5N8DNg==" style="max-height: 411px;max-width: 373px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="center" style="margin:0;margin-bottom:3.75pt;text-align:left;"&gt;&lt;span lang="EN-US" style="font-size:12.0pt;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#51626f;"&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;&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;&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;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style="font-size:10pt;line-height:1.5em;"&gt;&lt;strong&gt;&lt;span lang="EN-US" style="font-size:12.0pt;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#51626f;"&gt;Figure 1: Serial Bootloader&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="center" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:3.75pt;"&gt;&lt;strong&gt;&lt;span lang="EN-US" style="font-size:12.0pt;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#51626f;"&gt;Note:&lt;/span&gt;&lt;/strong&gt;&lt;span lang="EN-US" style="font-size:12.0pt;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#51626f;"&gt; Depending on the architecture, there can be a mini or micro bootloader that can load the real bootloader. For example, the OpenSDA bootloader on the Freedom boards have this capability.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:3.75pt;"&gt;&lt;span lang="EN-US" style="font-size:12.0pt;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#51626f;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;margin-top:auto;margin-bottom:auto;"&gt;&lt;span lang="EN-US" style="font-size:12.0pt;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#51626f;"&gt;The &lt;strong&gt;Bootloader Code&lt;/strong&gt; and the &lt;strong&gt;Bootloader Vectors&lt;/strong&gt; are programmed into a new part (for example, with a debugger) or, a standalone flash programmer (for example, with USBDM). Then the bootloader can be used to load or change the &lt;strong&gt;Application Code&lt;/strong&gt; and &lt;strong&gt;Application Vectors&lt;/strong&gt;. With this, the bootloader remains the same, while the application can be updated.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;margin-top:auto;margin-bottom:auto;"&gt;&lt;span lang="EN-US" style="font-size:12.0pt;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#51626f;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;margin-top:7.2pt;margin-bottom:auto;"&gt;&lt;strong&gt;&lt;span lang="EN-US" style="font-size:12.0pt;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#627178;"&gt;What is Bootloader Sequence?&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="margin:0;margin-top:auto;margin-bottom:auto;"&gt;&lt;span lang="EN-US" style="font-size:12.0pt;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#51626f;"&gt;A typical bootloader has the following sequence:&lt;/span&gt;&lt;/p&gt;&lt;ol style="list-style-type:decimal;"&gt;&lt;li&gt;&lt;span lang="EN-US" style="font-size:12.0pt;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#51626f;"&gt; &lt;/span&gt;&lt;span lang="EN-US" style="font-size:12.0pt;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#51626f;"&gt;At the startup the bootloader either enters in a bootloader mode or in the application running mode. Typically, this is decided with a button or jumper set (or removed). If the bootloader starts in application running mode, it calls the required application and the system starts automatically. &lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span lang="EN-US" style="font-size:12.0pt;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#51626f;"&gt;Otherwise, the bootloader reprograms the application with a new file. The S19 (S-Record) files are often used for this, as they are easy to parse and every tool chain can produce them.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span lang="EN-US" style="font-size:12.0pt;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#51626f;"&gt;The bootloader needs to use a communication channel to read that file. That can be RS-232, USB or an SD card file system (e.g. FatFS).&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span lang="EN-US" style="font-size:12.0pt;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#51626f;"&gt;Using that file, the bootloader programs the flash memory. Special consideration has to be taken into account for the application vector table. When the bootloader runs out of reset, it uses its own (default) vector table, and needs to relocate the vector table if running the application.&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p style="margin:0;padding:0px;margin-bottom:3.75pt;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:3.75pt;"&gt;&lt;strong&gt;&lt;span lang="EN-US" style="font-size:12.0pt;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#51626f;"&gt;Tip:&lt;/span&gt;&lt;/strong&gt;&lt;span lang="EN-US" style="font-size:12.0pt;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#51626f;"&gt; It is possible to use the reset button on the FRDM-KL25Z board as a user. To keep things simple, you may use a dedicated bootloader push button on PTB8.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;margin-top:auto;margin-bottom:auto;"&gt;&lt;span lang="EN-US" style="font-size:12.0pt;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#51626f;"&gt;The following figure-2 shows the Bootloader System Block Diagram:&lt;/span&gt;&lt;/p&gt;&lt;p align="center" style="margin:0;margin-bottom:3.75pt;text-align:center;"&gt;&lt;span lang="EN-US" style="font-size:12.0pt;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#51626f;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/488x436/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_31599.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/contentimage_31599.jpg-488x436.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=XCGDosOl6OX8uyU6kuddqvYi2OwZCL0KFCf1XgCOMEM%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=pEjR16hRhh09YDhl9WzA9Q==" style="max-height: 436px;max-width: 488px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align="center" style="margin:0;margin-bottom:3.75pt;text-align:center;"&gt;&lt;span lang="EN-US" style="font-size:12.0pt;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#51626f;"&gt;&lt;/span&gt;&lt;strong&gt;&lt;span lang="EN-US" style="font-size:12.0pt;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#51626f;"&gt;Figure-2: Bootloader System Block Diagram&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-top:auto;margin-bottom:auto;"&gt;&lt;span lang="EN-US" style="font-size:12.0pt;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#51626f;"&gt;The components of the Bootloader System Block Diagram are as follows:&lt;/span&gt;&lt;/p&gt;&lt;ul style="list-style-type:disc;"&gt;&lt;li&gt;&lt;strong&gt;&lt;span lang="EN-US" style="font-size:12.0pt;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#51626f;"&gt;Communication Channel&lt;/span&gt;&lt;/strong&gt;&lt;/li&gt;&lt;li&gt;&lt;strong&gt;&lt;span lang="EN-US" style="font-size:12.0pt;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#51626f;"&gt;File Reader&lt;/span&gt;&lt;/strong&gt;&lt;/li&gt;&lt;li&gt;&lt;strong&gt;&lt;span lang="EN-US" style="font-size:12.0pt;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#51626f;"&gt;Flash Programming&lt;/span&gt;&lt;/strong&gt;&lt;/li&gt;&lt;li&gt;&lt;strong&gt;&lt;span lang="EN-US" style="font-size:12.0pt;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#51626f;"&gt;Vector Redirection&lt;/span&gt;&lt;/strong&gt;&lt;/li&gt;&lt;li&gt;&lt;strong&gt;&lt;span lang="EN-US" style="font-size:12.0pt;font-family:&amp;#39;Arial&amp;#39;,&amp;#39;sans-serif&amp;#39;;color:#51626f;"&gt;User Interface&lt;/span&gt;&lt;/strong&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: freescale, kinetis, freedom&lt;/div&gt;
</description></item><item><title>[FRDM-K64F - SDK] Introduction</title><link>https://community.element14.com/products/devtools/kinetiskl2freedomboard/w/documents/16935/frdm-k64f---sdk-introduction</link><pubDate>Fri, 08 Oct 2021 07:50:45 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:c7fcdaeb-00db-43e4-a6ee-f0d6162c7762</guid><dc:creator>bheemarao</dc:creator><description>Current Revision posted to Documents by bheemarao on 10/8/2021 7:50:45 AM&lt;br /&gt;
&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;&lt;span style="color:#ff0000;font-family:Verdana;font-size:11px;"&gt;This Document was extracted from &lt;/span&gt;&lt;a class="jive-link-external-small" href="https://community.freescale.com/people/amh" rel="nofollow" style="font-size:11px;font-family:Verdana;color:#592d5f;" target="_blank"&gt;&lt;span style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#ff0000;"&gt;Anthony Huereca&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#ff0000;font-family:Verdana;font-size:11px;"&gt; blog published at Freescale Community Forum &lt;a class="jive-link-external-small" href="https://community.freescale.com/docs/DOC-100718" rel="nofollow ugc noopener" target="_blank" title="https://community.freescale.com/docs/DOC-100718"&gt;&lt;span style="text-decoration:underline;"&gt;https://community.freescale.com/docs/DOC-100718&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style="color:#ff0000;font-family:Verdana;font-size:11px;"&gt; with his agreement.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;Kinetis SDK is a new complimentary software offering from Freescale for Kinetis microcontrollers. The Kinetis software development kit (SDK) provides an extensive suite of robust peripheral drivers, stacks, middleware and example applications designed to simplify and accelerate application development on any Kinetis MCU. The addition of Processor Expert technology for software and board support configuration provides unmatched ease of use and flexibility. The Kinetis SDK includes full source code under a permissive open-source license for all hardware abstraction and peripheral driver software.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;Kinetis SDK is currently in beta, and can be used with FRDM-K64F or TWR-K64F120M. More boards will be supported in future releases. Note that because the SDK is in beta, certain features and API naming conventions may change before the General Availability (GA) release scheduled for summer 2014.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;This document goes over the basics of starting with Kinetis SDK and common troubleshooting tips.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;&lt;span style="font-style:inherit;font-size:18pt;font-family:inherit;font-weight:inherit;"&gt;&lt;strong&gt;Getting Started with Kinetis SDK and FRDM-K64F&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;The FRDM-K64F is a new fully featured Freescale Freedom board with a 120MHz Cortex M4 based Kinetis K64 MCU. The board also features Arduino hardware compatibility, an accelerometer and magnetometer (Freescale’s &lt;a class="jive-link-external-small" href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=FXOS8700CQ" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;"&gt;FXOS8700CQ&lt;/a&gt;), and push buttons/LEDs, plus an Ethernet port, microSD port, and OpenSDAv2 for debugging.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;Also note that only IAR and GCC are supported currently by the beta version of the SDK, though more IDEs will be supported in later releases. For now we’ll use the IAR compiler.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;First download and unzip the beta release (FSLKSDK_1_0_0_BETA) of the Kinetis SDK software from &lt;a class="jive-link-external-small" href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=KINETIS_SDK" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;"&gt;&lt;span style="text-decoration:underline;"&gt;http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=KINETIS_SDK&lt;/span&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;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;Take a look at the documentation in the&lt;span style="text-decoration:underline;"&gt; /doc&lt;/span&gt; folder, in particular the &lt;a class="jive-link-external-small" href="http://cache.freescale.com/files/soft_dev_tools/doc/support_info/KSDKRN.pdf?fpsp=1" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;"&gt;Release Notes&lt;/a&gt; and the &lt;a class="jive-link-external-small" href="http://cache.freescale.com/files/32bit/doc/user_guide/FRDMK64FUG.pdf" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;"&gt;K64 User Guide&lt;/a&gt;. The Release Notes has an important note about a possible issue when debugging in IAR so be sure to read the last section.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;Also note the basic Kinetis SDK directory structure. More details can be found in the Release Notes:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;apps – SDK examples and demos&lt;/li&gt;&lt;li&gt;boards –board specific files&lt;/li&gt;&lt;li&gt;lib – where the compiled SDK libraries reside&lt;/li&gt;&lt;li&gt;platform – SDK driver and HAL source code, linker files, and startup code&lt;/li&gt;&lt;/ul&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt; &lt;/span&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt; &lt;/span&gt;&lt;span style="margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;Since all the examples are in the apps folder, check out the “hello_world” project at &lt;span style="font-style:inherit;font-family:inherit;text-decoration:underline;"&gt;&lt;strong&gt;\KSDK_1.0.0-Beta\apps\hello_world\iar\frdmk64f120m\hello_world.eww&lt;/strong&gt;&lt;/span&gt; of it for a simple hello world type app.&lt;/span&gt;&lt;span style="margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;Use &lt;span style="font-style:inherit;font-family:inherit;"&gt;&lt;strong&gt;Section 4.1.1&lt;/strong&gt;&lt;/span&gt; of the K64 User Guide for instructions on how to build the application. The &lt;span style="font-size:11.5pt;font-style:inherit;font-family:inherit;font-weight:inherit;"&gt;&lt;strong&gt;platform_lib.a&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-weight:inherit;font-style:inherit;font-size:11.5pt;font-family:inherit;"&gt; SDK library which provides the drivers and HAL layer is already pre-compiled.&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#3d3d3d;font-size:20pt;font-style:inherit;margin-bottom:0.0001pt;font-family:inherit;font-weight:inherit;"&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="color:#3d3d3d;font-style:inherit;font-size:18pt;margin-bottom:0.0001pt;font-family:inherit;font-weight:inherit;"&gt;&lt;strong&gt;Debugging Kinetis SDK on FRDM-K64F:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;Typically, debugging is done via the &lt;a class="jive-link-wiki-small" href="https://community.freescale.com/docs/DOC-100720" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;"&gt;OpenSDAv2 &lt;/a&gt;circuit built onto the FRDM-K64F board. Make sure to use the USB connector to the left of the Ethernet port, J26. By default the FRDM-K64F uses the CMSIS-DAP/mbed interface as the debug protocol. However it is also possible to use the P&amp;amp;E Micro debug interface on the board instead.&lt;/span&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt; &lt;/span&gt;&lt;span style="margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;As mentioned before, there is a potential issue with debugging with IAR if a project is allowed to exit out of main(). This may cause issues when connecting via the debugger again when using the CMSIS-DAP/mbed interface. Because of this, there is a P&amp;amp;E Micro app available for OpenSDAv2 that comes with the Kinetis SDK zip file that can be loaded onto the OpenSDAv2 circuit on the board. The CMSIS-DAP/mbed interface app is being updated to fix this issue.&lt;/span&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt; &lt;/span&gt;&lt;span style="margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;When debugging, you may get a warning about missing source files. You can ignore those as they are caused by using the pre-compiled SDK platform library. Look down below in the Troubleshooting section for how to get rid of these messages.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#3d3d3d;font-style:inherit;margin-bottom:0.0001pt;font-family:inherit;"&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="color:#3d3d3d;font-style:inherit;margin-bottom:0.0001pt;font-family:inherit;"&gt;&lt;strong&gt;Debugging with CMSIS-DAP/mbed Interface:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;The FRDM-K64F board uses the CMSIS-DAP/mbed interface by default as it is using OpenSDAv2. However the IAR projects in the beta version of Kinetis SDK use the P&amp;amp;E Micro debug interface. This will be changed for later version of the Kinetis SDK, but to use the default OpenSDAv2 debug interface, you’ll need to change the project’s debug interface to CMSIS-DAP.&amp;nbsp; Instructions for this are in &lt;span style="font-style:inherit;font-family:inherit;"&gt;&lt;strong&gt;Appendix B&lt;/strong&gt;&lt;/span&gt; of the K64 User Guide.&lt;/span&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#3d3d3d;font-style:inherit;margin-bottom:0.0001pt;font-family:inherit;"&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="color:#3d3d3d;font-style:inherit;margin-bottom:0.0001pt;font-family:inherit;"&gt;&lt;strong&gt;Debugging with P&amp;amp;E Micro Interface:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;To debug using the P&amp;amp;E Micro interface, the P&amp;amp;E Micro OpenSDAv2 app needs to be loaded onto the OpenSDAv2 circuit. Instructions for loading and using this app are in&lt;span style="font-style:inherit;font-family:inherit;"&gt;&lt;strong&gt;Section 4.1.2&lt;/strong&gt;&lt;/span&gt; in the K64 User Guide. Use the &lt;span style="font-style:inherit;font-family:inherit;"&gt;&lt;strong&gt;DEBUG_K64F_MBED_PEMICRO_V108.BIN &lt;/strong&gt;&lt;/span&gt;file that came inside the Kinetis SDK zip file.&lt;/span&gt;&lt;span style="margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;If you want to return to the original CMSIS-DAP/mbed interface, you can find a binary app to drag-and-drop onto the OpenSDAv2 bootloader on the FRDM-K64F mbed page.&lt;a class="jive-link-external-small" href="http://mbed.org/handbook/Firmware-FRDM-K64F" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;"&gt;Firmware FRDM K64F - Handbook | mbed&lt;/a&gt;&lt;/span&gt;&lt;span style="margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;&lt;a href="https://community.freescale.com/servlet/JiveServlet/showImage/102-100718-2-11439/pastedImage_2.png" rel="nofollow ugc noopener" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;" target="_blank"&gt;&lt;img alt="image"  class="jiveImage" height="279" src="https://community.freescale.com/servlet/JiveServlet/downloadImage/102-100718-2-11439/pastedImage_2.png" style="border:0px;font-weight:inherit;font-style:inherit;font-family:inherit;" width="628" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style="margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#3d3d3d;font-style:inherit;font-size:18pt;margin-bottom:0.0001pt;font-family:inherit;font-weight:inherit;"&gt;&lt;strong&gt;Troubleshooting:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#00b050;font-style:inherit;margin-bottom:0.0001pt;font-family:inherit;font-weight:inherit;"&gt;&lt;strong&gt;I’m using the CMSIS-DAP/mbed debug interface with IAR, and I can’t connect to my board anymore with an error: “Fatal error: Probe not found. Session aborted!”:&lt;/strong&gt;&lt;/span&gt;&lt;span style="margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;There’s an issue as described in the Kinets SDK release notes where the debugger can become non-responsive if the code is allowed to exit the main() function when using the CMSIS-DAP interface with OpenSDAv2.&lt;/span&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt; &lt;/span&gt;&lt;span style="margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;To recover the board you have a few options:&lt;/span&gt;&lt;/p&gt;&lt;ol style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;&lt;li&gt;Load the P&amp;amp;E Micro interface app onto OpenSDAv2, and then flash a known good program&lt;/li&gt;&lt;li&gt;The board should still enumerate as a mass storage device, and you can drag-and-drop a known good program onto the board. You may have to hit the reset button a few times to get it to properly enumerate though. A known good hello_world program has been attached to this post.&lt;/li&gt;&lt;/ol&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;This will be fixed in future versions of the CMSIS-DAP/mbed interface app. In the meantime, make sure to put a while(1) loop in your code before exiting main(). Also check out the blog entry on this issue on&lt;a class="jive-link-external-small" href="http://mcuoneclipse.com/2014/04/19/recovering-frdm-k64f-mbed-board/" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;"&gt; MCU on Eclipse&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;&lt;span style="color:#00b050;font-style:inherit;font-family:inherit;font-weight:inherit;"&gt;&lt;strong&gt;When I start debugging, I get a warning message that it “Could not find the following source file: D:\mcu-sdk-re\rc3_2_release\Kinetis_SDK\platform\hal\pit\fsl_pit_hal.h”:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;This is caused by using the pre-compiled SDK library, which was built on a different directory structure than what is on your particular computer.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;To fix, recompile the Kinetis SDK platform library by following the directions in Appendix A of the Kinetis SDK K64 Users Guide.pdf&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;&lt;span style="color:#00b050;font-style:inherit;font-family:inherit;font-weight:inherit;"&gt;&lt;strong&gt;The serial port is not enumerating:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;If using the default CMSIS-DAP/mbed interface, you must first install the &lt;a class="jive-link-external-small" href="http://mbed.org/handbook/Windows-serial-configuration" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;"&gt;mbed Windows serial port driver&lt;/a&gt; before it will enumerate on Windows properly. It should work in Mac OS and Linux without a driver.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;&lt;span style="color:#00b050;font-style:inherit;font-family:inherit;font-weight:inherit;"&gt;&lt;strong&gt;When I start debugging, I get an error message that says “Undected. Disconnect/Connect USB cable. Click Refresh List”:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;The likely problem is that the FRDM-K64F has the default CMSIS-DAP/mbed firmware, and the IAR project is trying to use the P&amp;amp;E Micro interface. Use the instructions in&lt;span style="font-style:inherit;font-family:inherit;"&gt;&lt;strong&gt;Appendix B&lt;/strong&gt;&lt;/span&gt; of the K64 User Guide to change the debug interface in IAR to use CMSIS-DAP. Or else change the firmware in the OpenSDAv2 circuit to the P&amp;amp;E Micro firmware.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;&lt;span style="color:#00b050;font-style:inherit;font-family:inherit;font-weight:inherit;"&gt;&lt;strong&gt;When compiling the Kinetis SDK platform library in IAR 7.10.x, I the following error messages: Error[Pm056]: all if, else if constructs should contain a final else clause (MISRA C 2004 rule 14.10):&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;This is caused by a MISRA C 2004 rule violation. The beta Kinetis SDK was built using IAR 6.70, but the MISRA C checks were changed when IAR moved to 7.10.x which is why this comes up in IAR 7.10.x.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;This error can be fixed by disabling MISRA C checking in the project settings.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;Right click on the platform_lib project, and under the General Options category, scroll over (using the arrow keys on the right) to the MISRA-C-2004 tab, and uncheck “Enable MISRA-C”.&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;&lt;a href="https://community.freescale.com/servlet/JiveServlet/showImage/102-100718-2-11440/pastedImage_4.png" rel="nofollow ugc noopener" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;" target="_blank"&gt;&lt;img loading="lazy" alt="image"  class="jiveImage" height="498" src="https://community.freescale.com/servlet/JiveServlet/downloadImage/102-100718-2-11440/pastedImage_4.png" style="border:0px;font-weight:inherit;font-style:inherit;font-family:inherit;" width="548" /&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;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;&lt;span style="color:#00b050;font-style:inherit;font-family:inherit;font-weight:inherit;"&gt;&lt;strong&gt;When debugging with the P&amp;amp;E Micro OpenSDAv2 app, I get an error that says “Error reading data from OpenSDA hardware. E17925”&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;&lt;span style="font-weight:inherit;font-style:inherit;font-family:inherit;color:black;"&gt;This is being investigated and seems to affect IAR 7.10.x and CW10, but not earlier versions of IAR. In the meantime, use the CMSIS-DAP/mbed interface app instead.&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/135304"&gt;&lt;a href="https://community.element14.com/cfs-file/__key/communityserver-wikis-components-files/00-00-00-01-49/hello_5F00_world.bin.zip"&gt;community.element14.com/.../hello_5F00_world.bin.zip&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: kinetis;&lt;/div&gt;
</description></item><item><title>[OpenSDAv2] Tutorial: Set-up the right debug interface for your IDE toolchain</title><link>https://community.element14.com/products/devtools/kinetiskl2freedomboard/w/documents/16934/opensdav2-tutorial-set-up-the-right-debug-interface-for-your-ide-toolchain</link><pubDate>Fri, 08 Oct 2021 07:50:44 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:418b7f21-4fc3-48a9-a711-fa47993e93ea</guid><dc:creator>bheemarao</dc:creator><description>Current Revision posted to Documents by bheemarao on 10/8/2021 7:50:44 AM&lt;br /&gt;
&lt;p style="margin:0;"&gt;&lt;span style="color:#ff0000;font-size:8pt;"&gt;This Document was extracted from &lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;"&gt; &lt;/span&gt;&lt;a class="jive-link-external-small" href="https://community.freescale.com/people/amh" rel="nofollow ugc noopener" style="font-size:12px;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#8ca9cd;" target="_blank"&gt;&lt;span style="color:#ff0000;"&gt;Anthony Huereca&lt;/span&gt;&lt;/a&gt; blog published at Freescale Community Forum &lt;a class="jive-link-external-small" href="https://community.freescale.com/docs/DOC-100720" rel="nofollow ugc noopener" target="_blank" title="https://community.freescale.com/docs/DOC-100720"&gt;&lt;span style="text-decoration:underline;color:#ff0000;"&gt;&lt;span style="color:#3366ff;text-decoration:underline;"&gt;https://community.freescale.com/docs/DOC-100720&lt;/span&gt;&lt;/span&gt;&lt;/a&gt; with his agreement.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;OpenSDA/OpenSDAv2 is a serial and debug adapter that is built into several Freescale evaluation boards. It provides a bridge between your computer (or other USB host) and the embedded target processor, which can be used for debugging, flash programming, and serial communication, all over a simple USB cable.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;The OpenSDA hardware consists of a circuit featuring a Freescale Kinetis K20 microcontroller (MCU) with an integrated USB controller. On the software side, it implements a mass storage device, bootloader which offers a quick and easy way to load OpenSDA applications such as flash programmers, run-control debug interfaces, serial to USB converters, and more. Details on OpenSDA can be found in the &lt;a class="jive-link-external-small" href="http://cache.freescale.com/files/32bit/doc/user_guide/OPENSDAUG.pdf" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;"&gt;OpenSDA User Guide&lt;/a&gt;.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;a href="https://community.freescale.com/servlet/JiveServlet/showImage/102-100720-2-11446/pastedImage_6.png" rel="nofollow ugc noopener" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;" target="_blank"&gt;&lt;img alt="image"  class="jiveImage" height="278" src="https://community.freescale.com/servlet/JiveServlet/downloadImage/102-100720-2-11446/pastedImage_6.png" style="border:0px;font-weight:inherit;font-style:inherit;font-family:inherit;" width="628" /&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;margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;The bootloader and app firmware that lay on top of the original OpenSDA circuit was proprietary.&amp;nbsp; But recently ARM decided to open source their CMSIS-DAP interface, and now a truly open debug platform could be created. This new open-sourced firmware solution is known as OpenSDAv2.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;span style="font-style:inherit;font-size:18pt;font-family:inherit;font-weight:inherit;"&gt;&lt;strong&gt;OpenSDAv2:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;OpenSDAv2 uses the exact same hardware circuit as the original OpenSDA solution, and out of the box it still provides a debugger, drag-and-drop flash programmer, and virtual serial port over a single USB cable.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;The difference is the firmware implementation:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-style:inherit;font-family:inherit;"&gt;&lt;strong&gt;OpenSDA:&lt;/strong&gt;&lt;/span&gt; Programmed with the proprietary P&amp;amp;E Micro developed bootloader. P&amp;amp;E Micro is the default debug interface app.&lt;/li&gt;&lt;li&gt;&lt;span style="font-style:inherit;font-family:inherit;"&gt;&lt;strong&gt;OpenSDAv2:&lt;/strong&gt;&lt;/span&gt; Programmed with the open-sourced CMSIS-DAP/mbed bootloader. CMSIS-DAP is the default debug interface app.&lt;/li&gt;&lt;/ul&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;table border="1" cellpadding="0" cellspacing="0" style="padding:0px 5.4pt;border:none;font-weight:inherit;font-style:inherit;font-family:inherit;width:673px;"&gt;&lt;tbody style="font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;tr style="border:0px;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;td style="border:1px solid black;border:none;border:0px;font-family:inherit;font-style:inherit;border:1pt solid windowtext;padding:0 5.4pt;" valign="top" width="85"&gt;&lt;span style="font-weight:inherit;font-style:inherit;font-family:inherit;"&gt; &lt;/span&gt;&lt;/td&gt;&lt;td style="border:1px solid black;border:none;border:0px;font-family:inherit;font-style:inherit;border:1pt solid windowtext;padding:0 5.4pt;" valign="top" width="107"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;Firmware Developer&lt;/span&gt;&lt;/td&gt;&lt;td style="border:1px solid black;border:none;border:0px;font-family:inherit;font-style:inherit;border:1pt solid windowtext;padding:0 5.4pt;" valign="top" width="97"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;Kinetis K20 Based Hardware Circuit&lt;/span&gt;&lt;/td&gt;&lt;td style="border:1px solid black;border:none;border:0px;font-family:inherit;font-style:inherit;border:1pt solid windowtext;padding:0 5.4pt;" valign="top" width="90"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;Default Debug Interface&lt;/span&gt;&lt;/td&gt;&lt;td style="border:1px solid black;border:none;border:0px;font-family:inherit;font-style:inherit;border:1pt solid windowtext;padding:0 5.4pt;" valign="top" width="132"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;Drag-and-drop Target MCU&lt;/span&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;Flash Programming&lt;/span&gt;&lt;/td&gt;&lt;td style="border:1px solid black;border:none;border:0px;font-family:inherit;font-style:inherit;border:1pt solid windowtext;padding:0 5.4pt;" valign="top" width="90"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;Virtual Serial Port&lt;/span&gt;&lt;/td&gt;&lt;td style="border:1px solid black;border:none;border:0px;font-family:inherit;font-style:inherit;border:1pt solid windowtext;padding:0 5.4pt;" valign="top" width="72"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;Source Code Available&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="border:0px;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;td style="border:1px solid black;border:none;border:0px;font-family:inherit;font-style:inherit;border:1pt solid windowtext;padding:0 5.4pt;" valign="top" width="85"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;OpenSDA&lt;/span&gt;&lt;/td&gt;&lt;td style="border:1px solid black;border:none;border:0px;font-family:inherit;font-style:inherit;border-bottom-color:windowtext;border-right-color:windowtext;border-style:none solid solid none;border-bottom-width:1pt;border-right-width:1pt;padding:0 5.4pt;" valign="top" width="107"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;P&amp;amp;E Micro&lt;/span&gt;&lt;/td&gt;&lt;td style="border:1px solid black;border:none;border:0px;font-family:inherit;font-style:inherit;border-bottom-color:windowtext;border-right-color:windowtext;border-style:none solid solid none;border-bottom-width:1pt;border-right-width:1pt;padding:0 5.4pt;" valign="top" width="97"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;x&lt;/span&gt;&lt;/td&gt;&lt;td style="border:1px solid black;border:none;border:0px;font-family:inherit;font-style:inherit;border-bottom-color:windowtext;border-right-color:windowtext;border-style:none solid solid none;border-bottom-width:1pt;border-right-width:1pt;padding:0 5.4pt;" valign="top" width="90"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;P&amp;amp;E Micro&lt;/span&gt;&lt;/td&gt;&lt;td style="border:1px solid black;border:none;border:0px;font-family:inherit;font-style:inherit;border-bottom-color:windowtext;border-right-color:windowtext;border-style:none solid solid none;border-bottom-width:1pt;border-right-width:1pt;padding:0 5.4pt;" valign="top" width="132"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;.srec/.s19&lt;/span&gt;&lt;/td&gt;&lt;td style="border:1px solid black;border:none;border:0px;font-family:inherit;font-style:inherit;border-bottom-color:windowtext;border-right-color:windowtext;border-style:none solid solid none;border-bottom-width:1pt;border-right-width:1pt;padding:0 5.4pt;" valign="top" width="90"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;x&lt;/span&gt;&lt;/td&gt;&lt;td style="border:1px solid black;border:none;border:0px;font-family:inherit;font-style:inherit;border-bottom-color:windowtext;border-right-color:windowtext;border-style:none solid solid none;border-bottom-width:1pt;border-right-width:1pt;padding:0 5.4pt;" valign="top" width="72"&gt;&lt;span style="font-weight:inherit;font-style:inherit;font-family:inherit;"&gt; &lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr style="border:0px;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;td style="border:1px solid black;border:none;border:0px;font-family:inherit;font-style:inherit;border:1pt solid windowtext;padding:0 5.4pt;" valign="top" width="85"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;OpenSDAv2&lt;/span&gt;&lt;/td&gt;&lt;td style="border:1px solid black;border:none;border:0px;font-family:inherit;font-style:inherit;border-bottom-color:windowtext;border-right-color:windowtext;border-style:none solid solid none;border-bottom-width:1pt;border-right-width:1pt;padding:0 5.4pt;" valign="top" width="107"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;ARM/mbed.org&lt;/span&gt;&lt;/td&gt;&lt;td style="border:1px solid black;border:none;border:0px;font-family:inherit;font-style:inherit;border-bottom-color:windowtext;border-right-color:windowtext;border-style:none solid solid none;border-bottom-width:1pt;border-right-width:1pt;padding:0 5.4pt;" valign="top" width="97"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;x&lt;/span&gt;&lt;/td&gt;&lt;td style="border:1px solid black;border:none;border:0px;font-family:inherit;font-style:inherit;border-bottom-color:windowtext;border-right-color:windowtext;border-style:none solid solid none;border-bottom-width:1pt;border-right-width:1pt;padding:0 5.4pt;" valign="top" width="90"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;CMSIS-DAP&lt;/span&gt;&lt;/td&gt;&lt;td style="border:1px solid black;border:none;border:0px;font-family:inherit;font-style:inherit;border-bottom-color:windowtext;border-right-color:windowtext;border-style:none solid solid none;border-bottom-width:1pt;border-right-width:1pt;padding:0 5.4pt;" valign="top" width="132"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;.bin&lt;/span&gt;&lt;/td&gt;&lt;td style="border:1px solid black;border:none;border:0px;font-family:inherit;font-style:inherit;border-bottom-color:windowtext;border-right-color:windowtext;border-style:none solid solid none;border-bottom-width:1pt;border-right-width:1pt;padding:0 5.4pt;" valign="top" width="90"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;x&lt;/span&gt;&lt;/td&gt;&lt;td style="border:1px solid black;border:none;border:0px;font-family:inherit;font-style:inherit;border-bottom-color:windowtext;border-right-color:windowtext;border-style:none solid solid none;border-bottom-width:1pt;border-right-width:1pt;padding:0 5.4pt;" valign="top" width="72"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;The bootloader and app firmware used by OpenSDAv2 is developed by the community at mbed.org, and is known as “&lt;a class="jive-link-external-small" href="https://github.com/mbedmicro/CMSIS-DAP" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;"&gt;CMSIS-DAP Interface Firmware&lt;/a&gt;”. If you explore that site, you will find that this firmware was also ported to run on other hardware, but the combination of this mbed.org firmware with the Kinetis K20 MCU is known as OpenSDAv2.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-weight:inherit;font-style:inherit;font-family:inherit;"&gt; &lt;/span&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;It is important to understand however that it is possible to run a P&amp;amp;E Micro debug app on the CMSIS-DAP/mbed bootloader found on OpenSDAv2. Likewise it is possible to run a CMSIS-DAP debug app on the P&amp;amp;E Micro bootloader found on OpenSDA. The debug application used needs to be targeted towards a specific bootloader though, as a single binary cannot be used on both the OpenSDA and OpenSDAv2 bootloaders.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-weight:inherit;font-style:inherit;font-family:inherit;"&gt; &lt;/span&gt;&lt;span style="font-style:inherit;margin-bottom:0.0001pt;font-family:inherit;font-weight:inherit;"&gt;&lt;strong&gt;OpenSDAv2 Apps:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;a class="jive-link-external-small" href="http://mbed.org/handbook/Firmware-FRDM-K64F" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;"&gt;mbed CMSIS-DAP&lt;/a&gt; (default app)&lt;/li&gt;&lt;li&gt;P&amp;amp;E Micro (found in Kinetis SDK beta release)&lt;/li&gt;&lt;li&gt;&lt;a class="jive-link-external-small" href="http://www.segger.com/opensda.html" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;"&gt;Segger JLink&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:18pt;font-style:inherit;margin-bottom:0.0001pt;font-family:inherit;font-weight:inherit;"&gt;&lt;strong&gt;OpenSDAv2 Bootloader:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;The key difference between OpenSDA and OpenSDAv2 is the bootloader.&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Boards with &lt;span style="font-style:inherit;font-family:inherit;"&gt;&lt;strong&gt;OpenSDA&lt;/strong&gt;&lt;/span&gt; use a proprietary bootloader developed by P&amp;amp;E Micro, and it cannot be erased or reprogrammed by an external debugger due to the security restrictions in the firmware.&lt;/li&gt;&lt;li&gt;Boards with &lt;span style="font-style:inherit;font-family:inherit;"&gt;&lt;strong&gt;OpenSDAv2&lt;/strong&gt;&lt;/span&gt; use the open-source bootloader developed by mbed.org, and it can be erased and reprogrammed with an external debugger.&lt;/li&gt;&lt;/ul&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-weight:inherit;font-style:inherit;font-family:inherit;"&gt; &lt;/span&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;Apps need to be specifically tweaked to work with either the P&amp;amp;E bootloader (Original OpenSDA) or the CMSIS-DAP/mbed bootloader (OpenSDAv2) as the bootloader memory map is different.&amp;nbsp; Thus it’s important to know which type of bootloader is on your board to determine which version of an app to load.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-weight:inherit;font-style:inherit;font-family:inherit;"&gt; &lt;/span&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;You can determine this by holding reset while plugging in the USB cable. A &lt;span style="font-style:inherit;font-family:inherit;"&gt;&lt;strong&gt;BOOTLOADER&lt;/strong&gt;&lt;/span&gt; drive will appear for both OpenSDA and OpenSDAv2 as shown below.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;a href="https://community.freescale.com/servlet/JiveServlet/showImage/102-100720-2-11447/pastedImage_9.png" rel="nofollow ugc noopener" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;" target="_blank"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;img loading="lazy" alt="image"  class="jiveImage" height="90" src="https://community.freescale.com/servlet/JiveServlet/downloadImage/102-100720-2-11447/pastedImage_9.png" style="border:0px;font-weight:inherit;font-style:inherit;font-family:inherit;" width="189" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style="font-weight:inherit;font-style:inherit;font-family:inherit;"&gt; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;The OpenSDAv2 bootloader (may also be called the CMSIS-DAP/mbed bootloader) developed by mbed.org will have the following files inside. Double clicking on bootload.htm will take you to the&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;mbed.org website.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;a href="https://community.freescale.com/servlet/JiveServlet/showImage/102-100720-2-11448/pastedImage_12.png" rel="nofollow ugc noopener" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;" target="_blank"&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;&amp;nbsp; &lt;img loading="lazy" alt="image"  class="jiveImage" height="139" src="https://community.freescale.com/servlet/JiveServlet/downloadImage/102-100720-2-11448/pastedImage_12.png" style="border:0px;font-weight:inherit;font-style:inherit;font-family:inherit;" width="606" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;The OpenSDA bootloader developed by P&amp;amp;E Micro will have the following inside. Clicking on SDA_INFO.HTM will take you to the P&amp;amp;E website.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&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;&amp;nbsp; &lt;/span&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;a href="https://community.freescale.com/servlet/JiveServlet/showImage/102-100720-2-11449/pastedImage_15.png" rel="nofollow ugc noopener" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;" target="_blank"&gt;&lt;img loading="lazy" alt="image"  class="jiveImage" height="152" src="https://community.freescale.com/servlet/JiveServlet/downloadImage/102-100720-2-11449/pastedImage_15.png" style="border:0px;font-weight:inherit;font-style:inherit;font-family:inherit;" width="616" /&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-weight:inherit;font-style:inherit;font-family:inherit;"&gt; &lt;/span&gt;&lt;span style="font-style:inherit;font-size:18pt;margin-bottom:0.0001pt;font-family:inherit;font-weight:inherit;"&gt;&lt;strong&gt;Using CMSIS-DAP:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;When you connect a Freedom board that has OpenSDAv2 (such as the FRDM-K64F) to your computer with a USB cable, it will begin running the default CMSIS_DAP/mbed application.&lt;/span&gt;&lt;span style="font-weight:inherit;font-style:inherit;font-family:inherit;"&gt; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;You will see a new disk drive appear labeled “MBED”.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;a href="https://community.freescale.com/servlet/JiveServlet/showImage/102-100720-2-11450/pastedImage_18.png" rel="nofollow ugc noopener" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;" target="_blank"&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;&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;img loading="lazy" alt="image"  class="jiveImage" height="88" src="https://community.freescale.com/servlet/JiveServlet/downloadImage/102-100720-2-11450/pastedImage_18.png" style="border:0px;font-weight:inherit;font-style:inherit;font-family:inherit;" width="138" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-weight:inherit;font-style:inherit;font-family:inherit;"&gt; &lt;/span&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;You can then drag-and-drop binary (.bin) files onto the virtual hard disk to program the internal flash of the target MCU.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-weight:inherit;font-style:inherit;font-family:inherit;"&gt; &lt;/span&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;OpenSDAv2 will also enumerate as a virtual serial port, which you can use a terminal program&lt;span style="text-decoration:underline;"&gt;.&lt;/span&gt; such as TeraTerm (shown below), to connect to. You may need to install the &lt;a class="jive-link-external-small" href="http://mbed.org/handbook/Windows-serial-configuration" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;"&gt;mbed Windows serial port driver&lt;/a&gt; first before the serial port will enumerate on Windows properly. It should work without a driver for MacOS and Linux.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;a href="https://community.freescale.com/servlet/JiveServlet/showImage/102-100720-2-11451/pastedImage_28.png" rel="nofollow ugc noopener" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;" target="_blank"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;img loading="lazy" alt="image"  class="jiveImage" height="291" src="https://community.freescale.com/servlet/JiveServlet/downloadImage/102-100720-2-11451/pastedImage_28.png" style="border:0px;font-weight:inherit;font-style:inherit;font-family:inherit;" width="497" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;The CMSIS-DAP app also allows you to debug the target MCU via the CMSIS-DAP interface. Select the CMSIS-DAP interface in your IDE of choice (IAR, Keil), and inside the CMSIS-DAP options select the Single Wire Debug (SWD) option as shown below :&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt; &lt;/span&gt;&lt;span style="font-size:12pt;font-style:inherit;margin-bottom:0.0001pt;font-family:inherit;font-weight:inherit;"&gt;&lt;strong&gt;IAR:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;a href="https://community.freescale.com/servlet/JiveServlet/showImage/102-100720-2-11452/pastedImage_31.png" rel="nofollow ugc noopener" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;" target="_blank"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;img loading="lazy" alt="image"  class="jiveImage" height="319" src="https://community.freescale.com/servlet/JiveServlet/downloadImage/102-100720-2-11452/pastedImage_31.png" style="border:0px;font-weight:inherit;font-style:inherit;font-family:inherit;" width="576" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;a href="https://community.freescale.com/servlet/JiveServlet/showImage/102-100720-2-11453/pastedImage_34.png" rel="nofollow ugc noopener" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;" target="_blank"&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;&amp;nbsp; &lt;img loading="lazy" alt="image"  class="jiveImage" height="453" src="https://community.freescale.com/servlet/JiveServlet/downloadImage/102-100720-2-11453/pastedImage_34.png" style="border:0px;font-weight:inherit;font-style:inherit;font-family:inherit;" width="389" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-style:inherit;margin-bottom:0.0001pt;font-family:inherit;font-weight:inherit;"&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-style:inherit;margin-bottom:0.0001pt;font-family:inherit;font-weight:inherit;"&gt;&lt;strong&gt;Keil:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;a href="https://community.freescale.com/servlet/JiveServlet/showImage/102-100720-2-11454/pastedImage_37.png" rel="nofollow ugc noopener" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;" target="_blank"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;img loading="lazy" alt="image"  class="jiveImage" height="448" src="https://community.freescale.com/servlet/JiveServlet/downloadImage/102-100720-2-11454/pastedImage_37.png" style="border:0px;font-weight:inherit;font-style:inherit;font-family:inherit;" width="628" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-weight:inherit;font-style:inherit;font-family:inherit;"&gt; &lt;/span&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;a href="https://community.freescale.com/servlet/JiveServlet/showImage/102-100720-2-11455/pastedImage_40.png" rel="nofollow ugc noopener" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;" target="_blank"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;img loading="lazy" alt="image"  class="jiveImage" height="397" src="https://community.freescale.com/servlet/JiveServlet/downloadImage/102-100720-2-11455/pastedImage_40.png" style="border:0px;font-weight:inherit;font-style:inherit;font-family:inherit;" width="628" /&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-weight:inherit;font-style:inherit;font-family:inherit;"&gt; &lt;/span&gt;&lt;span style="font-style:inherit;font-size:18pt;margin-bottom:0.0001pt;font-family:inherit;font-weight:inherit;"&gt;&lt;strong&gt;Resources&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:20pt;font-style:inherit;margin-bottom:0.0001pt;font-family:inherit;font-weight:inherit;"&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="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;a class="jive-link-external-small" href="http://mbed.org/handbook/cmsis-dap-interface-firmware" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;"&gt;CMSIS-DAP Interface Firmware&lt;/a&gt;&lt;/span&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;a class="jive-link-external-small" href="https://mbed.org/platforms/FRDM-K64F/" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;"&gt;mbed.org FRDM-K64 Page&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;a class="jive-link-external-small" href="http://cache.freescale.com/files/32bit/doc/user_guide/FRDMK64FUG.pdf" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;"&gt;FRDM-K64 User Guide&lt;/a&gt;&lt;/span&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;a class="jive-link-external-small" href="http://mcuoneclipse.com/2014/04/27/segger-j-link-firmware-for-opensdav2/" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;"&gt;OpenSDAv2 on MCU on Eclipse blog&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;a class="jive-link-external-small" href="http://cache.freescale.com/files/32bit/doc/user_guide/OPENSDAUG.pdf" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;"&gt;OpenSDA User Guide&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt; &lt;/span&gt;&lt;span style="font-size:18pt;font-style:inherit;margin-bottom:0.0001pt;font-family:inherit;font-weight:inherit;"&gt;&lt;strong&gt;Appendix A: Building the CMSIS-DAP Debug Application&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size:18pt;font-style:inherit;margin-bottom:0.0001pt;font-family:inherit;font-weight:inherit;"&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="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;The open source CMSIS-DAP Interface Firmware app is the default app used on boards with OpenSDAv2. It provides:&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Debugging via the CMSIS-DAP interface&lt;/li&gt;&lt;li&gt;Drag-and-drop flash programming&lt;/li&gt;&lt;li&gt;Virtual Serial Port providing USB-to-Serial convertor&lt;/li&gt;&lt;/ul&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;While binaries of this app are provided for supported boards, some developers would like to build the CMSIS-DAP debug application themselves.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-weight:inherit;font-style:inherit;font-family:inherit;"&gt; &lt;/span&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;This debug application can be built for either the OpenSDAv2/mbed bootloader, or for the original OpenSDA bootloader developed by P&amp;amp;E Micro. If you are not sure which bootloader your board has, refer to the bootloader section in this document.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-weight:inherit;font-style:inherit;font-family:inherit;"&gt; &lt;/span&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;Building the CMSIS-DAP debug application requires Keil MDK. You will also need to have the “&lt;a class="jive-link-external-small" href="http://www2.keil.com/mdk5/legacy" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;"&gt;Legacy Support for Cortex-M Devices&lt;/a&gt;” software pack installed for Keil.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt; &lt;/span&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;You will also need Python 2.x installed. Due to the python script used, Python 3.x will not work.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;You can download and get the CMSIS-DAP source code from &lt;a class="jive-link-external-small" href="https://github.com/mbedmicro/CMSIS-DAP" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;"&gt;&lt;span style="text-decoration:underline;"&gt;https://github.com/mbedmicro/CMSIS-DAP&lt;/span&gt;&lt;/a&gt; using the &lt;a class="jive-link-external-small" href="https://github.com/mbedmicro/CMSIS-DAP/archive/master.zip" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;"&gt;&lt;span style="text-decoration:underline;"&gt;Download ZIP&lt;/span&gt;&lt;/a&gt; link.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-weight:inherit;font-style:inherit;font-family:inherit;"&gt; &lt;/span&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;The source can also be downloaded via git:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;span style="font-style:inherit;font-family:inherit;"&gt;&lt;strong&gt;“git clone &lt;/strong&gt;&lt;/span&gt;&lt;a class="jive-link-external-small" href="https://github.com/mbedmicro/CMSIS-DAP.git" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;"&gt;&lt;span style="font-style:inherit;font-family:inherit;"&gt;&lt;strong&gt;https://github.com/mbedmicro/CMSIS-DAP.git&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-style:inherit;font-family:inherit;"&gt;&lt;strong&gt;”&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-style:inherit;margin-bottom:0.0001pt;font-family:inherit;font-weight:inherit;"&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="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;The source code can be seen as shown below:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;:&lt;/span&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;a href="https://community.freescale.com/servlet/JiveServlet/showImage/102-100720-2-11456/pastedImage_46.png" rel="nofollow ugc noopener" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;" target="_blank"&gt;&lt;img loading="lazy" alt="image"  class="jiveImage" height="295" src="https://community.freescale.com/servlet/JiveServlet/downloadImage/102-100720-2-11456/pastedImage_46.png" style="border:0px;font-weight:inherit;font-style:inherit;font-family:inherit;" width="535" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-weight:inherit;font-style:inherit;font-family:inherit;"&gt; &lt;/span&gt;&lt;span style="font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;This repository contains the files for both the bootloader and the CMSIS-DAP debug interface application. We will concentrate on the interface application at the moment.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-weight:inherit;font-style:inherit;font-family:inherit;"&gt; &lt;/span&gt;&lt;span style="font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;Open up Keil MDK, and open up the project file located at &lt;span style="font-style:inherit;font-family:inherit;"&gt;&lt;strong&gt;\CMSIS-DAP\interface\mdk\k20dx128\k20dx128_interface.uvproj&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;In the project configuration drop-down box, you will notice there are a lot of options. Since different chips may have slightly different flash programming algorithms, there is a target for each specific evaluation board. In this case, we will be building for the FRDM-K64F board. Scroll down until you get to that selection:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;a href="https://community.freescale.com/servlet/JiveServlet/showImage/102-100720-2-11457/pastedImage_49.png" rel="nofollow ugc noopener" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;" target="_blank"&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;&amp;nbsp; &lt;img loading="lazy" alt="image"  class="jiveImage" height="243" src="https://community.freescale.com/servlet/JiveServlet/downloadImage/102-100720-2-11457/pastedImage_49.png" style="border:0px;font-weight:inherit;font-style:inherit;font-family:inherit;" width="384" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;Notice there are three options for the K64:&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-style:inherit;font-family:inherit;"&gt;&lt;strong&gt;k20dx128_k64f_if:&lt;/strong&gt;&lt;/span&gt; Used for debugging the CMSIS-DAP application with Keil. Code starts at address 0x0000_0000&lt;/li&gt;&lt;li&gt;&lt;span style="font-style:inherit;font-family:inherit;"&gt;&lt;strong&gt;k20dx128_k64_if_openSDA_bootloader:&lt;/strong&gt;&lt;/span&gt; Creates a binary to drag-and-drop on the P&amp;amp;E developed bootloader (Original OpenSDA)&lt;/li&gt;&lt;li&gt;&lt;span style="font-style:inherit;font-family:inherit;"&gt;&lt;strong&gt;k20dx128_k64_if_mbed_bootloader: &lt;/strong&gt;&lt;/span&gt;Creates a binary to drag-and-drop onto the CMSIS-DAP/mbed developed bootloader (OpenSDAv2)&lt;/li&gt;&lt;/ul&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-weight:inherit;font-style:inherit;font-family:inherit;"&gt; &lt;/span&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;Since the FRDM-K64F comes with the OpenSDAv2 bootloader, we will use the 3&lt;sup&gt;rd&lt;/sup&gt; option. If we were building the mbed app for another Freedom board which had the original OpenSDA bootloader, &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;we would choose the 2&lt;sup&gt;nd&lt;/sup&gt; option instead.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;Now click on the compile icon. You may get some errors&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;If you get an &lt;a class="jive-link-external-small" href="https://groups.google.com/forum/#!topic/mbed-devel/N57xsoBkWts" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;"&gt;error&lt;/a&gt; similar to the one shown below, make sure you have installed the &lt;a class="jive-link-external-small" href="http://www2.keil.com/mdk5/legacy" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;"&gt;Legacy pack&lt;/a&gt; for ARM as previously described earlier:&lt;/li&gt;&lt;/ul&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#ff0000;font-size:12pt;font-style:inherit;margin-bottom:0.0001pt;font-family:&amp;#39;Times New Roman&amp;#39;, serif;font-weight:inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; compiling RTX_Config.c...&lt;/span&gt;&lt;span style="color:#ff0000;font-size:12pt;font-style:inherit;margin-bottom:0.0001pt;font-family:&amp;#39;Times New Roman&amp;#39;, serif;font-weight:inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ..\..\Common\src\RTX_Config.c(184): error:&amp;nbsp; #5: cannot open source input file &amp;quot;RTX_lib.c&amp;quot;: No such file or directory&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-weight:inherit;font-style:inherit;font-family:inherit;"&gt; &lt;/span&gt;&lt;span style="font-size:12pt;font-style:inherit;margin-bottom:0.0001pt;font-family:&amp;#39;Times New Roman&amp;#39;, serif;font-weight:inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-weight:inherit;font-style:inherit;font-family:inherit;"&gt; &lt;/span&gt;&lt;span style="color:#ff0000;font-size:12pt;font-style:inherit;margin-bottom:0.0001pt;font-family:&amp;#39;Times New Roman&amp;#39;, serif;font-weight:inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; compiling usb_config.c...&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#ff0000;font-size:12pt;font-style:inherit;margin-bottom:0.0001pt;font-family:&amp;#39;Times New Roman&amp;#39;, serif;font-weight:inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ..\..\..\shared\USBStack\INC\usb_lib.c(18): error:&amp;nbsp; #5: cannot open source input file &amp;quot;..\..\RL\USB\INC\usb.h&amp;quot;: No such file or directory&lt;/span&gt;&lt;span style="font-weight:inherit;font-style:inherit;font-family:inherit;"&gt; &lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;If you get an error regarding a &lt;span style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#ff0000;"&gt;missing version_git.h file&lt;/span&gt;, make sure that Python 2.x and git are in your path. A Python build script fetches that file.&lt;/li&gt;&lt;li&gt;If there is a warning about “&lt;span style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#ff0000;"&gt;invalid syntax&lt;/span&gt;” when running the Python script, make sure your using Python 2.x. Python 3.x will not work with the build script.&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:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;Now recompile again, and it should successfully compile. If you look now i&lt;span style="font-style:inherit;font-family:inherit;"&gt;&lt;strong&gt;n \CMSIS-DAP\interface\mdk\k20dx128 &lt;/strong&gt;&lt;/span&gt;you will see a new &lt;span style="font-style:inherit;font-family:inherit;"&gt;&lt;strong&gt;k20dx128_k64f_if_mbed.bin&lt;/strong&gt;&lt;/span&gt; file&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;a href="https://community.freescale.com/servlet/JiveServlet/showImage/102-100720-2-11458/pastedImage_56.png" rel="nofollow ugc noopener" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;" target="_blank"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;img loading="lazy" alt="image"  class="jiveImage" height="252" src="https://community.freescale.com/servlet/JiveServlet/downloadImage/102-100720-2-11458/pastedImage_56.png" style="border:0px;font-weight:inherit;font-style:inherit;font-family:inherit;" width="628" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;If you compiled the project for the OpenSDA bootloader, there would be a new &lt;span style="font-style:inherit;font-family:inherit;"&gt;&lt;strong&gt;k20dx128_k64f_if_openSDA.S19&lt;/strong&gt;&lt;/span&gt; file instead.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;span style="font-style:inherit;font-family:inherit;"&gt;&lt;strong&gt;Loading the CMSIS-DAP Debug Application:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;Now take the Freedom board, press and hold the reset button as you plug in the USB cable. Then, drag-and-drop the .bin file (for OpenSDAv2) or .S19 file (for OpenSDA) into the BOOTLOADER drive that enumerated.&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;a href="https://community.freescale.com/servlet/JiveServlet/showImage/102-100720-2-11459/pastedImage_59.png" rel="nofollow ugc noopener" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;" target="_blank"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;img loading="lazy" alt="image"  class="jiveImage" height="90" src="https://community.freescale.com/servlet/JiveServlet/downloadImage/102-100720-2-11459/pastedImage_59.png" style="border:0px;font-weight:inherit;font-style:inherit;font-family:inherit;" width="189" /&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;margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;Perform a power cycle, and you should see a drive called “MBED” come up and you can start using the CMSIS-DAP debug interface, as well as drag-and-drop programming and virtual serial port as described earlier in this document.&lt;/p&gt;&lt;p style="margin:0;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;a href="https://community.freescale.com/servlet/JiveServlet/showImage/102-100720-2-11460/pastedImage_63.png" rel="nofollow ugc noopener" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;" target="_blank"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;img loading="lazy" alt="image"  class="jiveImage" height="69" src="https://community.freescale.com/servlet/JiveServlet/downloadImage/102-100720-2-11460/pastedImage_63.png" style="border:0px;font-weight:inherit;font-style:inherit;font-family:inherit;" width="122" /&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;margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;span style="font-style:inherit;font-size:18pt;font-family:inherit;font-weight:inherit;"&gt;&lt;strong&gt;Appendix B: Building the CMSIS-DAP Bootloader&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;All Freedom boards already come with a bootloader pre-flashed onto the K20.&amp;nbsp; But for those building their own boards that would like to use CMSIS-DAP, or those who would like to tinker with the bootloader, it possible to flash it to the Kinetis K20 device. Flashing the bootloader will require an external debugger, such as the Keil ULink programmer or Segger JLink.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;span style="font-weight:inherit;font-style:inherit;font-family:inherit;color:red;"&gt;Also note that the OpenSDA/PE Micro Bootloader cannot be erased!&lt;/span&gt; Due to the proprietary nature of the P&amp;amp;E firmware used by the original OpenSDA, it can only be programmed at the board manufacturer and JTAG is disabled. So these instructions are applicable for boards with OpenSDAv2 only.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;First, open up the bootloader project which is located at &lt;span style="font-style:inherit;font-family:inherit;"&gt;&lt;strong&gt;\CMSIS-DAP\bootloader\mdk\k20dx128\k20dx128_bootloader.uvproj&lt;/strong&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;margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;There is only one target available because all OpenSDAv2 boards will use the same bootloader firmware as the hardware circuitry is the same.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;Click on the compile icon and it should compile successfully. If you see errors about a missing version_git.h file, note that Python 2.x must be in the path to run a pre-build script which fetches that file.&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;a href="https://community.freescale.com/servlet/JiveServlet/showImage/102-100720-2-11518/pastedImage_15.png" rel="nofollow ugc noopener" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;" target="_blank"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;img loading="lazy" alt="image"  class="jiveImage" height="160" src="https://community.freescale.com/servlet/JiveServlet/downloadImage/102-100720-2-11518/pastedImage_15.png" style="border:0px;font-weight:inherit;font-style:inherit;font-family:inherit;" width="411" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;Now connect a Keil ULink to J10 and then insert a USB cable to provide power to J26. Note that if you have the 20-pin connector, you’ll want to use the first 10 pins.&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;a href="https://community.freescale.com/servlet/JiveServlet/showImage/102-100720-2-11524/pastedImage_37.png" rel="nofollow ugc noopener" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;" target="_blank"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;img loading="lazy" alt="image"  class="jiveImage" height="238" src="https://community.freescale.com/servlet/JiveServlet/downloadImage/102-100720-2-11524/pastedImage_37.png" style="border:0px;font-weight:inherit;font-style:inherit;font-family:inherit;" width="283" /&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;margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;Then for Keil 5 you will need to change some debug options (CMSIS-DAP is built under Keil 4.x).&lt;/p&gt;&lt;p style="margin:0;"&gt;Right click on the bootloader project, and go to the Debug tab and next to ULINK Pro Cortex Debugger, click on Settings:&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;a href="https://community.freescale.com/servlet/JiveServlet/showImage/102-100720-2-11519/pastedImage_22.png" rel="nofollow ugc noopener" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;" target="_blank"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;img loading="lazy" alt="image"  class="jiveImage" height="470" src="https://community.freescale.com/servlet/JiveServlet/downloadImage/102-100720-2-11519/pastedImage_22.png" style="border:0px;font-weight:inherit;font-style:inherit;font-family:inherit;" width="628" /&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;margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;Then under “Cortex-M Target Driver Setup”, change the “Connect” drop down box to “under Reset” and “Reset” dropdown box to “HW RESET”. Hit OK to save the settings.&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;a href="https://community.freescale.com/servlet/JiveServlet/showImage/102-100720-2-11520/pastedImage_25.png" rel="nofollow ugc noopener" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;" target="_blank"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;img loading="lazy" alt="image"  class="jiveImage" height="397" src="https://community.freescale.com/servlet/JiveServlet/downloadImage/102-100720-2-11520/pastedImage_25.png" style="border:0px;font-weight:inherit;font-style:inherit;font-family:inherit;" width="628" /&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;margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;Then in Keil, click on Flash-&amp;gt;Erase.&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;a href="https://community.freescale.com/servlet/JiveServlet/showImage/102-100720-2-11521/pastedImage_28.png" rel="nofollow ugc noopener" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;" target="_blank"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;img loading="lazy" alt="image"  class="jiveImage" height="137" src="https://community.freescale.com/servlet/JiveServlet/downloadImage/102-100720-2-11521/pastedImage_28.png" style="border:0px;font-weight:inherit;font-style:inherit;font-family:inherit;" width="211" /&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;margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;And then on Flash-&amp;gt;Download.&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;a href="https://community.freescale.com/servlet/JiveServlet/showImage/102-100720-2-11522/pastedImage_31.png" rel="nofollow ugc noopener" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;" target="_blank"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;img loading="lazy" alt="image"  class="jiveImage" height="137" src="https://community.freescale.com/servlet/JiveServlet/downloadImage/102-100720-2-11522/pastedImage_31.png" style="border:0px;font-weight:inherit;font-style:inherit;font-family:inherit;" width="211" /&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;margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;If you get an “Invalid ROM Table” error when flashing the CMSIS-DAP bootloader, make sure you made the changes to the debugger settings listed above.&lt;/p&gt;&lt;p style="margin:0;"&gt;After some text scrolls by, you should see:&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;&lt;a href="https://community.freescale.com/servlet/JiveServlet/showImage/102-100720-2-11523/pastedImage_34.png" rel="nofollow ugc noopener" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;" target="_blank"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;img loading="lazy" alt="image"  class="jiveImage" height="59" src="https://community.freescale.com/servlet/JiveServlet/downloadImage/102-100720-2-11523/pastedImage_34.png" style="border:0px;font-weight:inherit;font-style:inherit;font-family:inherit;" width="150" /&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;margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;Now power cycle while holding down the reset button, and you should see the bootloader drive come up. You’ll then need to drag and drop the mbed application built earlier onto it. And that’s all there is to it!&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-weight:inherit;font-style:inherit;font-family:inherit;"&gt;The binaries for the bootloader and CMSIS-DAP debug app for the FRDM-K64F board created in writing this guide are attached.&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/135146"&gt;&lt;a href="https://community.element14.com/cfs-file/__key/communityserver-wikis-components-files/00-00-00-01-49/k20dx128_5F00_bootloader.axf.zip"&gt;community.element14.com/.../k20dx128_5F00_bootloader.axf.zip&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&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/135147"&gt;&lt;a href="https://community.element14.com/cfs-file/__key/communityserver-wikis-components-files/00-00-00-01-49/k20dx128_5F00_k64f_5F00_if_5F00_mbed.bin.zip"&gt;community.element14.com/.../k20dx128_5F00_k64f_5F00_if_5F00_mbed.bin.zip&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;
</description></item><item><title>Interfacing Thermal Printer with Freedom board FRDM-KL25Z : Part 1</title><link>https://community.element14.com/products/devtools/kinetiskl2freedomboard/w/documents/16898/interfacing-thermal-printer-with-freedom-board-frdm-kl25z-part-1</link><pubDate>Fri, 08 Oct 2021 07:50:06 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:ca495d74-aefd-48ea-9c12-33f759ccc0eb</guid><dc:creator>bheemarao</dc:creator><description>Current Revision posted to Documents by bheemarao on 10/8/2021 7:50:06 AM&lt;br /&gt;
&lt;p style="margin:0;"&gt;&lt;span style="color:#ff6600;font-size:10pt;font-family:inherit;font-weight:inherit;"&gt;&lt;em&gt;This tutorial was extracted from Erich Styger blog &lt;/em&gt;&lt;/span&gt;&lt;span style="font-size:10pt;color:#373737;"&gt;&lt;a class="jive-link-external-small" href="http://mcuoneclipse.wordpress.com/" rel="nofollow" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#592d5f;" target="_blank"&gt;&lt;span style="font-style:inherit;font-family:inherit;font-weight:inherit;"&gt;&lt;em&gt;http://mcuoneclipse.wordpress.com&lt;/em&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style="color:#ff6600;font-size:10pt;font-family:inherit;font-weight:inherit;"&gt;&lt;em&gt; with his agreement.&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#ff6600;font-size:10pt;font-family:inherit;font-weight:inherit;"&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;One of my embedded projects is to measure the running time in a sports event (see “&lt;a class="jive-link-external-small" href="http://mcuoneclipse.com/2012/08/14/timing-system-in-a-lunch-box/" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank" title="Sports Timing System in a Lunch Box"&gt;Sports Timing System in a Lunch Box&lt;/a&gt;“). The recorded time is stored in an EEPROM plus sent over USB or wireless connection to the host. It would be great if I could print out the time and ranking directly, so if there is no PC, the system can be small and tiny. So here is my next project and tutorial:&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;span style="font-family:inherit;font-size:15px;font-style:inherit;"&gt;&lt;strong&gt;Printing with the Freedom board!&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/hello-world-on-the-printer-with-frdm-kl25z.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;img alt="Hello World on the Printer with FRDM-KL25Z" class="jiveImage size-full wp-image-11011" height="576" src="http://mcuoneclipse.files.wordpress.com/2014/03/hello-world-on-the-printer-with-frdm-kl25z.png?w=584&amp;amp;h=576" style="border:1px solid #eeeeee;padding:6px;" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&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;&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; Hello World on the Printer with FRDM-KL25Z&lt;/p&gt;&lt;p style="margin:0;padding:0px;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;The ability to print is a great addition to any other project: I can send messages to be printed out on a remote board, using it as a receipt printer, logging test results and many more things: having printing capabilities is such a great addition to any project, and it does not take much! I have spent this Sunday morning only 4 hours from unpacking, connecting the hardware, programming the first software with CodeWarrior+Processor Expert until I had a “Hello World from the FRDM-KL25Z!” showing up on the printer! And that 4 hours included writing this tutorial.&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;So expect it would take you less than one hour with the help of this tutorial.&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/first-hello-world-message-on-printer.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="First Hello World Message on Printer" class="jiveImage wp-image-11013 size-full" height="230" src="http://mcuoneclipse.files.wordpress.com/2014/03/first-hello-world-message-on-printer.png?w=584&amp;amp;h=230" style="border:1px solid #eeeeee;padding:6px;" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;First Hello World Message on Printer&lt;/p&gt;&lt;h1 style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;font-style:normal;font-weight:bold;margin:0 0 0.8125em;color:#000000;text-align:start;text-indent:0px;"&gt;Adafruit Mini Thermal Receipt Printer&lt;/h1&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;I ordered a small thermal printer from Adafruit (&lt;a class="jive-link-external-small" href="http://learn.adafruit.com/mini-thermal-receipt-printer" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;http://learn.adafruit.com/mini-thermal-receipt-printer&lt;/a&gt;) which costs $50. I added three thermal paper rolls (&lt;a class="jive-link-external-small" href="http://www.adafruit.com/products/599" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;http://www.adafruit.com/products/599&lt;/a&gt;) to my order to have enough paper to start with :-):&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/adafruit-mini-thermal-printer.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="Adafruit Mini Thermal Printer" class="wp-image-10987 jiveImage size-full" height="395" src="http://mcuoneclipse.files.wordpress.com/2014/03/adafruit-mini-thermal-printer.png?w=584&amp;amp;h=395" style="border:1px solid #eeeeee;padding:6px;" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;Adafruit Mini Thermal Printer unpacked&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;The main features of the printer (from the data sheet):&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Thermal paper printer, 2.25″/57mm wide (effective printing width 48 mm)&lt;/li&gt;&lt;li&gt;Built-in fonts: small, medium, large text&lt;/li&gt;&lt;li&gt;Bold, underline and inverted text with left/right/center positioning&lt;/li&gt;&lt;li&gt;Different bar codes&lt;/li&gt;&lt;li&gt;Printing monochrome bitmaps and images&lt;/li&gt;&lt;li&gt;Size: 111x65x57 mm&lt;/li&gt;&lt;li&gt;5-9V DC, 1.5 A&lt;/li&gt;&lt;li&gt;TTL Serial (RS-232, 5V) protocol&lt;/li&gt;&lt;/ul&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0 0 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;Useful links:&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Printer data sheet:&lt;a class="jive-link-external-small" href="http://www.adafruit.com/datasheets/cashino%20thermal%20printer%20a2.pdf" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;http://www.adafruit.com/datasheets/cashino%20thermal%20printer%20a2.pdf&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Printer user manual:&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;a class="jive-link-external-small" href="http://www.adafruit.com/datasheets/A2-user%20manual.pdf" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;http://www.adafruit.com/datasheets/A2-user%20manual.pdf&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Adafruit Thermal Printer Overview:&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;a class="jive-link-external-small" href="http://learn.adafruit.com/mini-thermal-receipt-printer/overview" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;http://learn.adafruit.com/mini-thermal-receipt-printer/overview&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;With the printer came a test print which has the baud listed. There are printers with 9600 baud and others with 19200, mine came with 19200. More about this later.&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/printer-test-print-with-baudrate.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="Printer Test Print with Baudrate" class="jiveImage wp-image-10986 size-full" height="440" src="http://mcuoneclipse.files.wordpress.com/2014/03/printer-test-print-with-baudrate.png?w=584&amp;amp;h=440" style="border:1px solid #eeeeee;padding:6px;" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;Printer Test Print with Baudrate&lt;/p&gt;&lt;h1 style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;font-style:normal;font-weight:bold;margin:0 0 0.8125em;color:#000000;text-align:start;text-indent:0px;"&gt;Mounting and Connectors&lt;/h1&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;The two brackets are for mounting the printer behind a panel. In order not to lose the parts, I mounted them right away:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/adding-printer-mounting-brackets.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="Adding Printer Mounting Brackets" class="jiveImage wp-image-10985 size-full" src="http://mcuoneclipse.files.wordpress.com/2014/03/adding-printer-mounting-brackets.png?w=584" style="border:1px solid #eeeeee;padding:6px;" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;Adding Printer Mounting Brackets&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;The cables get connected to the backside of the printer:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/printer-backside-connectors.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="Printer Backside Connectors" class="jiveImage size-full wp-image-10984" src="http://mcuoneclipse.files.wordpress.com/2014/03/printer-backside-connectors.png?w=584" style="border:1px solid #eeeeee;padding:6px;" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;Printer Backside Connectors&lt;/p&gt;&lt;h1 style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;font-style:normal;font-weight:bold;margin:0 0 0.8125em;color:#000000;text-align:start;text-indent:0px;"&gt;Power Supply&lt;/h1&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;The printer requires a 5-9V power supply. Thermal printing needs a lot of power, so a 1.5 amps power supply is needed! There are many ways how you could give power to the printer. I usually have always a bunch of power supplies, but the challenges is that the plugs never match my needs. So usually I end up cutting the wires and making it fitting my needs. For this project I use a 5V 2A power supply I have left over from a damaged Cisco router:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/5v-2a-power-supply.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="5V 2A Power Supply" class="wp-image-10998 jiveImage size-full" height="447" src="http://mcuoneclipse.files.wordpress.com/2014/03/5v-2a-power-supply.png?w=584&amp;amp;h=447" style="border:1px solid #eeeeee;padding:6px;" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;5V 2A Power Supply&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;I cut the 5V wires:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/power-supply-5v-wires-cut.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="Power Supply 5V Wires cut" class="jiveImage size-full wp-image-10999" src="http://mcuoneclipse.files.wordpress.com/2014/03/power-supply-5v-wires-cut.png?w=584" style="border:1px solid #eeeeee;padding:6px;" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;Power Supply 5V Wires cut&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;Same for the printer supply wires:&lt;/p&gt;&lt;p style="margin:0;font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;margin:0px 0px 1.625em;"&gt;&lt;span class="emoji-exclaim emoji wp-smiley" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;text-indent:9999px;" title=":!:"&gt;:!:&lt;/span&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;Cut the wires on the 2-pin connector (NOT on the 3-pin side)!&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/cutting-printer-supply-wires.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="Cutting Printer Supply Wires" class="jiveImage size-full wp-image-11000" height="348" src="http://mcuoneclipse.files.wordpress.com/2014/03/cutting-printer-supply-wires.png?w=584&amp;amp;h=348" style="border:1px solid #eeeeee;padding:6px;" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;Cutting Printer Supply Wires&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;Then remove the isolation:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/removed-isolation.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="Removed Isolation" class="jiveImage size-full wp-image-11001" src="http://mcuoneclipse.files.wordpress.com/2014/03/removed-isolation.png?w=584" style="border:1px solid #eeeeee;padding:6px;" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;Removed Isolation&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;I’m using heat shrink tubes for isolation, but you can use electrical isolation tape too (not so nice as heat shrink tubes). I cut pieces of different diameter and size:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/shrink-tubes.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="Shrink Tubes" class="jiveImage wp-image-10997 size-full" src="http://mcuoneclipse.files.wordpress.com/2014/03/shrink-tubes.png?w=584" style="border:1px solid #eeeeee;padding:6px;" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;Shrink Tubes&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;Put them on the wire before soldering:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/shrink-tubes-on-wires.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="Shrink Tubes on Wires" class="jiveImage wp-image-10996 size-full" height="438" src="http://mcuoneclipse.files.wordpress.com/2014/03/shrink-tubes-on-wires.png?w=584&amp;amp;h=438" style="border:1px solid #eeeeee;padding:6px;" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;Shrink Tubes on Wires&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;Wrap the wires together:&lt;/p&gt;&lt;p style="margin:0;font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;margin:0px 0px 1.625em;"&gt;&lt;span class="emoji-exclaim emoji wp-smiley" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;text-indent:9999px;" title=":!:"&gt;:!:&lt;/span&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;carefully check the wire polarity (what is plus, and what is ground)! In doubt, use a voltage meter to verify it!&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/wires-wrapped-together.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="Wires Wrapped together" class="jiveImage size-full wp-image-10995" src="http://mcuoneclipse.files.wordpress.com/2014/03/wires-wrapped-together.png?w=584" style="border:1px solid #eeeeee;padding:6px;" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;Wires Wrapped together&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;Solder the wires:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/solder-the-wires.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="Solder the Wires" class="jiveImage wp-image-10994 size-full" src="http://mcuoneclipse.files.wordpress.com/2014/03/solder-the-wires.png?w=584" style="border:1px solid #eeeeee;padding:6px;" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;Solder the Wires&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;Then use a hot air gun to shrink it:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/shrinking.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="Shrinking with Hot Air Gun" class="jiveImage wp-image-10993 size-full" height="485" src="http://mcuoneclipse.files.wordpress.com/2014/03/shrinking.png?w=584&amp;amp;h=485" style="border:1px solid #eeeeee;padding:6px;" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;Shrinking with Hot Air Gun&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;The result is a nice connection:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/shrinked-power-cable.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="Shrinked Power Cable" class="jiveImage size-full wp-image-10992" height="456" src="http://mcuoneclipse.files.wordpress.com/2014/03/shrinked-power-cable.png?w=584&amp;amp;h=456" style="border:1px solid #eeeeee;padding:6px;" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;Shrinked Power Cable&lt;/p&gt;&lt;h1 style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;font-style:normal;font-weight:bold;margin:0 0 0.8125em;color:#000000;text-align:start;text-indent:0px;"&gt;Inserting Paper&lt;/h1&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;When powered, the green LED flashes. There is a ‘Paper Feed’ button plus a lever to open the printer.&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/printer-button-led-and-lever.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="Printer button, led and lever" class="wp-image-11006 jiveImage size-full" height="368" src="http://mcuoneclipse.files.wordpress.com/2014/03/printer-button-led-and-lever.png?w=584&amp;amp;h=368" style="border:1px solid #eeeeee;padding:6px;" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;Printer button, LED and lever&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;A roll presses the paper on the printer head:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/paper-press-roll.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="Paper Press Roll" class="jiveImage wp-image-11007 size-full" height="414" src="http://mcuoneclipse.files.wordpress.com/2014/03/paper-press-roll.png?w=584&amp;amp;h=414" style="border:1px solid #eeeeee;padding:6px;" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;Paper Press Roll&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;The printer head is near the ‘cut off’ area:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/printer-head.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="Printer Head" class="jiveImage wp-image-11008 size-full" height="358" src="http://mcuoneclipse.files.wordpress.com/2014/03/printer-head.png?w=584&amp;amp;h=358" style="border:1px solid #eeeeee;padding:6px;" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;Printer Head&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;The paper is placed inside the printer. Make sure the paper is clean and has no stickers/etc on it:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/paper-inside-the-printer.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="Paper inside the printer" class="jiveImage size-full wp-image-11005" src="http://mcuoneclipse.files.wordpress.com/2014/03/paper-inside-the-printer.png?w=584" style="border:1px solid #eeeeee;padding:6px;" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;Paper inside the printer&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;Then close the cover:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/printer-cover-closed.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="Printer Cover Closed" class="jiveImage size-full wp-image-11004" src="http://mcuoneclipse.files.wordpress.com/2014/03/printer-cover-closed.png?w=584" style="border:1px solid #eeeeee;padding:6px;" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;Printer Cover Closed&lt;/p&gt;&lt;h1 style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;font-style:normal;font-weight:bold;margin:0 0 0.8125em;color:#000000;text-align:start;text-indent:0px;"&gt;Making a Test Print&lt;/h1&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;Powering the printer with the ‘paper feed’ button pressed will print a test report:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/test-print-with-baudrate.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="Test Print with Baudrate" class="jiveImage wp-image-11003 size-full" height="426" src="http://mcuoneclipse.files.wordpress.com/2014/03/test-print-with-baudrate.png?w=584&amp;amp;h=426" style="border:1px solid #eeeeee;padding:6px;" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;Test Print with Baudrate&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;Now I’m sure my printer is working&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;span class="emoji emoji-smile wp-smiley" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;text-indent:9999px;" title=":-)"&gt;:-)&lt;/span&gt;&lt;/p&gt;&lt;h1 style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;font-style:normal;font-weight:bold;margin:0 0 0.8125em;color:#000000;text-align:start;text-indent:0px;"&gt;Printer Connection to the FRDM Board&lt;/h1&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;There is problem: the printer uses 5V (TTL) logic levels, while my FRDM board has 3.3V levels. The printer accepts 3.3V input values (on the printer RX line), but it would be a bad idea to connect the printer output 5V TX signal to a microcontroller having 3.3V levels without a level shifter.&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/printer-tx-and-rx.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="Printer Tx and Rx" class="jiveImage wp-image-11014 size-full" src="http://mcuoneclipse.files.wordpress.com/2014/03/printer-tx-and-rx.png?w=584" style="border:1px solid #eeeeee;padding:6px;" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;Printer Tx and Rx&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;As I’m only sending data to the printer, I’m *not* going to connect the printer 5V Tx line to my board. I’m only connecting the GND and the microcontroller Tx with the Printer Rx. For this I’m using connector cables:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/printer-to-microcontroler-connection.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="Printer to Microcontroler Connection" class="jiveImage size-full wp-image-11015" height="314" src="http://mcuoneclipse.files.wordpress.com/2014/03/printer-to-microcontroler-connection.png?w=584&amp;amp;h=314" style="border:1px solid #eeeeee;padding:6px;" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;Printer to Microcontroler Connection&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;Ground is connected to the board GND pin. I’m free to use any available UART Tx pin, and I have used UART0 Tx (Port A, pin 2) PTA2:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/frdm-kl25z-connections.png" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;&lt;img loading="lazy" alt="FRDM-KL25Z Connections" class="jiveImage size-full wp-image-11016" height="443" src="http://mcuoneclipse.files.wordpress.com/2014/03/frdm-kl25z-connections.png?w=584&amp;amp;h=443" style="border:1px solid #eeeeee;padding:6px;" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;font-family:Georgia,serif;font-size:12px;font-style:inherit;font-weight:inherit;margin:0px 0px 0.6em;padding:10px 0px 5px 40px;color:#666666;"&gt;FRDM-KL25Z Connections&lt;/p&gt;&lt;h1 style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;font-style:normal;font-weight:bold;margin:0 0 0.8125em;color:#000000;text-align:start;text-indent:0px;"&gt;Summary&lt;/h1&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;In few hours, I have now the ability to print at least some text, using the FRDM-KL25Z and the Adafruit thermal receipt printer. Much faster than I have expected, which is a great thing. Time for having lunch. A next post will be about how to use the software.&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;But if you cannot wait: the project is already on GitHub:&lt;a class="jive-link-external-small" href="https://github.com/ErichStyger/mcuoneclipse/tree/master/Examples/FRDM-KL25Z/FRDM-KL25Z_Printer" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;https://github.com/ErichStyger/mcuoneclipse/tree/master/Examples/FRDM-KL25Z/FRDM-KL25Z_Printer&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;Happy Printing&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;span class="emoji emoji-smile wp-smiley" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;text-indent:9999px;" title=":-)"&gt;:-)&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>Low Power LLS Mode on Freescale's Kinetis FRDM-KL25Z board</title><link>https://community.element14.com/products/devtools/kinetiskl2freedomboard/w/documents/16897/low-power-lls-mode-on-freescale-s-kinetis-frdm-kl25z-board</link><pubDate>Fri, 08 Oct 2021 07:50:05 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:fe3961a7-326d-4e78-a8b9-2fcf9e963783</guid><dc:creator>bheemarao</dc:creator><description>Current Revision posted to Documents by bheemarao on 10/8/2021 7:50:05 AM&lt;br /&gt;
&lt;p style="margin:0;"&gt;&lt;span style="color:#ff6600;font-size:10pt;font-family:inherit;font-weight:inherit;"&gt;&lt;em&gt;This tutorial was extracted from Erich Styger blog &lt;/em&gt;&lt;/span&gt;&lt;span style="font-size:10pt;color:#373737;"&gt;&lt;a class="jive-link-external-small" href="http://mcuoneclipse.wordpress.com/" rel="nofollow" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#592d5f;" target="_blank"&gt;&lt;span style="font-style:inherit;font-family:inherit;font-weight:inherit;"&gt;&lt;em&gt;http://mcuoneclipse.wordpress.com&lt;/em&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style="color:#ff6600;font-size:10pt;font-family:inherit;font-weight:inherit;"&gt;&lt;em&gt; with his agreement.&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#ff6600;font-size:10pt;font-family:inherit;font-weight:inherit;"&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#ff6600;font-size:10pt;font-family:inherit;font-weight:inherit;"&gt;&lt;em&gt;&lt;span style="color:#373737;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;font-style:normal;font-weight:300;text-align:start;text-indent:0px;"&gt;In “&lt;/span&gt;&lt;a class="jive-link-external-small" href="http://mcuoneclipse.com/2014/02/09/iot-freertos-down-to-the-micro-amps/" rel="nofollow ugc noopener" style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;font-style:normal;font-weight:300;color:#1982d1;text-align:start;text-indent:0px;" target="_blank" title="IoT: FreeRTOS Down to the Micro Amps"&gt;IoT: FreeRTOS Down to the Micro Amps&lt;/a&gt;&lt;span style="color:#373737;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;font-style:normal;font-weight:300;text-align:start;text-indent:0px;"&gt;” I’m using an application with FreeRTOS to get down in micro amps low power mode. Well, nearly all or my applications are using FreeRTOS because it makes the application scalable and extensible. Still, for anyone not used to an RTOS, that might be a hard start. So here we go: how to get into the Kinetis Low Power LLS Mode *without* an RTOS.&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#ff6600;font-size:10pt;font-family:inherit;font-weight:inherit;"&gt;&lt;em style="text-indent:0px;text-align:start;color:#373737;font-style:normal;font-size:15px;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-weight:300;"&gt;&lt;br /&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#ff6600;font-size:10pt;font-family:inherit;font-weight:inherit;"&gt;&lt;em style="text-indent:0px;text-align:start;color:#373737;font-style:normal;font-size:15px;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-weight:300;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/power-measurement.png?w=584&amp;amp;h=507"&gt;&lt;img alt="Power Measurement" class="jiveImage" src="http://mcuoneclipse.files.wordpress.com/2014/03/power-measurement.png?w=584&amp;amp;h=507" /&gt;&lt;/a&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#ff6600;font-size:10pt;font-family:inherit;font-weight:inherit;"&gt;&lt;em style="text-indent:0px;text-align:start;color:#373737;font-style:normal;font-size:15px;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-weight:300;"&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;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:#666666;font-family:Georgia, serif;font-size:12px;font-style:normal;font-weight:300;text-align:start;text-indent:0px;background-color:#eeeeee;"&gt;Power Measurement&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#ff6600;font-size:10pt;font-family:inherit;font-weight:inherit;"&gt;&lt;em style="text-indent:0px;color:#666666;text-align:start;font-size:12px;font-style:normal;background-color:#eeeeee;font-family:Georgia, serif;font-weight:300;"&gt;&lt;br /&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;h1 style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;font-style:normal;font-weight:bold;margin:0 0 0.8125em;color:#000000;text-align:start;text-indent:0px;"&gt;Outline&lt;/h1&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;In this project I create a very simple bare-metal application for the Freescale FRDM-KL25Z board. All what it does is to blink an LED from the Low Power wake-up interrupt to show that the application is running. Right after the wake-up interrupt, it enters again the LLS low power mode. So I enter LLS low power mode, and the timer interrupt will wake me up every second. As in LLS mode only a few timer and wake-up sources are available, I’m going to use the 1 kHz Low Power clock source.&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;The project and all the settings is available on GitHub at the link provided at the end of this article.&lt;/p&gt;&lt;h1 style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;font-style:normal;font-weight:bold;margin:0 0 0.8125em;color:#000000;text-align:start;text-indent:0px;"&gt;Processor Expert Components&lt;/h1&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;In this project, I’m using the following components:&lt;/p&gt;&lt;ol style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0 0 1.625em 2.5em;list-style:decimal;color:#373737;text-align:start;text-indent:0px;"&gt;&lt;li&gt;3&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;strong style="font-family:inherit;font-size:15px;font-style:inherit;"&gt;LED&lt;/strong&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;components (RGB)&lt;/li&gt;&lt;li&gt;&lt;strong style="font-family:inherit;font-size:15px;font-style:inherit;"&gt;TimerInt&lt;/strong&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;with&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;strong style="font-family:inherit;font-size:15px;font-style:inherit;"&gt;TimerUnit_LDD&lt;/strong&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;for the low power wake-up timer&lt;/li&gt;&lt;li&gt;&lt;strong style="font-family:inherit;font-size:15px;font-style:inherit;"&gt;WAIT&lt;/strong&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;component to flash different LED’s after power-up with a delay.&lt;/li&gt;&lt;/ol&gt;&lt;p style="margin:0;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/processor-expert-components.png?w=584"&gt;&lt;img loading="lazy" alt="Processor Expert Components" class="jiveImage" src="http://mcuoneclipse.files.wordpress.com/2014/03/processor-expert-components.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&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;&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;span style="color:#666666;font-family:Georgia, serif;font-size:12px;font-style:normal;font-weight:300;text-align:start;text-indent:0px;background-color:#eeeeee;"&gt;Processor Expert Components&lt;/span&gt;&lt;/p&gt;&lt;h1 style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;font-style:normal;font-weight:bold;margin:0 0 0.8125em;color:#000000;text-align:start;text-indent:0px;"&gt;Timer&lt;/h1&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;As timer I use the LPTMR with a period of one second:&lt;/p&gt;&lt;p style="margin:0;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/low-power-1-second-timer.png?w=584"&gt;&lt;img loading="lazy" alt="Low Power 1 Second Timer" src="http://mcuoneclipse.files.wordpress.com/2014/03/low-power-1-second-timer.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&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;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:#666666;font-family:Georgia, serif;font-size:12px;font-style:normal;font-weight:300;text-align:start;text-indent:0px;background-color:#eeeeee;"&gt;Low Power 1 Second Timer&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;Inside the period settings, I configure it to use the LPO 1 kHz timer as clock source, as this clock still will run in LLS mode:&lt;/p&gt;&lt;p style="margin:0;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/lpo-1-khz-source.png?w=584"&gt;&lt;img loading="lazy" alt="LPO 1 kHz Source" src="http://mcuoneclipse.files.wordpress.com/2014/03/lpo-1-khz-source.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;,Helvetica,Arial,sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0px 0px 1.625em;color:#373737;text-align:start;text-indent:0px;"&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;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:#666666;font-family:Georgia, serif;font-size:12px;font-style:normal;font-weight:300;text-align:start;text-indent:0px;background-color:#eeeeee;"&gt;LPO 1 kHz Source&lt;/span&gt;&lt;/p&gt;&lt;h1 style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;font-style:normal;font-weight:bold;margin:0 0 0.8125em;color:#000000;text-align:start;text-indent:0px;"&gt;CPU Component&lt;/h1&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0 0 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;First, we need to configure the CPU component to be ready for low power mode. I enable the methods SetOperationMode() and GetLLSWakupFlags() (so the black x is removed):&lt;/p&gt;&lt;p style="margin:0;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/enabled-setoperationmode-and-getllswakeupflags.png?w=584"&gt;&lt;img loading="lazy" alt="Enabled SetOperationMode and GetLLSWakeupFlags" src="http://mcuoneclipse.files.wordpress.com/2014/03/enabled-setoperationmode-and-getllswakeupflags.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0 0 1.625em;color:#373737;text-align:start;text-indent:0px;"&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:#666666;font-family:Georgia, serif;font-size:12px;font-style:normal;font-weight:300;text-align:start;text-indent:0px;background-color:#eeeeee;"&gt;Enabled SetOperationMode and GetLLSWakeupFlags&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0 0 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;In the CPU properties, I enable all low power modes, configure LPTMR0 as wake-up source, and enable the INT_LLW wake-up interrupt:&lt;/p&gt;&lt;p style="margin:0;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/enabled-low-power-modes.png?w=584"&gt;&lt;img loading="lazy" alt="Enabled Low Power Modes" src="http://mcuoneclipse.files.wordpress.com/2014/03/enabled-low-power-modes.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0 0 1.625em;color:#373737;text-align:start;text-indent:0px;"&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;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color:#666666;font-family:Georgia, serif;font-size:12px;font-style:normal;font-weight:300;text-align:start;text-indent:0px;background-color:#eeeeee;"&gt;Enabled Low Power Modes&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0 0 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;Then I configure the WAIT, SLEEP and STOP modes (these are the three different low power modes in Processor Expert):&lt;/p&gt;&lt;p style="margin:0;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;a href="http://mcuoneclipse.files.wordpress.com/2014/03/wait-sleep-and-stop-modes.png?w=584"&gt;&lt;img loading="lazy" alt="WAIT, SLEEP and STOP modes" src="http://mcuoneclipse.files.wordpress.com/2014/03/wait-sleep-and-stop-modes.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0 0 1.625em;color:#373737;text-align:start;text-indent:0px;"&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;&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;&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;span style="color:#666666;font-family:Georgia, serif;font-size:12px;font-style:normal;font-weight:300;text-align:start;text-indent:0px;background-color:#eeeeee;"&gt;WAIT, SLEEP and STOP modes&lt;/span&gt;&lt;/p&gt;&lt;h1 style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;font-style:normal;font-weight:bold;margin:0 0 0.8125em;color:#000000;text-align:start;text-indent:0px;"&gt;Source Files&lt;/h1&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0 0 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;Time to write the application code. I’m using Application.h and Application.c:&lt;/p&gt;&lt;p class="syntaxhighlighter cpp" style="margin:0;padding:0px;font-family:inherit;font-style:inherit;font-weight:inherit;"&gt;&amp;nbsp;&lt;/p&gt;&lt;table border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="code" style="border:0px solid black;"&gt;&lt;div class="container"&gt;&lt;div class="number1 alt2 line index0"&gt;&lt;code class="cpp comments"&gt;/*&lt;/code&gt;&lt;p class="number2 alt1 index1 line" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;* Application.h&lt;/code&gt;&lt;/p&gt;&lt;p class="number3 index2 alt2 line" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;*&lt;/code&gt;&lt;/p&gt;&lt;p class="index3 number4 alt1 line" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;*&amp;nbsp; Created on: Mar 16, 2014&lt;/code&gt;&lt;/p&gt;&lt;p class="index4 alt2 number5 line" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Author: Erich Styger&lt;/code&gt;&lt;/p&gt;&lt;p class="index5 alt1 line number6" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;*/&lt;/code&gt;&lt;/p&gt;&lt;p class="index7 number8 alt1 line" style="margin:0;"&gt;&lt;code class="cpp preprocessor"&gt;#ifndef APPLICATION_H_&lt;/code&gt;&lt;/p&gt;&lt;p class="number9 alt2 line index8" style="margin:0;"&gt;&lt;code class="cpp preprocessor"&gt;#define APPLICATION_H_&lt;/code&gt;&lt;/p&gt;&lt;p class="alt2 index10 number11 line" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;/*! \brief callback called from the LLS wake-up interrupt */&lt;/code&gt;&lt;/p&gt;&lt;p class="alt1 number12 line index11" style="margin:0;"&gt;&lt;code class="keyword cpp bold"&gt;void&lt;/code&gt;&lt;code class="cpp plain"&gt;APP_OnLLSWakeUpInterrupt(&lt;/code&gt;&lt;code class="keyword cpp bold"&gt;void&lt;/code&gt;&lt;code class="cpp plain"&gt;);&lt;/code&gt;&lt;/p&gt;&lt;p class="index13 number14 alt1 line" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;/*! \brief callback called from low power timer interrupt */&lt;/code&gt;&lt;/p&gt;&lt;p class="index14 number15 alt2 line" style="margin:0;"&gt;&lt;code class="keyword cpp bold"&gt;void&lt;/code&gt;&lt;code class="cpp plain"&gt;APP_TimerInterrupt(&lt;/code&gt;&lt;code class="keyword cpp bold"&gt;void&lt;/code&gt;&lt;code class="cpp plain"&gt;);&lt;/code&gt;&lt;/p&gt;&lt;p class="number17 index16 alt2 line" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;/*! \brief application main entry point */&lt;/code&gt;&lt;/p&gt;&lt;p class="index17 alt1 line number18" style="margin:0;"&gt;&lt;code class="keyword cpp bold"&gt;void&lt;/code&gt;&lt;code class="cpp plain"&gt;APP_Run(&lt;/code&gt;&lt;code class="keyword cpp bold"&gt;void&lt;/code&gt;&lt;code class="cpp plain"&gt;);&lt;/code&gt;&lt;/p&gt;&lt;p class="number20 alt1 index19 line" style="margin:0;"&gt;&lt;code class="cpp preprocessor"&gt;#endif /* APPLICATION_H_ */&lt;/code&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style="margin:0;padding:0px;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0 0 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0 0 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;The the Application.c looks like this:&lt;/p&gt;&lt;table border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="gutter" style="border:0px solid black;"&gt;&lt;div class="number1 alt2 line index0"&gt;1&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="number2 alt1 index1 line" style="margin:0;"&gt;2&lt;/p&gt;&lt;p class="number3 index2 alt2 line" style="margin:0;"&gt;3&lt;/p&gt;&lt;p class="index3 number4 alt1 line" style="margin:0;"&gt;4&lt;/p&gt;&lt;p class="index4 alt2 number5 line" style="margin:0;"&gt;5&lt;/p&gt;&lt;p class="index5 alt1 line number6" style="margin:0;"&gt;6&lt;/p&gt;&lt;p class="number7 alt2 index6 line" style="margin:0;"&gt;7&lt;/p&gt;&lt;p class="index7 number8 alt1 line" style="margin:0;"&gt;8&lt;/p&gt;&lt;p class="number9 alt2 line index8" style="margin:0;"&gt;9&lt;/p&gt;&lt;p class="alt1 line index9 number10" style="margin:0;"&gt;10&lt;/p&gt;&lt;p class="alt2 index10 number11 line" style="margin:0;"&gt;11&lt;/p&gt;&lt;p class="alt1 number12 line index11" style="margin:0;"&gt;12&lt;/p&gt;&lt;p class="number13 alt2 line index12" style="margin:0;"&gt;13&lt;/p&gt;&lt;p class="index13 number14 alt1 line" style="margin:0;"&gt;14&lt;/p&gt;&lt;p class="index14 number15 alt2 line" style="margin:0;"&gt;15&lt;/p&gt;&lt;p class="number16 index15 alt1 line" style="margin:0;"&gt;16&lt;/p&gt;&lt;p class="number17 index16 alt2 line" style="margin:0;"&gt;17&lt;/p&gt;&lt;p class="index17 alt1 line number18" style="margin:0;"&gt;18&lt;/p&gt;&lt;p class="alt2 index18 line number19" style="margin:0;"&gt;19&lt;/p&gt;&lt;p class="number20 alt1 index19 line" style="margin:0;"&gt;20&lt;/p&gt;&lt;p class="alt2 index20 line number21" style="margin:0;"&gt;21&lt;/p&gt;&lt;p class="alt1 index21 number22 line" style="margin:0;"&gt;22&lt;/p&gt;&lt;p class="alt2 number23 index22 line" style="margin:0;"&gt;23&lt;/p&gt;&lt;p class="number24 alt1 line index23" style="margin:0;"&gt;24&lt;/p&gt;&lt;p class="index24 number25 alt2 line" style="margin:0;"&gt;25&lt;/p&gt;&lt;p class="index25 number26 alt1 line" style="margin:0;"&gt;26&lt;/p&gt;&lt;p class="number27 index26 alt2 line" style="margin:0;"&gt;27&lt;/p&gt;&lt;p class="number28 index27 alt1 line" style="margin:0;"&gt;28&lt;/p&gt;&lt;p class="alt2 index28 line number29" style="margin:0;"&gt;29&lt;/p&gt;&lt;p class="number30 alt1 index29 line" style="margin:0;"&gt;30&lt;/p&gt;&lt;p class="number31 index30 alt2 line" style="margin:0;"&gt;31&lt;/p&gt;&lt;p class="index31 alt1 line number32" style="margin:0;"&gt;32&lt;/p&gt;&lt;p class="alt2 index32 number33 line" style="margin:0;"&gt;33&lt;/p&gt;&lt;p class="number34 alt1 index33 line" style="margin:0;"&gt;34&lt;/p&gt;&lt;p class="number35 alt2 line index34" style="margin:0;"&gt;35&lt;/p&gt;&lt;p class="index35 number36 alt1 line" style="margin:0;"&gt;36&lt;/p&gt;&lt;p class="index36 number37 alt2 line" style="margin:0;"&gt;37&lt;/p&gt;&lt;p class="number38 index37 alt1 line" style="margin:0;"&gt;38&lt;/p&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class="code" style="border:0px solid black;"&gt;&lt;p class="container" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;div class="number1 alt2 line index0"&gt;&lt;code class="cpp comments"&gt;/*&lt;/code&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="number2 alt1 index1 line" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;* Application.c&lt;/code&gt;&lt;/p&gt;&lt;p class="number3 index2 alt2 line" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;*&lt;/code&gt;&lt;/p&gt;&lt;p class="index3 number4 alt1 line" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;*&amp;nbsp; Created on: Mar 16, 2014&lt;/code&gt;&lt;/p&gt;&lt;p class="index4 alt2 number5 line" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Author: Erich Styger&lt;/code&gt;&lt;/p&gt;&lt;p class="index5 alt1 line number6" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;*/&lt;/code&gt;&lt;/p&gt;&lt;p class="number7 alt2 index6 line" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="index7 number8 alt1 line" style="margin:0;"&gt;&lt;code class="cpp preprocessor"&gt;#include &amp;quot;Application.h&amp;quot;&lt;/code&gt;&lt;/p&gt;&lt;p class="number9 alt2 line index8" style="margin:0;"&gt;&lt;code class="cpp preprocessor"&gt;#include &amp;quot;LED1.h&amp;quot;&lt;/code&gt;&lt;/p&gt;&lt;p class="alt1 line index9 number10" style="margin:0;"&gt;&lt;code class="cpp preprocessor"&gt;#include &amp;quot;LED2.h&amp;quot;&lt;/code&gt;&lt;/p&gt;&lt;p class="alt2 index10 number11 line" style="margin:0;"&gt;&lt;code class="cpp preprocessor"&gt;#include &amp;quot;LED3.h&amp;quot;&lt;/code&gt;&lt;/p&gt;&lt;p class="alt1 number12 line index11" style="margin:0;"&gt;&lt;code class="cpp preprocessor"&gt;#include &amp;quot;WAIT1.h&amp;quot;&lt;/code&gt;&lt;/p&gt;&lt;p class="number13 alt2 line index12" style="margin:0;"&gt;&lt;code class="cpp preprocessor"&gt;#include &amp;quot;LPTMR_PDD.h&amp;quot;&lt;/code&gt;&lt;/p&gt;&lt;p class="index13 number14 alt1 line" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="index14 number15 alt2 line" style="margin:0;"&gt;&lt;code class="keyword cpp bold"&gt;void&lt;/code&gt; &lt;code class="cpp plain"&gt;APP_OnLLSWakeUpInterrupt(&lt;/code&gt;&lt;code class="keyword cpp bold"&gt;void&lt;/code&gt;&lt;code class="cpp plain"&gt;) {&lt;/code&gt;&lt;/p&gt;&lt;p class="number16 index15 alt1 line" style="margin:0;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp plain"&gt;uint32_t tmp;&lt;/code&gt;&lt;/p&gt;&lt;p class="number17 index16 alt2 line" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="index17 alt1 line number18" style="margin:0;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp plain"&gt;tmp = Cpu_GetLLSWakeUpFlags();&lt;/code&gt;&lt;/p&gt;&lt;p class="alt2 index18 line number19" style="margin:0;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="keyword cpp bold"&gt;if&lt;/code&gt; &lt;code class="cpp plain"&gt;(tmp&amp;amp;LLWU_INT_MODULE0) { &lt;/code&gt;&lt;code class="cpp comments"&gt;/* LPTMR */&lt;/code&gt;&lt;/p&gt;&lt;p class="number20 alt1 index19 line" style="margin:0;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp plain"&gt;LPTMR_PDD_ClearInterruptFlag(LPTMR0_BASE_PTR); &lt;/code&gt;&lt;code class="cpp comments"&gt;/* Clear interrupt flag */&lt;/code&gt;&lt;/p&gt;&lt;p class="alt2 index20 line number21" style="margin:0;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp plain"&gt;}&lt;/code&gt;&lt;/p&gt;&lt;p class="alt1 index21 number22 line" style="margin:0;"&gt;&lt;code class="cpp plain"&gt;}&lt;/code&gt;&lt;/p&gt;&lt;p class="alt2 number23 index22 line" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="number24 alt1 line index23" style="margin:0;"&gt;&lt;code class="keyword cpp bold"&gt;void&lt;/code&gt; &lt;code class="cpp plain"&gt;APP_TimerInterrupt(&lt;/code&gt;&lt;code class="keyword cpp bold"&gt;void&lt;/code&gt;&lt;code class="cpp plain"&gt;) {&lt;/code&gt;&lt;/p&gt;&lt;p class="index24 number25 alt2 line" style="margin:0;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp plain"&gt;LED1_Neg(); &lt;/code&gt;&lt;code class="cpp comments"&gt;/* red LED */&lt;/code&gt;&lt;/p&gt;&lt;p class="index25 number26 alt1 line" style="margin:0;"&gt;&lt;code class="cpp plain"&gt;}&lt;/code&gt;&lt;/p&gt;&lt;p class="number27 index26 alt2 line" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="number28 index27 alt1 line" style="margin:0;"&gt;&lt;code class="keyword cpp bold"&gt;void&lt;/code&gt; &lt;code class="cpp plain"&gt;APP_Run(&lt;/code&gt;&lt;code class="keyword cpp bold"&gt;void&lt;/code&gt;&lt;code class="cpp plain"&gt;) {&lt;/code&gt;&lt;/p&gt;&lt;p class="alt2 index28 line number29" style="margin:0;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp plain"&gt;LED2_On();&lt;/code&gt;&lt;/p&gt;&lt;p class="number30 alt1 index29 line" style="margin:0;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp plain"&gt;WAIT1_Waitms(1000);&lt;/code&gt;&lt;/p&gt;&lt;p class="number31 index30 alt2 line" style="margin:0;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp plain"&gt;LED2_Off();&lt;/code&gt;&lt;/p&gt;&lt;p class="index31 alt1 line number32" style="margin:0;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="keyword cpp bold"&gt;for&lt;/code&gt;&lt;code class="cpp plain"&gt;(;;) {&lt;/code&gt;&lt;/p&gt;&lt;p class="alt2 index32 number33 line" style="margin:0;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp comments"&gt;//LED3_Neg(); /* blue LED */&lt;/code&gt;&lt;/p&gt;&lt;p class="number34 alt1 index33 line" style="margin:0;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp comments"&gt;//Cpu_SetOperationMode(DOM_WAIT, NULL, NULL); /* next interrupt will wake us up */&lt;/code&gt;&lt;/p&gt;&lt;p class="number35 alt2 line index34" style="margin:0;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp comments"&gt;//Cpu_SetOperationMode(DOM_SLEEP, NULL, NULL); /* next interrupt will wake us up */&lt;/code&gt;&lt;/p&gt;&lt;p class="index35 number36 alt1 line" style="margin:0;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp plain"&gt;Cpu_SetOperationMode(DOM_STOP, NULL, NULL); &lt;/code&gt;&lt;code class="cpp comments"&gt;/* next interrupt will wake us up */&lt;/code&gt;&lt;/p&gt;&lt;p class="index36 number37 alt2 line" style="margin:0;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp plain"&gt;}&lt;/code&gt;&lt;/p&gt;&lt;p class="number38 index37 alt1 line" style="margin:0;"&gt;&lt;code class="cpp plain"&gt;}&lt;/code&gt;&lt;/p&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0 0 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;From main() in ProcessorExpert.c I call APP_Run():&lt;/p&gt;&lt;p style="margin:0;padding:0px;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;font-style:normal;font-weight:300;color:#373737;text-align:start;text-indent:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;div class="syntaxhighlighter cpp" style="font-family:inherit;font-style:inherit;font-weight:inherit;"&gt;&lt;table border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="gutter" style="border:0px solid black;"&gt;&lt;div class="number1 alt2 line index0"&gt;1&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="number2 alt1 index1 line" style="margin:0;"&gt;2&lt;/p&gt;&lt;p class="number3 index2 alt2 line" style="margin:0;"&gt;3&lt;/p&gt;&lt;p class="index3 number4 alt1 line" style="margin:0;"&gt;4&lt;/p&gt;&lt;p class="index4 alt2 number5 line" style="margin:0;"&gt;5&lt;/p&gt;&lt;p class="index5 alt1 line number6" style="margin:0;"&gt;6&lt;/p&gt;&lt;p class="number7 alt2 index6 line highlighted" style="margin:0;"&gt;7&lt;/p&gt;&lt;p class="index7 number8 alt1 line" style="margin:0;"&gt;8&lt;/p&gt;&lt;p class="number9 alt2 line index8" style="margin:0;"&gt;9&lt;/p&gt;&lt;p class="alt1 line index9 number10" style="margin:0;"&gt;10&lt;/p&gt;&lt;p class="alt2 index10 number11 line" style="margin:0;"&gt;11&lt;/p&gt;&lt;p class="alt1 number12 line index11" style="margin:0;"&gt;12&lt;/p&gt;&lt;p class="number13 alt2 line index12" style="margin:0;"&gt;13&lt;/p&gt;&lt;p class="index13 number14 alt1 line" style="margin:0;"&gt;14&lt;/p&gt;&lt;p class="index14 number15 alt2 line" style="margin:0;"&gt;15&lt;/p&gt;&lt;p class="number16 index15 alt1 line" style="margin:0;"&gt;16&lt;/p&gt;&lt;p class="number17 index16 alt2 line" style="margin:0;"&gt;17&lt;/p&gt;&lt;p class="index17 alt1 line number18" style="margin:0;"&gt;18&lt;/p&gt;&lt;p class="alt2 index18 line highlighted number19" style="margin:0;"&gt;19&lt;/p&gt;&lt;p class="number20 alt1 index19 line" style="margin:0;"&gt;20&lt;/p&gt;&lt;p class="alt2 index20 line number21" style="margin:0;"&gt;21&lt;/p&gt;&lt;p class="alt1 index21 number22 line" style="margin:0;"&gt;22&lt;/p&gt;&lt;p class="alt2 number23 index22 line" style="margin:0;"&gt;23&lt;/p&gt;&lt;p class="number24 alt1 line index23" style="margin:0;"&gt;24&lt;/p&gt;&lt;p class="index24 number25 alt2 line" style="margin:0;"&gt;25&lt;/p&gt;&lt;p class="index25 number26 alt1 line" style="margin:0;"&gt;26&lt;/p&gt;&lt;p class="number27 index26 alt2 line" style="margin:0;"&gt;27&lt;/p&gt;&lt;p class="number28 index27 alt1 line" style="margin:0;"&gt;28&lt;/p&gt;&lt;p class="alt2 index28 line number29" style="margin:0;"&gt;29&lt;/p&gt;&lt;p class="number30 alt1 index29 line" style="margin:0;"&gt;30&lt;/p&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class="code" style="border:0px solid black;"&gt;&lt;p class="container" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;div class="number1 alt2 line index0"&gt;&lt;code class="cpp preprocessor"&gt;#include &amp;quot;PE_Types.h&amp;quot;&lt;/code&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="number2 alt1 index1 line" style="margin:0;"&gt;&lt;code class="cpp preprocessor"&gt;#include &amp;quot;PE_Error.h&amp;quot;&lt;/code&gt;&lt;/p&gt;&lt;p class="number3 index2 alt2 line" style="margin:0;"&gt;&lt;code class="cpp preprocessor"&gt;#include &amp;quot;PE_Const.h&amp;quot;&lt;/code&gt;&lt;/p&gt;&lt;p class="index3 number4 alt1 line" style="margin:0;"&gt;&lt;code class="cpp preprocessor"&gt;#include &amp;quot;IO_Map.h&amp;quot;&lt;/code&gt;&lt;/p&gt;&lt;p class="index4 alt2 number5 line" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="index5 alt1 line number6" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;/* User includes (#include below this line is not maintained by Processor Expert) */&lt;/code&gt;&lt;/p&gt;&lt;p class="number7 alt2 index6 line highlighted" style="margin:0;"&gt;&lt;code class="cpp preprocessor"&gt;#include &amp;quot;Application.h&amp;quot;&lt;/code&gt;&lt;/p&gt;&lt;p class="index7 number8 alt1 line" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="number9 alt2 line index8" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;/*lint -save&amp;nbsp; -e970 Disable MISRA rule (6.3) checking. */&lt;/code&gt;&lt;/p&gt;&lt;p class="alt1 line index9 number10" style="margin:0;"&gt;&lt;code class="color1 cpp bold"&gt;int&lt;/code&gt; &lt;code class="cpp plain"&gt;main(&lt;/code&gt;&lt;code class="keyword cpp bold"&gt;void&lt;/code&gt;&lt;code class="cpp plain"&gt;)&lt;/code&gt;&lt;/p&gt;&lt;p class="alt2 index10 number11 line" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;/*lint -restore Enable MISRA rule (6.3) checking. */&lt;/code&gt;&lt;/p&gt;&lt;p class="alt1 number12 line index11" style="margin:0;"&gt;&lt;code class="cpp plain"&gt;{&lt;/code&gt;&lt;/p&gt;&lt;p class="number13 alt2 line index12" style="margin:0;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp comments"&gt;/* Write your local variable definition here */&lt;/code&gt;&lt;/p&gt;&lt;p class="index13 number14 alt1 line" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="index14 number15 alt2 line" style="margin:0;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp comments"&gt;/*** Processor Expert internal initialization. DON&amp;#39;T REMOVE THIS CODE!!! ***/&lt;/code&gt;&lt;/p&gt;&lt;p class="number16 index15 alt1 line" style="margin:0;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp plain"&gt;PE_low_level_init();&lt;/code&gt;&lt;/p&gt;&lt;p class="number17 index16 alt2 line" style="margin:0;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp comments"&gt;/*** End of Processor Expert internal initialization.&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;&amp;nbsp; ***/&lt;/code&gt;&lt;/p&gt;&lt;p class="index17 alt1 line number18" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="alt2 index18 line highlighted number19" style="margin:0;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp plain"&gt;APP_Run();&lt;/code&gt;&lt;/p&gt;&lt;p class="number20 alt1 index19 line" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="alt2 index20 line number21" style="margin:0;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp comments"&gt;/*** Don&amp;#39;t write any code pass this line, or it will be deleted during code generation. ***/&lt;/code&gt;&lt;/p&gt;&lt;p class="alt1 index21 number22 line" style="margin:0;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp comments"&gt;/*** RTOS startup code. Macro PEX_RTOS_START is defined by the RTOS component. DON&amp;#39;T MODIFY THIS CODE!!! ***/&lt;/code&gt;&lt;/p&gt;&lt;p class="alt2 number23 index22 line" style="margin:0;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp preprocessor"&gt;#ifdef PEX_RTOS_START&lt;/code&gt;&lt;/p&gt;&lt;p class="number24 alt1 line index23" style="margin:0;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp plain"&gt;PEX_RTOS_START();&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;/code&gt;&lt;code class="cpp comments"&gt;/* Startup of the selected RTOS. Macro is defined by the RTOS component. */&lt;/code&gt;&lt;/p&gt;&lt;p class="index24 number25 alt2 line" style="margin:0;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp preprocessor"&gt;#endif&lt;/code&gt;&lt;/p&gt;&lt;p class="index25 number26 alt1 line" style="margin:0;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp comments"&gt;/*** End of RTOS startup code.&amp;nbsp; ***/&lt;/code&gt;&lt;/p&gt;&lt;p class="number27 index26 alt2 line" style="margin:0;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp comments"&gt;/*** Processor Expert end of main routine. DON&amp;#39;T MODIFY THIS CODE!!! ***/&lt;/code&gt;&lt;/p&gt;&lt;p class="number28 index27 alt1 line" style="margin:0;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="keyword cpp bold"&gt;for&lt;/code&gt;&lt;code class="cpp plain"&gt;(;;){}&lt;/code&gt;&lt;/p&gt;&lt;p class="alt2 index28 line number29" style="margin:0;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp comments"&gt;/*** Processor Expert end of main routine. DON&amp;#39;T WRITE CODE BELOW!!! ***/&lt;/code&gt;&lt;/p&gt;&lt;p class="number30 alt1 index29 line" style="margin:0;"&gt;&lt;code class="cpp plain"&gt;} &lt;/code&gt;&lt;code class="cpp comments"&gt;/*** End of main routine. DO NOT MODIFY THIS TEXT!!! ***/&lt;/code&gt;&lt;/p&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0 0 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;And from Events.c I call my hooks:&lt;/p&gt;&lt;p style="margin:0;padding:0px;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;font-style:normal;font-weight:300;color:#373737;text-align:start;text-indent:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;div class="syntaxhighlighter cpp" style="font-family:inherit;font-style:inherit;font-weight:inherit;"&gt;&lt;table border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="gutter" style="border:0px solid black;"&gt;&lt;div class="number1 alt2 line index0"&gt;1&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="number2 alt1 index1 line" style="margin:0;"&gt;2&lt;/p&gt;&lt;p class="number3 index2 alt2 line" style="margin:0;"&gt;3&lt;/p&gt;&lt;p class="index3 number4 alt1 line" style="margin:0;"&gt;4&lt;/p&gt;&lt;p class="index4 alt2 number5 line" style="margin:0;"&gt;5&lt;/p&gt;&lt;p class="index5 alt1 line number6" style="margin:0;"&gt;6&lt;/p&gt;&lt;p class="number7 alt2 index6 line" style="margin:0;"&gt;7&lt;/p&gt;&lt;p class="index7 number8 alt1 line" style="margin:0;"&gt;8&lt;/p&gt;&lt;p class="number9 alt2 line index8" style="margin:0;"&gt;9&lt;/p&gt;&lt;p class="alt1 line index9 number10" style="margin:0;"&gt;10&lt;/p&gt;&lt;p class="alt2 index10 number11 line" style="margin:0;"&gt;11&lt;/p&gt;&lt;p class="alt1 number12 line index11" style="margin:0;"&gt;12&lt;/p&gt;&lt;p class="number13 alt2 line index12" style="margin:0;"&gt;13&lt;/p&gt;&lt;p class="index13 number14 alt1 line" style="margin:0;"&gt;14&lt;/p&gt;&lt;p class="index14 number15 alt2 line" style="margin:0;"&gt;15&lt;/p&gt;&lt;p class="number16 index15 alt1 line" style="margin:0;"&gt;16&lt;/p&gt;&lt;p class="number17 index16 alt2 line highlighted" style="margin:0;"&gt;17&lt;/p&gt;&lt;p class="index17 alt1 line number18" style="margin:0;"&gt;18&lt;/p&gt;&lt;p class="alt2 index18 line number19" style="margin:0;"&gt;19&lt;/p&gt;&lt;p class="number20 alt1 index19 line" style="margin:0;"&gt;20&lt;/p&gt;&lt;p class="alt2 index20 line number21" style="margin:0;"&gt;21&lt;/p&gt;&lt;p class="alt1 index21 number22 line" style="margin:0;"&gt;22&lt;/p&gt;&lt;p class="alt2 number23 index22 line" style="margin:0;"&gt;23&lt;/p&gt;&lt;p class="number24 alt1 line index23" style="margin:0;"&gt;24&lt;/p&gt;&lt;p class="index24 number25 alt2 line" style="margin:0;"&gt;25&lt;/p&gt;&lt;p class="index25 number26 alt1 line" style="margin:0;"&gt;26&lt;/p&gt;&lt;p class="number27 index26 alt2 line" style="margin:0;"&gt;27&lt;/p&gt;&lt;p class="number28 index27 alt1 line" style="margin:0;"&gt;28&lt;/p&gt;&lt;p class="alt2 index28 line number29" style="margin:0;"&gt;29&lt;/p&gt;&lt;p class="number30 alt1 index29 line" style="margin:0;"&gt;30&lt;/p&gt;&lt;p class="number31 index30 alt2 line" style="margin:0;"&gt;31&lt;/p&gt;&lt;p class="index31 alt1 line number32" style="margin:0;"&gt;32&lt;/p&gt;&lt;p class="alt2 index32 number33 line" style="margin:0;"&gt;33&lt;/p&gt;&lt;p class="number34 alt1 index33 line" style="margin:0;"&gt;34&lt;/p&gt;&lt;p class="number35 alt2 line index34" style="margin:0;"&gt;35&lt;/p&gt;&lt;p class="index35 number36 alt1 line" style="margin:0;"&gt;36&lt;/p&gt;&lt;p class="index36 number37 alt2 line" style="margin:0;"&gt;37&lt;/p&gt;&lt;p class="number38 index37 alt1 line" style="margin:0;"&gt;38&lt;/p&gt;&lt;p class="number39 index38 alt2 line" style="margin:0;"&gt;39&lt;/p&gt;&lt;p class="number40 index39 alt1 line highlighted" style="margin:0;"&gt;40&lt;/p&gt;&lt;p class="number41 index40 alt2 line" style="margin:0;"&gt;41&lt;/p&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class="code" style="border:0px solid black;"&gt;&lt;p class="container" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;div class="number1 alt2 line index0"&gt;&lt;code class="cpp comments"&gt;/*&lt;/code&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="number2 alt1 index1 line" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;** ===================================================================&lt;/code&gt;&lt;/p&gt;&lt;p class="number3 index2 alt2 line" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;**&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Event&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :&amp;nbsp; TI1_OnInterrupt (module Events)&lt;/code&gt;&lt;/p&gt;&lt;p class="index3 number4 alt1 line" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;**&lt;/code&gt;&lt;/p&gt;&lt;p class="index4 alt2 number5 line" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;**&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Component&amp;nbsp;&amp;nbsp; :&amp;nbsp; TI1 [TimerInt]&lt;/code&gt;&lt;/p&gt;&lt;p class="index5 alt1 line number6" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;**&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Description :&lt;/code&gt;&lt;/p&gt;&lt;p class="number7 alt2 index6 line" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;**&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; When a timer interrupt occurs this event is called (only&lt;/code&gt;&lt;/p&gt;&lt;p class="index7 number8 alt1 line" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;**&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; when the component is enabled -&amp;nbsp; and the events are&lt;/code&gt;&lt;/p&gt;&lt;p class="number9 alt2 line index8" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;**&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; enabled - ). This event is enabled only if a&lt;/code&gt;&lt;/p&gt;&lt;p class="alt1 line index9 number10" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;**&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; is enabled.&lt;/code&gt;&lt;/p&gt;&lt;p class="alt2 index10 number11 line" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;**&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Parameters&amp;nbsp; : None&lt;/code&gt;&lt;/p&gt;&lt;p class="alt1 number12 line index11" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;**&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Returns&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : Nothing&lt;/code&gt;&lt;/p&gt;&lt;p class="number13 alt2 line index12" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;** ===================================================================&lt;/code&gt;&lt;/p&gt;&lt;p class="index13 number14 alt1 line" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;*/&lt;/code&gt;&lt;/p&gt;&lt;p class="index14 number15 alt2 line" style="margin:0;"&gt;&lt;code class="keyword cpp bold"&gt;void&lt;/code&gt; &lt;code class="cpp plain"&gt;TI1_OnInterrupt(&lt;/code&gt;&lt;code class="keyword cpp bold"&gt;void&lt;/code&gt;&lt;code class="cpp plain"&gt;)&lt;/code&gt;&lt;/p&gt;&lt;p class="number16 index15 alt1 line" style="margin:0;"&gt;&lt;code class="cpp plain"&gt;{&lt;/code&gt;&lt;/p&gt;&lt;p class="number17 index16 alt2 line highlighted" style="margin:0;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp plain"&gt;APP_TimerInterrupt();&lt;/code&gt;&lt;/p&gt;&lt;p class="index17 alt1 line number18" style="margin:0;"&gt;&lt;code class="cpp plain"&gt;}&lt;/code&gt;&lt;/p&gt;&lt;p class="alt2 index18 line number19" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="number20 alt1 index19 line" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;/*&lt;/code&gt;&lt;/p&gt;&lt;p class="alt2 index20 line number21" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;** ===================================================================&lt;/code&gt;&lt;/p&gt;&lt;p class="alt1 index21 number22 line" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;**&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Event&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :&amp;nbsp; Cpu_OnLLSWakeUpINT (module Events)&lt;/code&gt;&lt;/p&gt;&lt;p class="alt2 number23 index22 line" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;**&lt;/code&gt;&lt;/p&gt;&lt;p class="number24 alt1 line index23" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;**&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Component&amp;nbsp;&amp;nbsp; :&amp;nbsp; Cpu [MKL25Z128LK4]&lt;/code&gt;&lt;/p&gt;&lt;p class="index24 number25 alt2 line" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;*/&lt;/code&gt;&lt;/p&gt;&lt;p class="index25 number26 alt1 line" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;/*!&lt;/code&gt;&lt;/p&gt;&lt;p class="number27 index26 alt2 line" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;**&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @brief&lt;/code&gt;&lt;/p&gt;&lt;p class="number28 index27 alt1 line" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;**&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This event is called when Low Leakage WakeUp interrupt&lt;/code&gt;&lt;/p&gt;&lt;p class="alt2 index28 line number29" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;**&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; occurs. LLWU flags indicating source of the wakeup can be&lt;/code&gt;&lt;/p&gt;&lt;p class="number30 alt1 index29 line" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;**&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; obtained by calling the [GetLLSWakeUpFlags] method. Flags&lt;/code&gt;&lt;/p&gt;&lt;p class="number31 index30 alt2 line" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;**&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; indicating the external pin wakeup source are automatically&lt;/code&gt;&lt;/p&gt;&lt;p class="index31 alt1 line number32" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;**&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cleared after this event is executed. It is responsibility&lt;/code&gt;&lt;/p&gt;&lt;p class="alt2 index32 number33 line" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;**&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; of user to clear flags corresponding to internal modules.&lt;/code&gt;&lt;/p&gt;&lt;p class="number34 alt1 index33 line" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;**&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This event is automatically enabled when [LLWU interrupt&lt;/code&gt;&lt;/p&gt;&lt;p class="number35 alt2 line index34" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;**&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; request] is enabled.&lt;/code&gt;&lt;/p&gt;&lt;p class="index35 number36 alt1 line" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;*/&lt;/code&gt;&lt;/p&gt;&lt;p class="index36 number37 alt2 line" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;/* ===================================================================*/&lt;/code&gt;&lt;/p&gt;&lt;p class="number38 index37 alt1 line" style="margin:0;"&gt;&lt;code class="keyword cpp bold"&gt;void&lt;/code&gt; &lt;code class="cpp plain"&gt;Cpu_OnLLSWakeUpINT(&lt;/code&gt;&lt;code class="keyword cpp bold"&gt;void&lt;/code&gt;&lt;code class="cpp plain"&gt;)&lt;/code&gt;&lt;/p&gt;&lt;p class="number39 index38 alt2 line" style="margin:0;"&gt;&lt;code class="cpp plain"&gt;{&lt;/code&gt;&lt;/p&gt;&lt;p class="number40 index39 alt1 line highlighted" style="margin:0;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp plain"&gt;APP_OnLLSWakeUpInterrupt();&lt;/code&gt;&lt;/p&gt;&lt;p class="number41 index40 alt2 line" style="margin:0;"&gt;&lt;code class="cpp plain"&gt;}&lt;/code&gt;&lt;/p&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h1 style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;font-style:normal;font-weight:bold;margin:0 0 0.8125em;color:#000000;text-align:start;text-indent:0px;"&gt;Summary&lt;/h1&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0 0 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;This application shows how to set up an application for Low Power LLS mode, in a bare-metal mode. So it should be useful for you if you want to have a starting point for your own project without an RTOS.&lt;/p&gt;&lt;p style="margin:0;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0 0 1.625em;color:#373737;text-align:start;text-indent:0px;"&gt;The project and sources are available on&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;a class="jive-link-external-small" href="https://github.com/ErichStyger/mcuoneclipse/tree/master/Examples/FRDM-KL25Z/FRDM-KL25Z_LowPower_LLS" rel="nofollow ugc noopener" style="font-family:inherit;font-size:15px;font-style:inherit;font-weight:inherit;color:#1982d1;" target="_blank"&gt;GitHub&lt;/a&gt;.&lt;/p&gt;&lt;p style="margin:0;padding:0px;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-size:15px;font-style:normal;font-weight:300;margin:0 0 1.625em;color:#373737;text-align:start;text-indent: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:#ff6600;font-size:10pt;font-family:inherit;font-weight:inherit;"&gt;&lt;em style="text-indent:0px;text-align:start;color:#373737;font-style:normal;font-size:15px;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, sans-serif;font-weight:300;"&gt;&lt;br /&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>OpenSDA Update Instructions for Freescale Freedom Development Boards for Windows 8.1 and Linux</title><link>https://community.element14.com/products/devtools/kinetiskl2freedomboard/w/documents/16812/opensda-update-instructions-for-freescale-freedom-development-boards-for-windows-8-1-and-linux</link><pubDate>Fri, 08 Oct 2021 07:48:09 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:70fe7c33-cf36-4fdf-9c00-6605af1b774d</guid><dc:creator>Yiying</dc:creator><description>Current Revision posted to Documents by Yiying on 10/8/2021 7:48:09 AM&lt;br /&gt;
&lt;p style="margin:0;text-align:justify;"&gt;&lt;span style="font-size:11pt;"&gt;Here is how to update the OpenSDA bootloader firmware found on Freescale Freedom boards. Older bootloader firmware revisions did not load OpenSDA apps correctly under Linux or Windows 8.1, and thus a firmware upgrade is required for users working in those environments. If OpenSDA is not working, this is most likely the issue. This update is for the bootloader firmware that lets you drag-and-drop new apps onto OpenSDA.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;text-align:justify;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;text-align:justify;"&gt;&lt;span style="font-size:11pt;"&gt;For an overview of what OpenSDA is, see the &lt;a class="jive-link-external-small" href="/products/devtools/kinetiskl2freedomboard/w/documents/10470/review-opensda-debug-interface-embedded-in-the-freescale-freedom-development-platform" target="_blank"&gt;OpenSDA overview&lt;/a&gt;. Also review the &lt;a class="jive-link-external-small" href="/products/devtools/technicallibrary/m/files/12699" target="_blank"&gt;OpenSDA User’s Guide&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;text-align:justify;"&gt;&amp;nbsp;&lt;/p&gt;&lt;h2&gt;Determine the OpenSDA Firmware Revision:&lt;/h2&gt;&lt;p style="margin:0;padding:0px;text-align:justify;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;text-align:justify;"&gt;&lt;span style="font-size:11pt;"&gt;Different Freedom boards will have different OpenSDA bootloader firmware revisions. Some boards will work out-of-the-box in Linux, while others will &lt;/span&gt;&lt;span style="font-size:11pt;"&gt;require an upgrade. At the time of this writing, bootloader version 1.11 is the latest firmware.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;text-align:justify;"&gt;&amp;nbsp;&lt;/p&gt;&lt;ol&gt;&lt;li style="text-align:justify;"&gt;&lt;span style="font-size:11pt;"&gt;Hold down the reset button on your FRDM board&lt;/span&gt;&lt;/li&gt;&lt;li style="text-align:justify;"&gt;&lt;span style="font-size:11pt;"&gt;While holding the button down, plug the USB cable into OpenSDA USB socket, and then release the reset button&lt;/span&gt;&lt;/li&gt;&lt;li style="text-align:justify;"&gt;&lt;span style="font-size:11pt;"&gt;The board will enumerate as BOOTLOADER&lt;/span&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/168x76/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_29412.png"&gt;&lt;img alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/contentimage_29412.png-168x76.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=C57%2BMX5qxmMnsVR6ah3FyKPx0ie73oJFRaHs5x%2FffpA%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=VYc3UHohbdiMqmNuBT7isA==" style="max-height: 76px;max-width: 168px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li style="text-align:justify;"&gt;&lt;span style="font-size:11pt;"&gt;Explore the new drive, and double click on &lt;strong&gt;SDA_INFO.HTM&lt;/strong&gt; to see your current firmware revision.&lt;/span&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/591x100/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_29413.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/contentimage_29413.png-591x100.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=Vaacy7W9iEmTywIB3gn%2B6o7%2BkUqF1n%2Bvn7cyRenJICI%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=ax1fpL+6givKJIb8Xz5dew==" style="max-height: 100px;max-width: 591px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li style="text-align:justify;"&gt;&lt;span style="font-size:11pt;"&gt;You can see in this example, the bootloader firmware version is 1.10&lt;/span&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/408x382/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_29414.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/contentimage_29414.png-408x382.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=HIi3uh22BonIeDtEph7cPcIOgC%2B%2FmkAUIyZkwEbkZMs%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=r41mAQ4UcRMOvhY0oc0NOA==" style="max-height: 382px;max-width: 408px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p style="margin:0;padding:0px;text-align:justify;"&gt;&amp;nbsp;&lt;/p&gt;&lt;h2&gt;Upgrade the OpenSDA Firmware:&lt;/h2&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;text-align:justify;"&gt;&lt;span style="font-size:11pt;"&gt;If you are not running the latest firmware and need to use the board with Linux or Windows 8.1, you need to then update the firmware. &lt;strong&gt;You must do this on an OS supported by the current firmware version on your board (typically Windows XP/Vista/7).&lt;/strong&gt; However after this one initial time, the board will be usable from then on in any OS environment.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;text-align:justify;"&gt;&amp;nbsp;&lt;/p&gt;&lt;ol&gt;&lt;li style="text-align:left;"&gt;&lt;span style="font-size:11pt;"&gt;Download the latest &lt;a class="jive-link-external-small" href="http://www.pemicro.com/opensda" rel="nofollow ugc noopener" target="_blank"&gt;OpenSDA Firmware Apps zip&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="text-align:left;"&gt;&lt;span style="font-size:11pt;"&gt;Read the &lt;strong&gt;BOOTUPDATEAPP_release_notes.txt&lt;/strong&gt; file&lt;/span&gt;&lt;/li&gt;&lt;li style="text-align:left;"&gt;&lt;span style="font-size:11pt;"&gt;Extract the &lt;strong&gt;OpenSDA_Bootloader_Update_App_v111_2013_12_11.zip&lt;/strong&gt; inside the original zip file to get access to &lt;strong&gt;BOOTUPDATEAPP_Pemicro_v111.SDA&lt;/strong&gt;&lt;/span&gt;&lt;/li&gt;&lt;li style="text-align:left;"&gt;&lt;span style="font-size:11pt;"&gt;Hold down the reset button on your FRDM board&lt;/span&gt;&lt;/li&gt;&lt;li style="text-align:left;"&gt;&lt;span style="font-size:11pt;"&gt;While holding the button down, plug the USB cable into OpenSDA USB socket, and then release the reset button&lt;/span&gt;&lt;/li&gt;&lt;li style="text-align:left;"&gt;&lt;span style="font-size:11pt;"&gt;The board will enumerate as BOOTLOADER&lt;/span&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/128x128/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_29415.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/contentimage_29415.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=a2bLvQK%2BXK8Qdle5PK0vb4gLgsIMg7oIP9m0Tz5rXW4%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=U1igM8KVYB38Ghac57FC/g==" style="max-height: 128px;max-width: 128px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li style="text-align:left;"&gt;&lt;span style="font-size:11pt;"&gt;Drag and drop the &lt;strong&gt;BOOTUPDATEAPP_Pemicro_V111.SDA&lt;/strong&gt; file into the BOOTLOADER drive&lt;/span&gt;&lt;/li&gt;&lt;li style="text-align:left;"&gt;&lt;span style="font-size:11pt;"&gt;After it finishes copying, unplug the FRDM board, and then replug it back in. This is the point where the bootloader firmware is updated.&lt;/span&gt;&lt;/li&gt;&lt;li style="text-align:left;"&gt;&lt;span style="font-size:11pt;"&gt;Wait for it to enumerate as a drive labeled BOOTLOADER (this will happen automatically and reset should not be held down during this process)&lt;/span&gt;&lt;p style="margin:0;"&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/contentimage_5F00_29416.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/contentimage_29416.png-16x16.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=f4o%2F%2FRYK22UW4g%2B47fzi89VdPwfC0dPqBBd5l74MvJk%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=EWJu22e1kVhYo5GNM4fzPw==" style="max-height: 16px;max-width: 16px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li style="text-align:left;"&gt;&lt;span style="font-size:11pt;"&gt;Open up the drive and double click on &lt;strong&gt;SDA_INFO.HTM&lt;/strong&gt; to ensure the bootloader is now updated to 1.11&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p style="margin:0;padding:0px;text-align:justify;"&gt;&amp;nbsp;&lt;/p&gt;&lt;h2&gt;Load an OpenSDA application:&lt;/h2&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;text-align:justify;"&gt;&lt;span style="font-size:11pt;"&gt;The bootloader firmware update process will erase the previous OpenSDA application you had loaded, so you will need to load it again using the standard application loading process. Starting with v1.14, the Mass Storage Device (MSD) flash programmer application also includes P&amp;amp;E debug and serial capabilities. So there is no need to load separate OpenSDA applications for these features anymore.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;text-align:justify;"&gt;&amp;nbsp;&lt;/p&gt;&lt;ol&gt;&lt;li style="text-align:justify;"&gt;&lt;span style="font-size:11pt;"&gt;Hold down the reset button on your FRDM board&lt;/span&gt;&lt;/li&gt;&lt;li style="text-align:justify;"&gt;&lt;span style="font-size:11pt;"&gt;While holding the button down, plug the USB cable into OpenSDA USB socket, and then release the reset button&lt;/span&gt;&lt;/li&gt;&lt;li style="text-align:justify;"&gt;&lt;span style="font-size:11pt;"&gt;The board will enumerate as BOOTLOADER&lt;/span&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/450x600/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_29417.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/contentimage_29417.jpg-450x600.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=zAxAaNcmxH7%2FORpSqOfOHU9Bbf36C6jYWsZqzawk2pA%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=tgEU8z6Hnikn6505pkBrkQ==" style="max-height: 600px;max-width: 450px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li style="text-align:justify;"&gt;&lt;span style="font-size:11pt;"&gt;Drag and drop the appropriate OpenSDA application from the &lt;a class="jive-link-external-small" href="http://www.pemicro.com/opensda" rel="nofollow ugc noopener" target="_blank"&gt;OpenSDA Firmware Apps zip&lt;/a&gt; downloaded earlier (such as MSD-DEBUG-FRDM-KL26Z_Pemicro_v114.SDA for a FRDM-KL26Z board) into the BOOTLOADER drive&lt;/span&gt;&lt;/li&gt;&lt;li style="text-align:justify;"&gt;&lt;span style="font-size:11pt;"&gt;Wait for it to copy&lt;/span&gt;&lt;/li&gt;&lt;li style="text-align:justify;"&gt;&lt;span style="font-size:11pt;"&gt;Unplug, then re-plug in the board&lt;/span&gt;&lt;/li&gt;&lt;li style="text-align:justify;"&gt;&lt;span style="font-size:11pt;"&gt;Now the OpenSDA MSD/Debug/CDC app will run (you will see a FRDM-KL26Z drive come up)&lt;/span&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/53x70/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_29418.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/contentimage_29418.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=nvikk4Lj0KVl7hvoHQLjyjco2qRf6WPAJCO%2FUyXppBg%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=LtIEo3aXMU18nwQdAStCPw==" style="max-height: 70px;max-width: 53px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item><item><title>Tutorial for FRDM-KL25Z: Using the FRDM-KL25Z as Low Power Board</title><link>https://community.element14.com/products/devtools/kinetiskl2freedomboard/w/documents/16275/tutorial-for-frdm-kl25z-using-the-frdm-kl25z-as-low-power-board</link><pubDate>Fri, 08 Oct 2021 07:32:32 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:368e651c-9d23-4755-9c61-bf1eb34024f0</guid><dc:creator>FreescaleTools_and_Software</dc:creator><description>Current Revision posted to Documents by FreescaleTools_and_Software on 10/8/2021 7:32:32 AM&lt;br /&gt;
&lt;p style="margin:0;text-align:left;background-color:#ffffff;text-indent:0px;color:#333333;"&gt;&lt;span style="color:#ff6600;font-size:15px;font-family:tahoma, arial, helvetica, sans-serif;"&gt;&lt;em&gt;There will be a Freescale app note covering this topic, but in the meantime the tutorial below walks through the steps in lowering the power consumption of their Freedom board.&lt;br /&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;text-align:left;background-color:#ffffff;text-indent:0px;color:#333333;"&gt;&lt;span style="color:#ff6600;font-size:15px;font-family:tahoma, arial, helvetica, sans-serif;"&gt;&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;text-align:left;background-color:#ffffff;text-indent:0px;color:#333333;"&gt;&lt;span style="color:#ff6600;font-size:15px;font-family:tahoma, arial, helvetica, sans-serif;"&gt;&lt;em&gt;This tutorial was extracted from Erich Styger&amp;#39;s blog&lt;span class="Apple-converted-space" style="font-size:15px;"&gt;&lt;span class="Apple-converted-space" style="font-size:15px;"&gt;&lt;span class="Apple-converted-space" style="font-size:15px;"&gt;&lt;span class="Apple-converted-space" style="font-size:15px;"&gt;&lt;span class="Apple-converted-space" style="font-size:15px;"&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a class="jive-link-external-small" href="http://mcuoneclipse.wordpress.com/" rel="nofollow" style="color:#355491;font-size:15px;text-decoration:underline;" target="_blank"&gt;http://mcuoneclipse.wordpress.com&lt;/a&gt;&lt;span class="Apple-converted-space" style="font-size:15px;"&gt;&lt;span class="Apple-converted-space" style="font-size:15px;"&gt;&lt;span class="Apple-converted-space" style="font-size:15px;"&gt;&lt;span class="Apple-converted-space" style="font-size:15px;"&gt;&lt;span class="Apple-converted-space" style="font-size:15px;"&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;with his agreement.&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="/servlet/JiveServlet/downloadImage/102-54862-1-160635/Freescale.bmp" style="color:#355491;font-size:12px;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/175x85/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_28083.bmp"&gt;&lt;img alt="image" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_28083.bmp" style="max-height: 85px;max-width: 175px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/a&gt;&lt;a href="/servlet/JiveServlet/downloadImage/102-54862-1-160636/Kinetis-L.jpg" style="color:#355491;font-size:12px;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/87x85/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_28084.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/contentimage_28084.jpg-87x85.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=TEP1y6xKhYlRSshxpDe2Mq2wscpU4fUQ6SalUh8Dx9M%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=lw3vl9FqzfR9tHJgP7g6Lg==" style="max-height: 85px;max-width: 87px;" /&gt;&lt;/a&gt;&lt;/span&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;"&gt;The FRDM-KL25Z is a great board: inexpensive (around US$15), small form factor, has easily accessible pins, and has a low power (capable, at least) microcontroller, and comes with an embedded debugging interface. So why not using this board right away ‘as is’ for a low power battery operated device? Great idea, you think? Yes, I thought too. Only to find out that the board needs 20 mA out of the box.&lt;/p&gt;&lt;p style="margin:0;"&gt;The good news is: It is possible on a week-end to get this 150 times better down to 132 μA, with an RTOS running all the time &lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g"&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; . I invite you to join a journey with board modifications, jumpers, schematics and many multimeter pictures &lt;a href="http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif?m=1129645325g"&gt;&lt;img loading="lazy" alt=";-)" class="jiveImage wp-smiley" src="http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif?m=1129645325g" /&gt;&lt;/a&gt; ….&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/10/132-micro-amps.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="132 micro amps" class="jiveImage size-full wp-image-9659" src="http://mcuoneclipse.files.wordpress.com/2013/10/132-micro-amps.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;132 micro amps!&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;h1&gt;Preface&lt;/h1&gt;&lt;p style="margin:0;"&gt;Why do I want to use the FRDM-KL25Z as a battery operated device? I’m working on a data logger/weather station project: It features a barometric absolute pressure sensor, and I²C external EEPROM and the &lt;a class="jive-link-external-small" href="http://mcuoneclipse.com/2013/07/20/tutorial-ultra-low-cost-2-4-ghz-wireless-transceiver-with-the-frdm-board/" rel="nofollow ugc noopener" target="_blank" title="Tutorial: Ultra Low Cost 2.4 GHz Wireless Transceiver with the FRDM Board"&gt;nRF24L01+&lt;/a&gt; wireless transceiver. The &lt;a class="jive-link-external-small" href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=FRDM-KL25Z" rel="nofollow ugc noopener" target="_blank"&gt;Freescale FRDM-KL25Z board&lt;/a&gt; is great to start with: it is small and provides easy access to all signals, so I can build up my design with bread boards:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/10/data-logger-bread-boarding.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Data Logger Bread Boarding" class="jiveImage wp-image-9606 size-full" height="439" src="http://mcuoneclipse.files.wordpress.com/2013/10/data-logger-bread-boarding.png?w=584&amp;amp;h=439" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;Data Logger Bread Boarding&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;h1&gt;Bread Boarding the Data Logger System&lt;/h1&gt;&lt;p style="margin:0;"&gt;Yes, the wiring in the picture looks messy, but it allows quick prototyping and inspection of signals with a logic analyzer.&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_idea.gif?m=1129645325g"&gt;&lt;img loading="lazy" alt=":idea:" class="jiveImage wp-smiley" src="http://s0.wp.com/wp-includes/images/smilies/icon_idea.gif?m=1129645325g" /&gt;&lt;/a&gt; I get frequent questions and requests about “my SCI, SPI or I2C communication is not working!”: A logic analyzer or oscilloscope is something you should own. Without a logic analyzer, you likely will waste many, many hours. If you do not want to spend around $100 for professional tools, then I recommend you buy at least a $15 FRDM-KL25Z board and use it as a logic analyzer, see &lt;a class="jive-link-external-small" href="http://mcuoneclipse.com/2013/03/24/freedom-logic-analyzer-with-dma/" rel="nofollow ugc noopener" target="_blank" title="Freedom Logic Analyzer with DMA"&gt;this post&lt;/a&gt;.&lt;/p&gt;&lt;/blockquote&gt;&lt;p style="margin:0;"&gt;The system has following main parts:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Microchip &lt;a class="jive-link-external-small" href="http://mcuoneclipse.com/2013/08/18/driver-for-microchip-24xx-serial-eeprom/" rel="nofollow ugc noopener" target="_blank" title="Driver for Microchip 24xx Serial EEPROM"&gt;24AA external I²C EEPROM&lt;/a&gt; to store data values and configuration data. Data is stored in the EEPROM until it is transmitted over the wireless transceiver.&lt;/li&gt;&lt;li&gt;&lt;a class="jive-link-external-small" href="http://mcuoneclipse.com/2013/07/20/tutorial-ultra-low-cost-2-4-ghz-wireless-transceiver-with-the-frdm-board/" rel="nofollow ugc noopener" target="_blank" title="Tutorial: Ultra Low Cost 2.4 GHz Wireless Transceiver with the FRDM Board"&gt;Nordic Semiconductor nRF24L01+ wireless transceiver&lt;/a&gt; for connectivity.&lt;/li&gt;&lt;li&gt;&lt;a class="jive-link-external-small" href="http://www.meas-spec.com/product/pressure/MS5607-02BA03.aspx" rel="nofollow ugc noopener" target="_blank"&gt;MEAS MS5607&lt;/a&gt; I²C digital absolute pressure sensor.&lt;/li&gt;&lt;li&gt;ARM Cortex-M0+ processor on the FRDM-KL25Z.&lt;/li&gt;&lt;/ol&gt;&lt;p style="margin:0;"&gt;I want to use a Cortex M0+ because of the low power characteristics of my application: The KL25Z is over-powered for my final design, but gives me a powerful development platform. And with using Processor Expert as hardware abstraction it allows me to change the processor later very easily: it will be just a different configuration made with a few mouse click &lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g"&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;/p&gt;&lt;p style="margin:0;"&gt;The question is: how to use the FRDM-KL25Z to help with developing a battery operated low power embedded application?&lt;/p&gt;&lt;p style="margin:0;"&gt;My plan is the following:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Breadboard setup of the system with the FRDM-KL25Z: this allows me to develop the software with all the needed hardware.&lt;/li&gt;&lt;li&gt;Developing a simple ‘Arduino’ shield for the FRDM-KL25Z which has all the external parts (pressure sensor, EEPROM, transceiver) on it. This system will be battery operated and allows me to make long time measurement of the system.&lt;/li&gt;&lt;li&gt;And finally to develop my board with another microprocessor on it (most likely a KL02 or KL05). In this stage I do not need the FRDM-KL25Z any more.&lt;/li&gt;&lt;/ol&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;h1&gt;Low Power (not ‘Ultra-Low-Power’)&lt;/h1&gt;&lt;p style="margin:0;"&gt;The final system will be battery operated, so I need to make sure it uses as few energy as possible. Or better: that it uses as few energy as reasonable possible. And this means that the system shall consume less than 1 mA in average. Yes, this is not one of these ‘ultra-low-power’ applications. Silicon vendors advertise ‘nano-ampere’ solutions, but for many applications they are never achievable: to me these benchmarks are not realistic, as they assume that the processor is alive maybe one second every day? But my system needs to continuously measure and communicate several days a day. So a 99.9% inactivity is not achievable.&lt;/p&gt;&lt;p style="margin:0;"&gt;Silicon vendors build in multiple low power modes into their microcontroller: unfortunately many modes are easily usable waking up from the ultra-low-power modes is like a power-on-reset: all your SRAM is gone, and the peripherals and pin states are gone too. Such ultra-low-power modes are cool for a ‘dumb’ application, but were hard to deal with a more complex system where for example an operating system is running. Just to set the stage &lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g"&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;/p&gt;&lt;p style="margin:0;"&gt;There is a lot which can be done to cut the power consumption, without impacting the application functionality or usability. The wireless transceiver, pressure sensor and EEPROM do not have critical power consumption in my design. What is critical is the processor: I need to get it down to below 0.5 mA. And do not want to switch the processor completely off: it shall run the operating (FreeRTOS) RTOS all the time &lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g"&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;/p&gt;&lt;h1&gt;&lt;/h1&gt;&lt;h1&gt;&lt;/h1&gt;&lt;h1&gt;FRDM-KL25Z RevE&lt;/h1&gt;&lt;p style="margin:0;"&gt;For my experiments, I’m using the &lt;a class="jive-link-external-small" href="http://mcuoneclipse.com/2013/06/09/frdm-kl25z-reve-board-arrived/" rel="nofollow ugc noopener" target="_blank" title="FRDM-KL25Z RevE Board arrived"&gt;RevE version of the FRDM-KL25Z&lt;/a&gt; board. Compared to the earlier RevD it has a newer silicon plus jumpers to disconnect better parts on the board to reduce the power consumption. And I’m using &lt;a class="jive-link-external-small" href="http://mcuoneclipse.com/2013/09/23/new-codewarrior-for-mcu10-5/" rel="nofollow ugc noopener" target="_blank" title="New CodeWarrior for MCU10.5"&gt;CodeWarrior for MCU10.5&lt;/a&gt; with Processor Expert:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Processor Expert makes it easier to deal with the low power modes: no need to spend many hours reading to silicon reference manual to understand all the different low power modes. And it makes it really easy to move to another processor later.&lt;/li&gt;&lt;li&gt;CodeWarrior debugger nicely is able to debug low power modes. Unlike other debuggers, it keeps the connection with the target under debug even if the microcontroller is in low power modes.&lt;/li&gt;&lt;/ul&gt;&lt;h1&gt;&lt;/h1&gt;&lt;h1&gt;&lt;/h1&gt;&lt;h1&gt;Test Setup&lt;/h1&gt;&lt;p style="margin:0;"&gt;To keep things simple in a first phase, I measure only the power consumed by the FRDM-KL25Z (and ignore the external sensors/etc). &lt;a href="http://mcuoneclipse.files.wordpress.com/2013/10/test-setup.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Test Setup" class="jiveImage size-full wp-image-9610" src="http://mcuoneclipse.files.wordpress.com/2013/10/test-setup.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;Test Setup&lt;/p&gt;&lt;p style="margin:0;"&gt;In my system I use a microcontroller voltage of 3.3V. Reducing the Vdd voltage usually has positive (square) impact. In my experiments I’m not going to reduce the Vdd. I instead focus on disabling unused board components, reducing clock speed and using low power modes.&lt;/p&gt;&lt;p style="margin:0;"&gt;The FRDM-KL25Z board runs a stripped down version of my application (just without the sensor and wireless application pats. I’m using a technique with ‘platform macros’ to enable/disable application functions:&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;div class="syntaxhighlighter cpp"&gt;&lt;table border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="gutter" style="border:0px solid black;"&gt;&lt;div class="number1 alt2 line index0"&gt;1&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="number2 alt1 index1 line" style="margin:0;"&gt;2&lt;/p&gt;&lt;p class="number3 index2 alt2 line" style="margin:0;"&gt;3&lt;/p&gt;&lt;p class="index3 number4 alt1 line" style="margin:0;"&gt;4&lt;/p&gt;&lt;p class="index4 alt2 number5 line" style="margin:0;"&gt;5&lt;/p&gt;&lt;p class="index5 alt1 line number6" style="margin:0;"&gt;6&lt;/p&gt;&lt;p class="number7 alt2 index6 line" style="margin:0;"&gt;7&lt;/p&gt;&lt;p class="index7 number8 alt1 line" style="margin:0;"&gt;8&lt;/p&gt;&lt;p class="number9 alt2 line index8" style="margin:0;"&gt;9&lt;/p&gt;&lt;p class="alt1 line index9 number10" style="margin:0;"&gt;10&lt;/p&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class="code" style="border:0px solid black;"&gt;&lt;p class="container" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;div class="number1 alt2 line index0"&gt;&lt;code class="cpp preprocessor"&gt;#ifndef PLATFORM_H_&lt;/code&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="number2 alt1 index1 line" style="margin:0;"&gt;&lt;code class="cpp preprocessor"&gt;#define PLATFORM_H_&lt;/code&gt;&lt;/p&gt;&lt;p class="number3 index2 alt2 line" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="index3 number4 alt1 line" style="margin:0;"&gt;&lt;code class="cpp preprocessor"&gt;#define PL_BOARD_IS_FRDM 1&lt;/code&gt;&lt;/p&gt;&lt;p class="index4 alt2 number5 line" style="margin:0;"&gt;&lt;code class="cpp preprocessor"&gt;#define PL_HAS_LOW_POWER 1&lt;/code&gt;&lt;/p&gt;&lt;p class="index5 alt1 line number6" style="margin:0;"&gt;&lt;code class="cpp preprocessor"&gt;#define PL_HAS_SHELL&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/code&gt;&lt;/p&gt;&lt;p class="number7 alt2 index6 line" style="margin:0;"&gt;&lt;code class="cpp preprocessor"&gt;#define PL_HAS_LED&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/code&gt;&lt;/p&gt;&lt;p class="index7 number8 alt1 line" style="margin:0;"&gt;&lt;code class="cpp preprocessor"&gt;#define PL_HAS_RTOS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/code&gt;&lt;/p&gt;&lt;p class="number9 alt2 line index8" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="alt1 line index9 number10" style="margin:0;"&gt;&lt;code class="cpp preprocessor"&gt;#endif /* PLATFORM_H_ */&lt;/code&gt;&lt;/p&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h1&gt;&lt;/h1&gt;&lt;h1&gt;Board Power Measurement Jumpers&lt;/h1&gt;&lt;p style="margin:0;"&gt;The FRDM-KL25Z RevE board has two jumpers (J3 and J4) to measure the power used by the KL25Z and/or the power used by the K20 for the OpenSDA debug interface:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/10/j3-and-j4-on-frdm-kl25z.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="J3 and J4 on FRDM-KL25Z (Source: Freescale)" class="jiveImage wp-image-9618 size-full" height="199" src="http://mcuoneclipse.files.wordpress.com/2013/10/j3-and-j4-on-frdm-kl25z.png?w=584&amp;amp;h=199" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;J3 and J4 on FRDM-KL25Z (Source: Freescale)&lt;/p&gt;&lt;p style="margin:0;"&gt;Both headers are not populated by default. J3 has a 0 Ohm and 10 Ohm resistor populated.&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_idea.gif?m=1129645325g"&gt;&lt;img loading="lazy" alt=":idea:" class="jiveImage wp-smiley" src="http://s0.wp.com/wp-includes/images/smilies/icon_idea.gif?m=1129645325g" /&gt;&lt;/a&gt;&amp;nbsp; I guess the idea is to remove the 0 Ohm (R73) so the voltage across R81 (10 Ohm) could be measured by the KL25Z itself?&lt;/p&gt;&lt;/blockquote&gt;&lt;p style="margin:0;"&gt;On the RevD boards both headers hat a ‘cut trace’ between the jumper. I decided to remove all three resistors (R73, R81 and R74) so I can measure the current consumed.&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/10/r73-r81-and-r74-removed.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="R73 R81 and R74 removed" class="jiveImage size-full wp-image-9619" height="390" src="http://mcuoneclipse.files.wordpress.com/2013/10/r73-r81-and-r74-removed.png?w=584&amp;amp;h=390" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;R73 R81 and R74 removed&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_idea.gif?m=1129645325g"&gt;&lt;img loading="lazy" alt=":idea:" class="jiveImage wp-smiley" src="http://s0.wp.com/wp-includes/images/smilies/icon_idea.gif?m=1129645325g" /&gt;&lt;/a&gt; Removing SMD components without the proper equipment is challenging! It works best with SMD de-soldering iron tips. The RevD approach with cutting traces was more user-friendly.&lt;/p&gt;&lt;/blockquote&gt;&lt;h1&gt;Starting Point: 19.58 mA&lt;/h1&gt;&lt;p style="margin:0;"&gt;I’m not so much interested here about the current consumed by the KL25Z and K20 (OpenSDA), as I need to focus on the overall board consumption. For my experiments I measured the board current coming through the P3V3 on pin 8 of J9:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/10/measured-board-current.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Measured Board Current (Schematic Source: Freescale)" class="jiveImage wp-image-9620 size-full" height="218" src="http://mcuoneclipse.files.wordpress.com/2013/10/measured-board-current.png?w=584&amp;amp;h=218" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;Measured Board Current (Schematic Source: Freescale)&lt;/p&gt;&lt;p style="margin:0;"&gt;I started my experiments with following starting point:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;KL25Z using 8 MHz external crystal (PEE mode, 48 CPU clock and 24 MHz bus clock)&lt;/li&gt;&lt;li&gt;FreeRTOS running SysTick for with 100 Hz RTOS tick counter&lt;/li&gt;&lt;li&gt;Shell command line interface through OpenSDA (38400 baud)&lt;/li&gt;&lt;li&gt;Blinking LED heartbeat so I can see that the application is running properly&lt;/li&gt;&lt;/ul&gt;&lt;p style="margin:0;"&gt;With this, the board consumes 19.58 mA: &lt;a href="http://mcuoneclipse.files.wordpress.com/2013/10/base-board-current-consumption1.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Base Board Current Consumption" class="jiveImage wp-image-9628 size-full" src="http://mcuoneclipse.files.wordpress.com/2013/10/base-board-current-consumption1.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;Base Board Current Consumption&lt;/p&gt;&lt;h1&gt;Disabling Accelerometer: 19.55 mA&lt;/h1&gt;&lt;p style="margin:0;"&gt;One rule of low power: disable what I do not use. The FRDM-KL25Z has the&amp;nbsp; &lt;a class="jive-link-external-small" href="http://mcuoneclipse.com/2013/04/13/extended-driver-for-the-mma8451q-accelerometer/" rel="nofollow ugc noopener" target="_blank" title="Extended Driver for the MMA8451Q Accelerometer"&gt;MM8451 accelerometer&lt;/a&gt; on the board, so I disabled it (disabled the accelerometer through the I²C interface/shell). But saving were minor. I guess only removing the accelerometer would bring some extra savings.&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/10/accelerometer-disabled1.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Accelerometer disabled" class="jiveImage wp-image-9629 size-full" src="http://mcuoneclipse.files.wordpress.com/2013/10/accelerometer-disabled1.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;Accelerometer disabled&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;h1&gt;Reduced Clock Speed: 11.91 mA&lt;/h1&gt;&lt;p style="margin:0;"&gt;Second rule of low power: slow down the clock speed. Current consumption usually is linear to the used clock speed. So reducing the clock speed should greatly reduce the current. I do not need that 48 MHz clock speed for my application. So I reduce the core clock to 2 MHz and the bus clock to 1 MHz:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;External Crystal 8 MHz&lt;/li&gt;&lt;li&gt;MCG settings to BLPE (Bypass Low Power External reference clock)&lt;/li&gt;&lt;/ul&gt;&lt;p class="alignnone wp-caption" style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/10/blpe-with-external-crystal.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="BLPE with external Crystal" class="jiveImage size-full wp-image-9615" height="668" src="http://mcuoneclipse.files.wordpress.com/2013/10/blpe-with-external-crystal.png?w=584&amp;amp;h=668" width="584" /&gt;&lt;/a&gt;BLPE with external Crystal&lt;/p&gt;&lt;p style="margin:0;"&gt;gives about 12 mA:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/10/2-mhz-with-external-clock1.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="2 MHz with external clock" class="wp-image-9630 jiveImage size-full" src="http://mcuoneclipse.files.wordpress.com/2013/10/2-mhz-with-external-clock1.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;2 MHz with external clock&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;h1&gt;Disabled OpenSDA: 7.23 mA&lt;/h1&gt;&lt;p style="margin:0;"&gt;I still have a lot of current consumed. And one part of this is the K20 microprocessor on the board used for OpenSDA. To get rid of that extra current:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Disconnect P3V3_SDA (remove R74 and remove jumper on J3) &lt;a href="http://mcuoneclipse.files.wordpress.com/2013/10/removed-power-to-k20.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Removed Power to K20" class="wp-image-9623 jiveImage size-full" src="http://mcuoneclipse.files.wordpress.com/2013/10/removed-power-to-k20.png?w=584" /&gt;&lt;/a&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;Removed Power to K20&lt;/p&gt;&lt;/li&gt;&lt;li&gt;Disconnect OpenSDA reset line: for this cut the trace under J14 and install a jumper&lt;p class="alignnone wp-caption" style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/10/cut-j14-trace.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Cut J14 Trace" class="jiveImage wp-image-9624 size-full" src="http://mcuoneclipse.files.wordpress.com/2013/10/cut-j14-trace.png?w=584" /&gt;&lt;/a&gt;Cut J14 Trace&lt;/p&gt;&lt;p style="margin:0;"&gt;Remove the J14 jumper to disconnect the reset line between the KL25Z and K20 OpenSDA, as otherwise current can flow between the K20 and KL25Z:&lt;/p&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/10/j14-disconnected-by-jumper.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="J14 disconnected by Jumper" class="jiveImage size-full wp-image-9625" height="372" src="http://mcuoneclipse.files.wordpress.com/2013/10/j14-disconnected-by-jumper.png?w=584&amp;amp;h=372" width="584" /&gt;&lt;/a&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;J14 disconnected by Jumper&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p style="margin:0;"&gt;With this, the current went down to 7.2 mA:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/10/disabled-opensda.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Disabled OpenSDA" class="jiveImage wp-image-9631 size-full" src="http://mcuoneclipse.files.wordpress.com/2013/10/disabled-opensda.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;Disabled OpenSDA&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;h1&gt;Cut J20: 3.55 mA&lt;/h1&gt;&lt;p style="margin:0;"&gt;Good progress so far: from 20 mA down to 7 mA. But what caused me a lot of head scratching: I would not have expected that 7 mA: it should be more in the 3-4 mA range. And indeed, measuring the current to the KL25Z microcontroller on J4 showed 3.4 mA:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/10/kl25z-current-at-2-mhz.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="KL25Z current at 2 MHz" class="jiveImage wp-image-9633" height="136" src="http://mcuoneclipse.files.wordpress.com/2013/10/kl25z-current-at-2-mhz.png?w=269&amp;amp;h=136" width="269" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;KL25Z current at 2 MHz&lt;/p&gt;&lt;p style="margin:0;"&gt;So what is using all the excess current? My goal is to go below 1 mA, and somehow the board itself already uses 3.6 mA somewhere. It took me more head scratching (that’s why I’m getting bald &lt;a href="http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif?m=1129645325g"&gt;&lt;img loading="lazy" alt=";-)" class="jiveImage wp-smiley" src="http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif?m=1129645325g" /&gt;&lt;/a&gt; ). And after a while I realized that current must be flowing back into U1:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/10/current-flowing-back-through-j20.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Current flowing back through J20" class="jiveImage wp-image-9635 size-full" height="199" src="http://mcuoneclipse.files.wordpress.com/2013/10/current-flowing-back-through-j20.png?w=584&amp;amp;h=199" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;Current flowing back through J20&lt;/p&gt;&lt;p style="margin:0;"&gt;With this, I decided to the trace under J20 and to install a jumper there to prevent that current:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/10/cut-j20-trace.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Cut J20 Trace" class="wp-image-9627 jiveImage size-full" src="http://mcuoneclipse.files.wordpress.com/2013/10/cut-j20-trace.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;Cut J20 Trace&lt;/p&gt;&lt;p style="margin:0;"&gt;Now my board shows a current I expect &lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g"&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;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/10/current-after-cutting-j20.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Current after cutting J20" class="jiveImage size-full wp-image-9632" src="http://mcuoneclipse.files.wordpress.com/2013/10/current-after-cutting-j20.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;Current after cutting J20&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;h1&gt;Using Internal Clock: 2.69 mA&lt;/h1&gt;&lt;p style="margin:0;"&gt;One general rule for low power is: using an external crystal uses less energy than using an internal (on chip) clock generator. However as the FRDM-KL25Z has a high frequency 8 MHz clock needed for its USB operation, it is probably better to use the internal (slower) clock generation module.&lt;/p&gt;&lt;p style="margin:0;"&gt;For this I disable the external crystal and change the mode from BLPE to BLPI (Bypass Low Power Internal):&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/10/disabled-oscillator-and-blpi-mode.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Disabled Oscillator and BLPI mode" class="jiveImage wp-image-9642 size-full" height="500" src="http://mcuoneclipse.files.wordpress.com/2013/10/disabled-oscillator-and-blpi-mode.png?w=584&amp;amp;h=500" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;Disabled Oscillator and BLPI mode&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/10/blpi-settings.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="BLPI Settings" class="jiveImage wp-image-9643 size-full" height="500" src="http://mcuoneclipse.files.wordpress.com/2013/10/blpi-settings.png?w=584&amp;amp;h=500" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;BLPI Settings&lt;/p&gt;&lt;p style="margin:0;"&gt;And the result is again a reduced current consumption:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/10/internal-clock.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Internal Clock" class="jiveImage wp-image-9644" height="125" src="http://mcuoneclipse.files.wordpress.com/2013/10/internal-clock.png?w=262&amp;amp;h=125" width="262" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;Internal Clock&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_question.gif?m=1129645325g"&gt;&lt;img loading="lazy" alt=":?:" class="jiveImage wp-smiley" src="http://s0.wp.com/wp-includes/images/smilies/icon_question.gif?m=1129645325g" /&gt;&lt;/a&gt; I did not expect that much reduction. Not sure why it has such a big impact. But it seems that this 8 MHz external crystal really is not good for low power applications?&lt;/p&gt;&lt;/blockquote&gt;&lt;h1&gt;&lt;/h1&gt;&lt;h1&gt;&lt;/h1&gt;&lt;h1&gt;Very Low Power Mode: 2.08 mA&lt;/h1&gt;&lt;p style="margin:0;"&gt;To enter the ‘Very Low Power Modes’, I enable the setting in the CPU component. But as the bus clock cannot exceed 800 kHz in this mode, I set it to the next closest value:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/10/very-low-power-mode-settings.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Very Low Power Mode Settings" class="jiveImage wp-image-9646 size-full" height="500" src="http://mcuoneclipse.files.wordpress.com/2013/10/very-low-power-mode-settings.png?w=584&amp;amp;h=500" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;Very Low Power Mode Settings&lt;/p&gt;&lt;p style="margin:0;"&gt;With this, I’m close to 2 mA &lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g"&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; . But still twice as high as where I want to be &lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif?m=1129645325g"&gt;&lt;img loading="lazy" alt=":-(" class="jiveImage wp-smiley" src="http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif?m=1129645325g" /&gt;&lt;/a&gt; .&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/10/very-low-power-enabled.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Very Low Power Enabled" class="jiveImage size-full wp-image-9648" src="http://mcuoneclipse.files.wordpress.com/2013/10/very-low-power-enabled.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;Very Low Power Enabled&lt;/p&gt;&lt;h1&gt;&lt;/h1&gt;&lt;h1&gt;&lt;/h1&gt;&lt;h1&gt;Where is my current going?&lt;/h1&gt;&lt;p style="margin:0;"&gt;To be clear: I’m down to 2.08 mA for the board, while the microprocessor is in RUN mode. So I not enter any of the special low power modes (yet). Still for 2 MHz CPU clock that 2.0 mA are too high to me?&lt;/p&gt;&lt;p style="margin:0;"&gt;So decided to do another measurement: measuring both the board current and the KL25Z current with the OpenSDA on the board enabled (J14 and P_SDA enabled).&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/10/kl25z-and-board-current.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="KL25Z and Board Current" class="jiveImage size-full wp-image-9651" src="http://mcuoneclipse.files.wordpress.com/2013/10/kl25z-and-board-current.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;KL25Z and Board Current&lt;/p&gt;&lt;p style="margin:0;"&gt;That 6.65 mA for the board is no surprise: the K20 of the OpenSDA is active. However what is interesting to see is that the K25Z current is down to 0.754 mA with the OpenSDA active, while it is very close to the 2.083 mA if the OpenSDA is *not* active. This means that about 1.3 mA is going ‘somewhere’ from the KL25Z if the OpenSDA is deactivated. The question is: where, and why?&lt;/p&gt;&lt;h1&gt;&lt;/h1&gt;&lt;h1&gt;&lt;/h1&gt;&lt;h1&gt;OpenSDA Serial Interface&lt;/h1&gt;&lt;p style="margin:0;"&gt;I already have cut the reset line between OpenSDA and the KL25Z. But there is the OpenSDA Serial-to-USB CDC connection:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/10/opensda-uart-connection.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="OpenSDA UART Connection" class="wp-image-9652 jiveImage size-full" height="242" src="http://mcuoneclipse.files.wordpress.com/2013/10/opensda-uart-connection.png?w=584&amp;amp;h=242" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;OpenSDA UART Connection&lt;/p&gt;&lt;p style="margin:0;"&gt;And I’m using a UART0 in my application: I’m using it to communicate through OpenSDA to the host machine. But now I have OpenSDA disconnected, and there could be a current flowing from the KL25Z to the K20 (which is unpowered). So I turned of the shell and UART, and look at this &lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g"&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;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/10/uart0-and-opensda-disabled.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="UART0 and OpenSDA disabled" class="jiveImage wp-image-9653 size-full" src="http://mcuoneclipse.files.wordpress.com/2013/10/uart0-and-opensda-disabled.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;UART0 and OpenSDA disabled&lt;/p&gt;&lt;p style="margin:0;"&gt;I’m getting definitely better &lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g"&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;/p&gt;&lt;h1&gt;&lt;/h1&gt;&lt;h1&gt;&lt;/h1&gt;&lt;h1&gt;Processor Expert Low Power Modes&lt;/h1&gt;&lt;p style="margin:0;"&gt;So far I’m not using any low power modes. The cool thing with Processor Expert is, that it makes usage of low power modes really easy. Calling SetOperationMode() changes between the different low power modes:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/10/setoperationmode.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="SetOperationMode" class="jiveImage size-full wp-image-9636" height="237" src="http://mcuoneclipse.files.wordpress.com/2013/10/setoperationmode.png?w=584&amp;amp;h=237" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;SetOperationMode&lt;/p&gt;&lt;p style="margin:0;"&gt;There are several settings inside the CPU component which deal with low power. First is the ‘&lt;strong&gt;Low power mode settings&lt;/strong&gt;‘ group:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/10/low-power-mode-settings.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Low Power Mode Settings" class="jiveImage size-full wp-image-9637" src="http://mcuoneclipse.files.wordpress.com/2013/10/low-power-mode-settings.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;Low Power Mode Settings&lt;/p&gt;&lt;p style="margin:0;"&gt;In above dialog I specify which modes are allowed, and which interrupt/events bring me out of Low Leakage mode (LLWU = Low Leakage Wakeup Unit): Usually I use the Low Power Timer (LPTMR) to wake me up.&lt;/p&gt;&lt;p style="margin:0;"&gt;In the Operation mode settings I can specify&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Which mode shall be entered with SetOperationMode()&lt;/li&gt;&lt;li&gt;What should happen after the wake-up interrupt&lt;/li&gt;&lt;/ol&gt;&lt;p class="alignnone wp-caption" style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/10/operation-mode-settings.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Operation Mode Settings" class="wp-image-9638 jiveImage size-full" src="http://mcuoneclipse.files.wordpress.com/2013/10/operation-mode-settings.png?w=584" /&gt;&lt;/a&gt;Operation Mode Settings&lt;/p&gt;&lt;h1&gt;&lt;/h1&gt;&lt;h1&gt;&lt;/h1&gt;&lt;h1&gt;Entering Low Power Mode: WAIT down to 0.155 mA&lt;/h1&gt;&lt;p style="margin:0;"&gt;With this, everything is ready to use low power modes from the application.&lt;/p&gt;&lt;p style="margin:0;"&gt;In my application I have a variable LP_mode:&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;div class="syntaxhighlighter cpp"&gt;&lt;table border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="gutter" style="border:0px solid black;"&gt;&lt;div class="number1 alt2 line index0"&gt;1&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="number2 alt1 index1 line" style="margin:0;"&gt;2&lt;/p&gt;&lt;p class="number3 index2 alt2 line" style="margin:0;"&gt;3&lt;/p&gt;&lt;p class="index3 number4 alt1 line" style="margin:0;"&gt;4&lt;/p&gt;&lt;p class="index4 alt2 number5 line" style="margin:0;"&gt;5&lt;/p&gt;&lt;p class="index5 alt1 line number6" style="margin:0;"&gt;6&lt;/p&gt;&lt;p class="number7 alt2 index6 line" style="margin:0;"&gt;7&lt;/p&gt;&lt;p class="index7 number8 alt1 line" style="margin:0;"&gt;8&lt;/p&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class="code" style="border:0px solid black;"&gt;&lt;p class="container" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;div class="number1 alt2 line index0"&gt;&lt;code class="keyword cpp bold"&gt;typedef&lt;/code&gt; &lt;code class="keyword cpp bold"&gt;enum&lt;/code&gt; &lt;code class="cpp plain"&gt;{&lt;/code&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="number2 alt1 index1 line" style="margin:0;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp plain"&gt;LP_RUN,&lt;/code&gt;&lt;/p&gt;&lt;p class="number3 index2 alt2 line" style="margin:0;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp plain"&gt;LP_WAIT,&lt;/code&gt;&lt;/p&gt;&lt;p class="index3 number4 alt1 line" style="margin:0;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp plain"&gt;LP_SLEEP,&lt;/code&gt;&lt;/p&gt;&lt;p class="index4 alt2 number5 line" style="margin:0;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp plain"&gt;LP_STOP&lt;/code&gt;&lt;/p&gt;&lt;p class="index5 alt1 line number6" style="margin:0;"&gt;&lt;code class="cpp plain"&gt;} LP_PowerMode;&lt;/code&gt;&lt;/p&gt;&lt;p class="number7 alt2 index6 line" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="index7 number8 alt1 line" style="margin:0;"&gt;&lt;code class="keyword cpp bold"&gt;static&lt;/code&gt; &lt;code class="cpp plain"&gt;LP_PowerMode LP_mode;&lt;/code&gt;&lt;/p&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt;which is defining the current active low power mode. To switch into a low power mode I use SetOperationMode():&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;div class="syntaxhighlighter cpp"&gt;&lt;table border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="gutter" style="border:0px solid black;"&gt;&lt;div class="number1 alt2 line index0"&gt;1&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="number2 alt1 index1 line" style="margin:0;"&gt;2&lt;/p&gt;&lt;p class="number3 index2 alt2 line" style="margin:0;"&gt;3&lt;/p&gt;&lt;p class="index3 number4 alt1 line" style="margin:0;"&gt;4&lt;/p&gt;&lt;p class="index4 alt2 number5 line" style="margin:0;"&gt;5&lt;/p&gt;&lt;p class="index5 alt1 line number6" style="margin:0;"&gt;6&lt;/p&gt;&lt;p class="number7 alt2 index6 line" style="margin:0;"&gt;7&lt;/p&gt;&lt;p class="index7 number8 alt1 line" style="margin:0;"&gt;8&lt;/p&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class="code" style="border:0px solid black;"&gt;&lt;p class="container" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;div class="number1 alt2 line index0"&gt;&lt;code class="keyword cpp bold"&gt;if&lt;/code&gt; &lt;code class="cpp plain"&gt;(LP_mode==LP_WAIT) {&lt;/code&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="number2 alt1 index1 line" style="margin:0;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp plain"&gt;Cpu_SetOperationMode(DOM_WAIT, NULL, NULL); &lt;/code&gt;&lt;code class="cpp comments"&gt;/* next interrupt will wake us up */&lt;/code&gt;&lt;/p&gt;&lt;p class="number3 index2 alt2 line" style="margin:0;"&gt;&lt;code class="cpp plain"&gt;} &lt;/code&gt;&lt;code class="keyword cpp bold"&gt;else&lt;/code&gt; &lt;code class="keyword cpp bold"&gt;if&lt;/code&gt; &lt;code class="cpp plain"&gt;(LP_mode==LP_SLEEP) {&lt;/code&gt;&lt;/p&gt;&lt;p class="index3 number4 alt1 line" style="margin:0;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp plain"&gt;Cpu_SetOperationMode(DOM_SLEEP, NULL, NULL); &lt;/code&gt;&lt;code class="cpp comments"&gt;/* next interrupt will wake us up */&lt;/code&gt;&lt;/p&gt;&lt;p class="index4 alt2 number5 line" style="margin:0;"&gt;&lt;code class="cpp plain"&gt;} &lt;/code&gt;&lt;code class="keyword cpp bold"&gt;else&lt;/code&gt; &lt;code class="keyword cpp bold"&gt;if&lt;/code&gt; &lt;code class="cpp plain"&gt;(LP_mode==LP_STOP) {&lt;/code&gt;&lt;/p&gt;&lt;p class="index5 alt1 line number6" style="margin:0;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp plain"&gt;Cpu_SetOperationMode(DOM_STOP, NULL, NULL); &lt;/code&gt;&lt;code class="cpp comments"&gt;/* next interrupt will wake us up */&lt;/code&gt;&lt;/p&gt;&lt;p class="number7 alt2 index6 line" style="margin:0;"&gt;&lt;code class="cpp plain"&gt;}&lt;/code&gt;&lt;/p&gt;&lt;p class="index7 number8 alt1 line" style="margin:0;"&gt;&lt;code class="cpp comments"&gt;/* interrupt will wake us up, and we are back in RUN mode */&lt;/code&gt;&lt;/p&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt;WAIT is really easy to use: basically it stops the core clock, while interrupts are still active. And a perfect place to enter that low power mode is from the FreeRTOS Idle task hook:&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;div class="syntaxhighlighter cpp"&gt;&lt;table border="0" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="gutter" style="border:0px solid black;"&gt;&lt;div class="number1 alt2 line index0"&gt;1&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="number2 alt1 index1 line" style="margin:0;"&gt;2&lt;/p&gt;&lt;p class="number3 index2 alt2 line" style="margin:0;"&gt;3&lt;/p&gt;&lt;p class="index3 number4 alt1 line" style="margin:0;"&gt;4&lt;/p&gt;&lt;p class="index4 alt2 number5 line" style="margin:0;"&gt;5&lt;/p&gt;&lt;p class="index5 alt1 line number6" style="margin:0;"&gt;6&lt;/p&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class="code" style="border:0px solid black;"&gt;&lt;p class="container" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;div class="number1 alt2 line index0"&gt;&lt;code class="keyword cpp bold"&gt;void&lt;/code&gt; &lt;code class="cpp plain"&gt;FRTOS1_vApplicationIdleHook(&lt;/code&gt;&lt;code class="keyword cpp bold"&gt;void&lt;/code&gt;&lt;code class="cpp plain"&gt;)&lt;/code&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="number2 alt1 index1 line" style="margin:0;"&gt;&lt;code class="cpp plain"&gt;{&lt;/code&gt;&lt;/p&gt;&lt;p class="number3 index2 alt2 line" style="margin:0;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp comments"&gt;/* Called when the RTOS is idle (from the IDLE task).&lt;/code&gt;&lt;/p&gt;&lt;p class="index3 number4 alt1 line" style="margin:0;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp comments"&gt;Here would be a good place to put the CPU into low power mode. */&lt;/code&gt;&lt;/p&gt;&lt;p class="index4 alt2 number5 line" style="margin:0;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp plain"&gt;LP_EnterLowPower();&lt;/code&gt;&lt;/p&gt;&lt;p class="index5 alt1 line number6" style="margin:0;"&gt;&lt;code class="cpp plain"&gt;}&lt;/code&gt;&lt;/p&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt;Just doing the WAIT mode I get down to 0.155 mA &lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g"&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;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/10/wait-mode-enabled.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="WAIT mode enabled" class="jiveImage size-full wp-image-9655" src="http://mcuoneclipse.files.wordpress.com/2013/10/wait-mode-enabled.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;WAIT mode enabled&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_exclaim.gif?m=1129645325g"&gt;&lt;img loading="lazy" alt=":!:" class="jiveImage wp-smiley" src="http://s0.wp.com/wp-includes/images/smilies/icon_exclaim.gif?m=1129645325g" /&gt;&lt;/a&gt; With the above setup, I have only one task running and a blinking LED. The application with all the sensors will have two more tasks added, so the power consumption will go up again.&lt;/p&gt;&lt;/blockquote&gt;&lt;h1&gt;&lt;/h1&gt;&lt;h1&gt;&lt;/h1&gt;&lt;h1&gt;FreeRTOS Tickless Idle Mode: 0.132 mA&lt;/h1&gt;&lt;p style="margin:0;"&gt;FreeRTOS comes with a cool low power feature: the &lt;a class="jive-link-external-small" href="http://mcuoneclipse.com/2013/07/06/low-power-with-freertos-tickless-idle-mode/" rel="nofollow ugc noopener" target="_blank" title="Low Power with FreeRTOS: Tickless Idle Mode"&gt;Tickless Idle Mode&lt;/a&gt;. I have enabled it along with using the &lt;a class="jive-link-external-small" href="http://mcuoneclipse.com/2013/08/30/optimized-freertos-stack-check-and-systick-for-arm-cortex-cores/" rel="nofollow ugc noopener" target="_blank" title="Optimized FreeRTOS: Stack Check and SysTick for ARM Cortex Cores"&gt;special Systick Prescaler&lt;/a&gt;:&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/10/freertos-tickless-idle-mode.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="FreeRTOS Tickless Idle Mode" class="wp-image-9656 jiveImage size-full" src="http://mcuoneclipse.files.wordpress.com/2013/10/freertos-tickless-idle-mode.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;FreeRTOS Tickless Idle Mode&lt;/p&gt;&lt;p style="margin:0;"&gt;With this, the RTOS will delay the SysTick interrupts as long as possible, extending the low power idle modes and reducing the interrupt load. And this is what I get as board current &lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g"&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;&amp;nbsp; :&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/10/wait-with-freertos-tickless-idle-mode.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="WAIT with FreeRTOS Tickless Idle Mode" class="jiveImage wp-image-9657 size-full" src="http://mcuoneclipse.files.wordpress.com/2013/10/wait-with-freertos-tickless-idle-mode.png?w=584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;WAIT with FreeRTOS Tickless Idle Mode&lt;/p&gt;&lt;h1&gt;&lt;/h1&gt;&lt;h1&gt;&lt;/h1&gt;&lt;h1&gt;Summary&lt;/h1&gt;&lt;p style="margin:0;"&gt;The week-end is over, and I need to stop here at the WAIT mode. I have not explored the more advanced SLEEP and STOP modes, but on the other hand I’m now well below my target of 1 mA for the board anyway &lt;a href="http://s2.wp.com/wp-includes/images/smilies/icon_mrgreen.gif?m=1129645325g"&gt;&lt;img loading="lazy" alt=":mrgreen:" class="jiveImage wp-smiley" src="http://s2.wp.com/wp-includes/images/smilies/icon_mrgreen.gif?m=1129645325g" /&gt;&lt;/a&gt;&amp;nbsp; .&lt;/p&gt;&lt;p style="margin:0;"&gt;Modern microcontroller come with many advanced low power modes. Unfortunately for many applications most extreme low power modes are not usable as they completely shut down the processor, making it hard to use with an application e.g. using an operating system. The Freescale KL25Z processor is no exception to this. But even with ‘moderate’ power saving settings I’m able a reasonable power reduction. Still, there are a lot of settings, and I it is definitely not easy to find my way through the endless and complicated settings the silicon designers have invented. But at least with Processor Expert things are easier to find and configure.&lt;/p&gt;&lt;p style="margin:0;"&gt;Development boards are great for development or evaluation. They are usually not designed for low power usage, because they have too much components on it consuming energy. However, as shown with the FRDM-KL25Z it is possible to get into a working solution:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Disable by software any external devices not used (e.g. Accelerometer)&lt;/li&gt;&lt;li&gt;Disable any on-board debugging devices (e.g. OpenSDA). Do not only cut power, disable as well any other debugging signals (e.g. Reset).&lt;/li&gt;&lt;li&gt;Carefully check the changed current flow if not using the on board regulators (e.g. prevent current flowing back to the regulators).&lt;/li&gt;&lt;li&gt;Make sure that there is no current through connection lines to unused devices (e.g. UART0 to K20 OpenSDA).&lt;/li&gt;&lt;li&gt;Using an RTOS like FreeRTOS does not mean it cannot use low power modes. A mode like WAIT already greatly reduces the power consumption. The tickless idle mode of FreeRTOS is helping to reduce the power consumption too.&lt;/li&gt;&lt;li&gt;I would not have been able to reach this in such a short time without the help of Processor Expert &lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g"&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;/li&gt;&lt;/ol&gt;&lt;p style="margin:0;"&gt;The project I have used for my testing is available &lt;a class="jive-link-external-small" href="https://github.com/ErichStyger/mcuoneclipse/tree/master/Examples/FRDM-KL25Z/Freedom_LowPower" rel="nofollow ugc noopener" target="_blank"&gt;on GitHub here&lt;/a&gt;. Hope this is useful, and helps your battery powering a FRDM-KL25Z. So far I have reached my goals with a board consumption less than 1 mA &lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g"&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; . But as soon as I find time, I’ll explore the more advanced low power modes. Until then, have a look at the Freescale web site for any documenation about how to use the low power modes for the KL25Z (or any other ARM Cortex-M0+).&lt;/p&gt;&lt;p style="margin:0;"&gt;Happy Low-Powering &lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g"&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;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: freescale, frdm-kl25z, freedom&lt;/div&gt;
</description></item><item><title>Codewarrior Tutorial for FRDM-KL25Z: Using the Freedom as an USB Keyboard</title><link>https://community.element14.com/products/devtools/kinetiskl2freedomboard/w/documents/11287/codewarrior-tutorial-for-frdm-kl25z-using-the-freedom-as-an-usb-keyboard</link><pubDate>Fri, 08 Oct 2021 05:34:59 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:0de4a6ab-3241-4aae-8017-a5028e31796f</guid><dc:creator>FreescaleTools_and_Software</dc:creator><description>Current Revision posted to Documents by FreescaleTools_and_Software on 10/8/2021 5:34:59 AM&lt;br /&gt;
&lt;p style="margin:0;text-align:left;background-color:#ffffff;text-indent:0px;color:#333333;"&gt;&lt;span style="color:#ff6600;font-size:15px;font-family:tahoma, arial, helvetica, sans-serif;"&gt;&lt;em&gt;This tutorial was extracted from Erich Styger blog&lt;span class="Apple-converted-space" style="font-size:15px;"&gt;&lt;span class="Apple-converted-space" style="font-size:15px;"&gt;&lt;span class="Apple-converted-space" style="font-size:15px;"&gt;&lt;span class="Apple-converted-space" style="font-size:15px;"&gt;&lt;span class="Apple-converted-space" style="font-size:15px;"&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a class="jive-link-external-small" href="http://mcuoneclipse.wordpress.com/" rel="nofollow" style="color:#355491;font-size:15px;text-decoration:underline;" target="_blank"&gt;http://mcuoneclipse.wordpress.com&lt;/a&gt;&lt;span class="Apple-converted-space" style="font-size:15px;"&gt;&lt;span class="Apple-converted-space" style="font-size:15px;"&gt;&lt;span class="Apple-converted-space" style="font-size:15px;"&gt;&lt;span class="Apple-converted-space" style="font-size:15px;"&gt;&lt;span class="Apple-converted-space" style="font-size:15px;"&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;with his agreement.&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;text-align:left;background-color:#ffffff;text-indent:0px;color:#333333;"&gt;&lt;a href="/servlet/JiveServlet/downloadImage/102-54862-1-160635/Freescale.bmp" style="color:#355491;font-size:12px;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/175x85/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_25830.bmp"&gt;&lt;img alt="image" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_25830.bmp" style="max-height: 85px;max-width: 175px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/a&gt;&lt;a href="/servlet/JiveServlet/downloadImage/102-54862-1-160636/Kinetis-L.jpg" style="color:#355491;font-size:12px;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/87x85/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_25831.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/contentimage_25831.jpg-87x85.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=P1RnWASwNS3nIZG8wNba6OaUD4xnK%2FaBH5WBcZBkaAo%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=lw3vl9FqzfR9tHJgP7g6Lg==" style="max-height: 85px;max-width: 87px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;text-align:left;background-color:#ffffff;text-indent:0px;color:#333333;"&gt;&lt;span style="font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-size:12pt;"&gt;I miss my old DELL laptop. Ok, the new one I received from IT services is not bad. It is faster and has a better screen. But I’m not really happy with the new keyboard. With the previous keyboard I was able to do a ‘PrtnScrn’ with a single key press. With the new one I need to press Fn + PrntScrn. And this is impossible to do with one hand:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;font-family:inherit;font-size:15px;border:#1982d1 0px;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/06/impossible-to-reach-prnt-scrn.png" rel="nofollow ugc noopener" style="color:#1982d1;font-size:15px;" target="_blank"&gt;&lt;span style="font-size:12pt;"&gt;&lt;img loading="lazy" alt="Impossible to reach Prnt Scrn" class="wp-image-8501 jiveImage size-full" height="272" src="http://mcuoneclipse.files.wordpress.com/2013/06/impossible-to-reach-prnt-scrn.png?w=584&amp;amp;h=272" style="font-size:15px;" width="584" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;p class="wp-caption-text" style="margin:0;padding-bottom:5px;margin:0 0 0.6em;padding-left:40px;font-family:Georgia, serif;color:#666666;font-size:12px;padding-top:10px;"&gt;&lt;span style="font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;Impossible to reach Fn+Prnt Scrn with one hand!&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding-bottom:5px;margin:0 0 0.6em;padding-left:40px;font-family:Georgia, serif;color:#666666;font-size:12px;padding-top:10px;"&gt;&amp;nbsp; &lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Yes, I have two hands&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;a href="http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif?m=1129645325g"&gt;&lt;img loading="lazy" alt=";-)" class="jiveImage wp-smiley" src="http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif?m=1129645325g" /&gt;&lt;/a&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;. But many times I need to do ‘print screen’ while having my other hand on the mouse&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif?m=1129645325g"&gt;&lt;img loading="lazy" alt=":-(" class="jiveImage wp-smiley" src="http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif?m=1129645325g" /&gt;&lt;/a&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;.What else can I do?&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;h1 style="background-color:#ffffff;text-indent:0px;margin:0 0 0.81em;color:#000000;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Exploring Options&lt;/span&gt;&lt;/h1&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Of course there are several options:&lt;/span&gt;&lt;/p&gt;&lt;ol start="1" style="background-color:#ffffff;list-style-type:decimal;text-indent:0px;margin:0 0 1.62em 2.5em;color:#373737;"&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Call someone in my office and say “hey, can you give me a helping hand?”. Works, but my co-workers will hate me for this.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Reconfigure my laptop keyboard mapping. Doable, but then the writing on the keyboard does not match the reality any more which can be confusing.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Remapping the print screen functionality in&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;a class="jive-link-external-small" href="http://www.techsmith.de/snagit.html" rel="nofollow ugc noopener" style="font-family:inherit;color:#1982d1;font-size:15px;" target="_blank" title="Snagit Screen Capturing Tool"&gt;SnagIt&lt;/a&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;(the screen capture tool I’m using). That would be too easy&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;a href="http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif?m=1129645325g"&gt;&lt;img loading="lazy" alt=";-)" class="jiveImage wp-smiley" src="http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif?m=1129645325g" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Using the FRDM-KL25Z board as USB keyboard&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p style="margin:0;"&gt;&amp;nbsp; &lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;As you might have guessed from this post title: I’m going for option 4&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;a href="http://s2.wp.com/wp-includes/images/smilies/icon_mrgreen.gif?m=1129645325g"&gt;&lt;img loading="lazy" alt=":mrgreen:" class="jiveImage wp-smiley" src="http://s2.wp.com/wp-includes/images/smilies/icon_mrgreen.gif?m=1129645325g" /&gt;&lt;/a&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;This gives me the added value that I can do anything I want: having my own&amp;nbsp; shortcuts, doing sequences of key press actions, and so on.&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;In the next steps I explain how to turn the FRDM-KL25Z into a USB HID Keyboard device with CodeWarrior for MCU10.4 and Processor Expert Components. A link to the project is posted at the end of this article.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&amp;nbsp; &lt;/p&gt;&lt;h2 style="background-color:#ffffff;text-indent:0px;margin:0 0 0.81em;color:#000000;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Processor Expert Components&lt;/span&gt;&lt;/h2&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Make sure you have the latest Processor Expert components loaded (zip file attached to this post). Instructions how to load the components &lt;a class="jive-link-external-small" href="http://mcuoneclipse.com/2013/05/09/processor-expert-component-peupd-files-on-github/" rel="nofollow ugc noopener" style="font-family:inherit;color:#1982d1;font-size:15px;" target="_blank" title="Processor Expert Component *.PEupd Files on GitHub"&gt;is explained in this post&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&amp;nbsp; &lt;/p&gt;&lt;h1 style="background-color:#ffffff;text-indent:0px;margin:0 0 0.81em;color:#000000;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Creating CodeWarrior KL25Z Project&lt;/span&gt;&lt;/h1&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Create a new Processor Expert project in CodeWarrior using the menu&lt;span style="font-style:italic;font-family:inherit;font-size:15px;"&gt;&lt;em&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;File &amp;gt; New &amp;gt; BareBoard Project:&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;ol start="1" style="background-color:#ffffff;list-style-type:decimal;text-indent:0px;margin:0 0 1.62em 2.5em;color:#373737;"&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Provide a name for the project&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Select the MKL25Z128 under&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;span style="font-style:italic;font-family:inherit;font-size:15px;"&gt;&lt;em&gt;Kinetis L Series &amp;gt; KL2x &amp;gt; KL25Z&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Select OpenSDA as connection&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;In ‘Language and Build Tools Options’, the No I/O option can be selected for reduced footprint&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Select Processor Expert under Rapid Application Development&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Finished&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g"&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;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p class="alignnone wp-caption" style="margin:0;background-color:#eeeeee;text-indent:0px;margin:0.4em 0 1.62em;color:#373737;padding:9px;"&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;font-family:inherit;font-size:15px;border:#1982d1 0px;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/06/usb-hid-project-created.png" rel="nofollow ugc noopener" style="color:#1982d1;font-size:15px;" target="_blank"&gt;&lt;img loading="lazy" alt="USB HID Project Created" class="jiveImage wp-image-8506 size-full" src="http://mcuoneclipse.files.wordpress.com/2013/06/usb-hid-project-created.png?w=584" style="font-size:15px;" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style="font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;USB HID Project Created&lt;/em&gt;&lt;/span&gt;&lt;p style="margin:0;"&gt;&lt;/p&gt;&lt;p class="alignnone wp-caption" style="margin:0;background-color:#eeeeee;text-indent:0px;margin:0.4em 0 1.62em;color:#373737;padding:9px;"&gt;&amp;nbsp; &lt;/p&gt;&lt;h1 style="background-color:#ffffff;text-indent:0px;margin:0 0 0.81em;color:#000000;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;USB Clock Settings&lt;/span&gt;&lt;/h1&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;The USB clock needs to be set at 48 MHz. For this, I open the Inspector on the Cpu:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&amp;nbsp; &lt;/p&gt;&lt;ol start="1" style="background-color:#ffffff;list-style-type:decimal;text-indent:0px;margin:0 0 1.62em 2.5em;color:#373737;"&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Enable ‘System oscillator 0′. This enables it to use the 8 MHz external crystal:&amp;nbsp; &lt;/span&gt;&lt;p style="margin:0;margin:0 0 1.62em;font-family:inherit;font-size:15px;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;font-family:inherit;font-size:15px;border:#1982d1 0px;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/06/system-oscillator-enabled.png" rel="nofollow ugc noopener" style="color:#1982d1;font-size:15px;" target="_blank"&gt;&lt;span style="font-size:12pt;"&gt;&lt;img loading="lazy" alt="System Oscillator Enabled" class="jiveImage size-full wp-image-8507" src="http://mcuoneclipse.files.wordpress.com/2013/06/system-oscillator-enabled.png?w=584" style="font-size:15px;" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;p class="wp-caption-text" style="margin:0;padding-bottom:5px;margin:0 0 0.6em;padding-left:40px;font-family:Georgia, serif;color:#666666;font-size:12px;padding-top:10px;"&gt;&lt;span style="font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;System Oscillator Enabled&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Set the MCG clock settings to PEE (PLL Engaged External) with 96 MHz:&amp;nbsp; &lt;br /&gt;&amp;nbsp; &lt;br /&gt;&lt;/span&gt;&lt;p class="alignnone wp-caption" style="margin:0;background-color:#eeeeee;margin:0.4em 0 1.62em;font-family:inherit;font-size:15px;padding:9px;"&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;font-family:inherit;font-size:15px;border:#1982d1 0px;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/06/pee-with-96-mhz.png" rel="nofollow ugc noopener" style="color:#1982d1;font-size:15px;" target="_blank"&gt;&lt;img loading="lazy" alt="PEE with 96 MHz" class="jiveImage size-full wp-image-8508" src="http://mcuoneclipse.files.wordpress.com/2013/06/pee-with-96-mhz.png?w=584" style="font-size:15px;" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding-bottom:5px;margin:0 0 0.6em;padding-left:40px;font-family:Georgia, serif;color:#666666;font-size:12px;padding-top:10px;"&gt;&lt;span style="font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;PEE with 96 MHz&lt;/em&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Set the core clock to 48 MHz and the bus clock to 24 MHz: &lt;/span&gt;&lt;br /&gt;&lt;p class="alignnone wp-caption" style="margin:0;background-color:#eeeeee;margin:0.4em 0 1.62em;font-family:inherit;font-size:15px;padding:9px;"&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;font-family:inherit;font-size:15px;border:#1982d1 0px;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/06/48-mhz-core-clock-with-24-mhz-bus-clock.png" rel="nofollow ugc noopener" style="color:#1982d1;font-size:15px;" target="_blank"&gt;&lt;img loading="lazy" alt="48 MHz Core Clock with 24 MHz Bus Clock" class="wp-image-8509 jiveImage size-full" src="http://mcuoneclipse.files.wordpress.com/2013/06/48-mhz-core-clock-with-24-mhz-bus-clock.png?w=584" style="font-size:15px;" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding-bottom:5px;margin:0 0 0.6em;padding-left:40px;font-family:Georgia, serif;color:#666666;font-size:12px;padding-top:10px;"&gt;&lt;span style="font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;48 MHz Core Clock with 24 MHz Bus Clock&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;With this I have properly configured the microcontroller to work for USB.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&amp;nbsp; &lt;/p&gt;&lt;h1 style="background-color:#ffffff;text-indent:0px;margin:0 0 0.81em;color:#000000;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Adding USB Stack&lt;/span&gt;&lt;/h1&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;The next step is to add the USB stack. I have created the FSL_USB_Stack Processor Expert component which is a wrapper for the Freescale bare metal USB stack. This USB stack can be used as well with an RTOS like FreeRTOS too. The FSL_USB_Stack component now supports HID, CDC and MSD device classes.&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;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;From the Components Library view, I add the component to my project (double-click on the component):&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;font-family:inherit;font-size:15px;border:#1982d1 0px;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/06/fsl_usb_stack.png" rel="nofollow ugc noopener" style="color:#1982d1;font-size:15px;" target="_blank"&gt;&lt;span style="font-size:12pt;"&gt;&lt;img loading="lazy" alt="FSL_USB_Stack Component" class="jiveImage size-full wp-image-8511" src="http://mcuoneclipse.files.wordpress.com/2013/06/fsl_usb_stack.png?w=584" style="font-size:15px;" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;p class="wp-caption-text" style="margin:0;padding-bottom:5px;margin:0 0 0.6em;padding-left:40px;font-family:Georgia, serif;color:#666666;font-size:12px;padding-top:10px;"&gt;&lt;span style="font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;FSL_USB_Stack Component&lt;/em&gt;&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 style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;By default, it is added for CDC. So I need to configure it for USB HID Keyboard device class.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;I select the FSL_USB_Stack and configure it:&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;USB is using&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;span style="font-family:inherit;font-size:15px;"&gt;&lt;strong&gt;Init_USB_OTG_VAR0&lt;/strong&gt;&lt;/span&gt;: this one is used for Kinetis/ARM.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Device Class:&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;span style="font-family:inherit;font-size:15px;"&gt;&lt;strong&gt;HID Keyboard Device.&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;In the HID Keyboard field, I choose&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;span style="font-family:inherit;font-size:15px;"&gt;&lt;strong&gt;FSL_USB_HID_Keyboard_Device.&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p class="alignnone wp-caption" style="margin:0;background-color:#eeeeee;text-indent:0px;margin:0.4em 0 1.62em;color:#373737;padding:9px;"&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;font-family:inherit;font-size:15px;border:#1982d1 0px;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/06/fsl_usb_stack-configured-for-usb-hid-keyboard.png" rel="nofollow ugc noopener" style="color:#1982d1;font-size:15px;" target="_blank"&gt;&lt;img loading="lazy" alt="FSL_USB_Stack Configured for USB HID Keyboard" class="wp-image-8512 jiveImage size-full" height="292" src="http://mcuoneclipse.files.wordpress.com/2013/06/fsl_usb_stack-configured-for-usb-hid-keyboard.png?w=584&amp;amp;h=292" style="font-size:15px;" width="584" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style="font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;FSL_USB_Stack Configured for USB HID Keyboard&lt;/em&gt;&lt;/span&gt;&lt;p style="margin:0;"&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;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Next, I select the Init_USB_OTG component and configure it:&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;span style="font-family:inherit;font-size:15px;"&gt;&lt;strong&gt;Enabled clock gate&lt;/strong&gt;&lt;/span&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;(otherwise the USB module is not clocked).&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Set&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;span style="font-family:inherit;font-size:15px;"&gt;&lt;strong&gt;PLL/FLL as clock source&lt;/strong&gt;&lt;/span&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;(has to be 48 MHz, that’s why we configured the CPU clock in the previous step for 48 MHz).&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p class="alignnone wp-caption" style="margin:0;background-color:#eeeeee;text-indent:0px;margin:0.4em 0 1.62em;color:#373737;padding:9px;"&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;font-family:inherit;font-size:15px;border:#1982d1 0px;"&gt;&lt;span style="font-size:12pt;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/06/init-component-configured.png" rel="nofollow ugc noopener" style="color:#1982d1;font-size:15px;" target="_blank"&gt;&lt;img loading="lazy" alt="Init Component Configured" class="jiveImage wp-image-8513 size-full" height="292" src="http://mcuoneclipse.files.wordpress.com/2013/06/init-component-configured.png?w=584&amp;amp;h=292" style="font-size:15px;" width="584" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;Init Component Configured&lt;/em&gt;&lt;/span&gt;&lt;p style="margin:0;"&gt;&lt;/p&gt;&lt;p class="alignnone wp-caption" style="margin:0;background-color:#eeeeee;text-indent:0px;margin:0.4em 0 1.62em;color:#373737;padding:9px;"&gt;&amp;nbsp; &lt;/p&gt;&lt;p class="alignnone wp-caption" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Finally, configure the FSL_USB_HID_Keyboard_Device CPU:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;font-family:inherit;font-size:15px;border:#1982d1 0px;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/06/fsl_usb_hid_keyboard-cpu-configured.png" rel="nofollow ugc noopener" style="color:#1982d1;font-size:15px;" target="_blank"&gt;&lt;span style="font-size:12pt;"&gt;&lt;img loading="lazy" alt="FSL_USB_HID_Keyboard CPU Configured" class="jiveImage size-full wp-image-8514" height="292" src="http://mcuoneclipse.files.wordpress.com/2013/06/fsl_usb_hid_keyboard-cpu-configured.png?w=584&amp;amp;h=292" style="font-size:15px;" width="584" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;p class="wp-caption-text" style="margin:0;padding-bottom:5px;margin:0 0 0.6em;padding-left:40px;font-family:Georgia, serif;color:#666666;font-size:12px;padding-top:10px;"&gt;&lt;span style="font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;FSL_USB_HID_Keyboard CPU Configured&lt;/em&gt;&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;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Now all the error markers should disappear as I finished configuring the component.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;h1 style="background-color:#ffffff;text-indent:0px;margin:0 0 0.81em;color:#000000;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;FSL_USB_HID_Keyboard_Device Component&lt;/span&gt;&lt;/h1&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;The component has two more settings which are used to report the device to the host:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&amp;nbsp; &lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;font-family:inherit;font-size:15px;border:#1982d1 0px;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/06/hid-settings.png" rel="nofollow ugc noopener" style="color:#1982d1;font-size:15px;" target="_blank"&gt;&lt;img loading="lazy" alt="HID Settings" class="jiveImage size-full wp-image-8519" height="418" src="http://mcuoneclipse.files.wordpress.com/2013/06/hid-settings.png?w=584&amp;amp;h=418" style="font-size:15px;" width="584" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p class="wp-caption-text" style="margin:0;padding-bottom:5px;margin:0 0 0.6em;padding-left:40px;font-family:Georgia, serif;color:#666666;font-size:12px;padding-top:10px;"&gt;&lt;span style="font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;HID Settings&lt;/em&gt;&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;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;The name is used in the Windows Device manager:&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/2013/06/fsl-hid-keyboard-in-the-windows-device-manager.png" rel="nofollow ugc noopener" style="font-family:inherit;color:#1982d1;font-size:15px;" target="_blank"&gt;&lt;img loading="lazy" alt="FSL HID Keyboard in the Windows Device Manager" class="jiveImage wp-image-8520 size-full" src="http://mcuoneclipse.files.wordpress.com/2013/06/fsl-hid-keyboard-in-the-windows-device-manager.png?w=584" style="border:#eeeeee 1px solid;padding:6px;" /&gt;&lt;/a&gt;&amp;nbsp; &lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding-bottom:5px;margin:0 0 0.6em;padding-left:40px;font-family:Georgia, serif;color:#666666;font-size:12px;padding-top:10px;"&gt;&lt;span style="font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;FSL HID Keyboard in the Windows Device Manager&lt;/em&gt;&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;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;The component features a ring buffer which is used to store keyboard events to be sent later:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;font-family:inherit;font-size:15px;border:#1982d1 0px;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/06/usb-hid-keyboard-buffer-settings.png" rel="nofollow ugc noopener" style="color:#1982d1;font-size:15px;" target="_blank"&gt;&lt;img loading="lazy" alt="USB HID Keyboard Buffer Settings" class="jiveImage size-full wp-image-8518" height="416" src="http://mcuoneclipse.files.wordpress.com/2013/06/usb-hid-keyboard-buffer-settings.png?w=584&amp;amp;h=416" style="font-size:15px;" width="584" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p class="wp-caption-text" style="margin:0;padding-bottom:5px;margin:0 0 0.6em;padding-left:40px;font-family:Georgia, serif;color:#666666;font-size:12px;padding-top:10px;"&gt;&lt;span style="font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;USB HID Keyboard Buffer Settings&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding-bottom:5px;margin:0 0 0.6em;padding-left:40px;font-family:Georgia, serif;color:#666666;font-size:12px;padding-top:10px;"&gt;&amp;nbsp; &lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding-bottom:5px;margin:0 0 0.6em;padding-left:40px;font-family:Georgia, serif;color:#666666;font-size:12px;padding-top:10px;"&gt;&amp;nbsp; &lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;The buffer entries are 16bit each (2 bytes), because a keyboard event has one byte for the ‘modifier’ (e.g. SHIFT pressed) and the key itself (e.g. ‘a’). More about this later. By default the buffer is set up for 16 entries: so I can buffer up to 16 items (or key changes). If you always send just one key, then you can reduce this number to a lower number, say 4 (to be safe).&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;h1 style="background-color:#ffffff;text-indent:0px;margin:0 0 0.81em;color:#000000;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;USB HID Keyboard Protocol&lt;/span&gt;&lt;/h1&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;The HID Keyboard device has to send a report to the host. That report is an array of 8 bytes describing the current key status:&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Byte 0: Modifier byte which encodes CTRL, SHIFT, ALT and GUI keys (8 bits are defined for this)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Byte 1: unused&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Byte 2-7: 6 bytes with key codes. With this it is possible to report up 6 plus the modifier keys pressed at the same time.&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;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Typically only Byte 0 and Byte 2 are used. So for example to send a USB HID report that ‘a’ is pressed, I send&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;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="color:#808080;font-size:12pt;font-family:courier new,courier;"&gt;Byte 0: 0x00 (no modifier) Byte 2: 0x04 (is the code for key &amp;#39;a&amp;#39;) all other bytes are 0x00&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:12pt;"&gt;To send the a report that ‘A’ is pressed (which is SHIFT+a):&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;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="color:#808080;font-size:12pt;font-family:courier new,courier;"&gt;Byte 0: 0x02 (left SHIFT key pressed) Byte 2: 0x04 (is the code for key &amp;#39;a&amp;#39;) all other bytes are 0x00&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-size:12pt;"&gt;It is important to note that these reports are ‘keys are down’ reports. And as long as I do not send a new report, the last sent report is still active (or key pressed). So I need to send a message for the ‘release’ event, which is a report with all bytes zero:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="color:#808080;font-size:12pt;font-family:courier new,courier;"&gt;Byte 0: 0x00 (no modifier key pressed) Byte 2: 0x00 (no key pressed) all other bytes are 0x00&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-size:12pt;"&gt;The Key Usage codes are documented in chapter 10 of the&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;a class="jive-link-external-small" href="http://www.usb.org/developers/devclass_docs/Hut1_11.pdf" rel="nofollow ugc noopener" style="font-family:inherit;color:#1982d1;font-size:15px;" target="_blank"&gt;HID Usage Tables of the USB Standard Document.&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-size:12pt;"&gt;The FSL_USB_HID_Keyboard_Device Processor Expert component I have implemented makes it really easy to use.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;h1 style="background-color:#ffffff;text-indent:0px;margin:0 0 0.81em;color:#000000;"&gt;&lt;span style="font-size:12pt;"&gt;FSL_USB_HID_Keyboard_Device Interface&lt;/span&gt;&lt;/h1&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-size:12pt;"&gt;The component offers the following methods and events:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;font-family:inherit;font-size:15px;border:#1982d1 0px;"&gt;&lt;span style="font-size:12pt;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/06/hid-keyboard-device-interface.png" rel="nofollow ugc noopener" style="color:#1982d1;font-size:15px;" target="_blank"&gt;&lt;img loading="lazy" alt="HID Keyboard Device Interface" class="jiveImage size-full wp-image-8521" src="http://mcuoneclipse.files.wordpress.com/2013/06/hid-keyboard-device-interface.png?w=584" style="font-size:15px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;p class="wp-caption-text" style="margin:0;padding-bottom:5px;margin:0 0 0.6em;padding-left:40px;font-family:Georgia, serif;color:#666666;font-size:12px;padding-top:10px;"&gt;&lt;span style="font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;HID Keyboard Device Interface&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;span style="font-family:inherit;font-size:15px;"&gt;&lt;strong&gt;App_Task()&lt;/strong&gt;&lt;/span&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;needs be called periodically. With this the elements from the ring buffer are sent to the USB bus. Call this method after you have used any of the Send methods. This routine returns ERR_OK if the device has been enumerated (is connected to the host).&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;span style="font-family:inherit;font-size:15px;"&gt;&lt;strong&gt;SendStr()&lt;/strong&gt;&lt;/span&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;can be used to send an ASCII string. This method translates the string into USB HID messages and places them into the ring buffer to be processed by&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;span style="font-family:inherit;font-size:15px;"&gt;&lt;strong&gt;App_Task()&lt;/strong&gt;&lt;/span&gt;.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;span style="font-family:inherit;font-size:15px;"&gt;&lt;strong&gt;SendChar()&lt;/strong&gt;&lt;/span&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;is the same as SendStr(), but sends a single character only.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;span style="font-family:inherit;font-size:15px;"&gt;&lt;strong&gt;Send()&lt;/strong&gt;&lt;/span&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;is used to send native USB HID code. As for the other Send routines, it places the item into the buffer to be processed later by&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;code&gt;App_Task()&lt;/code&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;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Examples how to use 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;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;code class="keyword cpp bold"&gt;for&lt;/code&gt;&lt;code class="cpp plain"&gt;(;;) {&lt;/code&gt;&lt;/p&gt;&lt;p class="number2 alt1 line index1" style="margin:0;background-color:white;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="keyword cpp bold"&gt;if&lt;/code&gt; &lt;code class="cpp plain"&gt;(HIDK1_App_Task()==ERR_OK) { &lt;/code&gt;&lt;code class="cpp comments"&gt;/* run the USB application task: this will send the buffer */&lt;/code&gt;&lt;/p&gt;&lt;p class="number3 index2 alt2 line" style="margin:0;background-color:white;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp comments"&gt;/* ok: we are connected! */&lt;/code&gt;&lt;/p&gt;&lt;p class="index3 number4 alt1 line" style="margin:0;background-color:white;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp plain"&gt;(&lt;/code&gt;&lt;code class="keyword cpp bold"&gt;void&lt;/code&gt;&lt;code class="cpp plain"&gt;)HIDK1_SendStr((unsigned &lt;/code&gt;&lt;code class="color1 cpp bold"&gt;char&lt;/code&gt;&lt;code class="cpp plain"&gt;*)&lt;/code&gt;&lt;code class="string cpp"&gt;&amp;quot;Hello!&amp;quot;&lt;/code&gt;&lt;code class="cpp plain"&gt;); &lt;/code&gt;&lt;code class="cpp comments"&gt;/* send a string */&lt;/code&gt;&lt;/p&gt;&lt;p class="index4 alt2 line number5" style="margin:0;background-color:white;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp plain"&gt;}&lt;/code&gt;&lt;/p&gt;&lt;p class="index5 alt1 line number6" style="margin:0;background-color:white;"&gt;&lt;code class="cpp plain"&gt;}&lt;/code&gt;&lt;/p&gt;&lt;p class="index5 alt1 line number6" style="margin:0;background-color:white;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;code class="cpp plain"&gt;&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;&lt;blockquote class="jive-quote" style="background-color:#ffffff;text-indent:0px;margin:0 3em;color:#373737;"&gt;&lt;p style="margin:0;margin:0 0 1.62em;font-family:inherit;font-size:15px;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_exclaim.gif?m=1129645325g"&gt;&lt;img loading="lazy" alt=":!:" class="jiveImage wp-smiley" src="http://s0.wp.com/wp-includes/images/smilies/icon_exclaim.gif?m=1129645325g" /&gt;&lt;/a&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;I’m ignoring here the return code of SendStr(). It would return ERR_TXFULL in case the ring buffer is not able to store the string. In that case either increase the buffer size, or send smaller strings and call&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;code&gt;App_Task()&lt;/code&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;in between.&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&amp;nbsp; &lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Once the device is connected and has finished enumeration,&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;code&gt;App_Task()&lt;/code&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;will return&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;code&gt;ERR_OK&lt;/code&gt;. Then the applications places the string “Hello!” in the ring buffer, which is sent to the host in the next&lt;code&gt;App_Task()&lt;/code&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;call, as if would have typed it on the keyboard.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&amp;nbsp; &lt;/p&gt;&lt;blockquote class="jive-quote" style="background-color:#ffffff;text-indent:0px;margin:0 3em;color:#373737;"&gt;&lt;p style="margin:0;margin:0 0 1.62em;font-family:inherit;font-size:15px;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_exclaim.gif?m=1129645325g"&gt;&lt;img loading="lazy" alt=":!:" class="jiveImage wp-smiley" src="http://s0.wp.com/wp-includes/images/smilies/icon_exclaim.gif?m=1129645325g" /&gt;&lt;/a&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;It happened to me that such test code writes text to my host machine, potentially overwriting my stuff. I recommend to have a notepad window open (with active focus) so the board can write into that space instead overwriting your sources in the editor&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;a href="http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif?m=1129645325g"&gt;&lt;img loading="lazy" alt=";-)" class="jiveImage wp-smiley" src="http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif?m=1129645325g" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;margin:0 0 1.62em;font-family:inherit;font-size:15px;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_idea.gif?m=1129645325g"&gt;&lt;img loading="lazy" alt=":idea:" class="jiveImage wp-smiley" src="http://s0.wp.com/wp-includes/images/smilies/icon_idea.gif?m=1129645325g" /&gt;&lt;/a&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;you might get a ‘+’ character instead of the ‘!’. This is because my driver does not support different keyboard layouts and mappings. Contributions are more than welcome&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g"&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;/blockquote&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&amp;nbsp; &lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;To send a single ASCII character is simple:&lt;/span&gt;&lt;/p&gt;&lt;p class="container" style="margin:0;"&gt;&lt;/p&gt;&lt;div class="number1 alt2 line index0" style="background-color:white;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;code class="cpp plain"&gt;&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt;&lt;/p&gt;&lt;div class="number1 alt2 line index0" style="background-color:white;"&gt;&lt;code class="cpp plain"&gt;(&lt;/code&gt;&lt;code class="keyword cpp bold"&gt;void&lt;/code&gt;&lt;code class="cpp plain"&gt;)HIDK1_SendChar(&lt;/code&gt;&lt;code class="string cpp"&gt;&amp;#39;A&amp;#39;&lt;/code&gt;&lt;code class="cpp plain"&gt;); &lt;/code&gt;&lt;code class="cpp comments"&gt;/* send the A character */&lt;/code&gt;&lt;/div&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Knowing the USB CDC protocol, it cannot send just the ‘A’ character. USB CDC defines the ‘a’ (and ‘A’) keyboard character with the value 0×04:&lt;/span&gt;&lt;/p&gt;&lt;div class="number1 alt2 line index0" style="background-color:white;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;code class="cpp preprocessor"&gt;&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;p class="container" style="margin:0;"&gt;&lt;/p&gt;&lt;div class="number1 alt2 line index0" style="background-color:white;"&gt;&lt;code class="cpp preprocessor"&gt;#define KEY_A&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;&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; 0x04&lt;/code&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;The information if it is ‘a’ or ‘A’ is encoded as ‘modifier’: if the SHIFT key is pressed or not. And there are several modifier flags available in the header file of the component:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:courier new,courier;font-size:10pt;"&gt;&lt;code class="cpp preprocessor"&gt;#define MODIFERKEYS_NONE&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="number2 alt1 line index1" style="margin:0;background-color:white;"&gt;&lt;span style="font-family:courier new,courier;font-size:10pt;"&gt;&lt;code class="cpp preprocessor"&gt;#define MODIFERKEYS_LEFT_CTRL&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;&amp;nbsp;&amp;nbsp; 0x01&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="number3 index2 alt2 line" style="margin:0;background-color:white;"&gt;&lt;span style="font-family:courier new,courier;font-size:10pt;"&gt;&lt;code class="cpp preprocessor"&gt;#define MODIFERKEYS_LEFT_SHIFT&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;&amp;nbsp; 0x02&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="index3 number4 alt1 line" style="margin:0;background-color:white;"&gt;&lt;span style="font-family:courier new,courier;font-size:10pt;"&gt;&lt;code class="cpp preprocessor"&gt;#define MODIFERKEYS_LEFT_ALT&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x04&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="index4 alt2 line number5" style="margin:0;background-color:white;"&gt;&lt;span style="font-family:courier new,courier;font-size:10pt;"&gt;&lt;code class="cpp preprocessor"&gt;#define MODIFERKEYS_LEFT_GUI&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x08&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="index5 alt1 line number6" style="margin:0;background-color:white;"&gt;&lt;span style="font-family:courier new,courier;font-size:10pt;"&gt;&lt;code class="cpp preprocessor"&gt;#define MODIFERKEYS_RIGHT_CTRL&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;&amp;nbsp; 0x10&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="number7 alt2 index6 line" style="margin:0;background-color:white;"&gt;&lt;span style="font-family:courier new,courier;font-size:10pt;"&gt;&lt;code class="cpp preprocessor"&gt;#define MODIFERKEYS_RIGHT_SHIFT&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; 0x20&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="index7 number8 alt1 line" style="margin:0;background-color:white;"&gt;&lt;span style="font-family:courier new,courier;font-size:10pt;"&gt;&lt;code class="cpp preprocessor"&gt;#define MODIFERKEYS_RIGHT_ALT&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;&amp;nbsp;&amp;nbsp; 0x40&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="number9 alt2 line index8" style="margin:0;background-color:white;"&gt;&lt;span style="font-family:courier new,courier;font-size:10pt;"&gt;&lt;code class="cpp preprocessor"&gt;#define MODIFERKEYS_RIGHT_GUI&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;&amp;nbsp;&amp;nbsp; 0x80&lt;/code&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;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;So to send ‘A’, I need to send&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;code&gt;MODIFERKEYS_LEFT_SHIFT&lt;/code&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;and&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;code&gt;KEY_A&lt;/code&gt;.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;This information is put together by&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;code&gt;SendChar()&lt;/code&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;using the&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;code&gt;hidKeyCode&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;/code&gt;table:&lt;/span&gt;&lt;/p&gt;&lt;p class="number2 alt1 line index1" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;div class="number1 alt2 line index0" style="background-color:white;"&gt;&lt;code class="cpp plain"&gt;byte HIDK1_SendChar(byte ch)&lt;/code&gt;&lt;/div&gt;&lt;p class="number2 alt1 line index1" style="margin:0;background-color:white;"&gt;&lt;code class="cpp plain"&gt;{&lt;/code&gt;&lt;/p&gt;&lt;p class="number3 index2 alt2 line" style="margin:0;background-color:white;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="keyword cpp bold"&gt;if&lt;/code&gt; &lt;code class="cpp plain"&gt;(ch&amp;amp;0x7F) { &lt;/code&gt;&lt;code class="cpp comments"&gt;/* only handle 0x00..0x7F */&lt;/code&gt;&lt;/p&gt;&lt;p class="index3 number4 alt1 line" style="margin:0;background-color:white;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp plain"&gt;Tx2_Put(hidKeyCode[ch]); &lt;/code&gt;&lt;code class="cpp comments"&gt;/* put 16bit value (modifier|code) into buffer */&lt;/code&gt;&lt;/p&gt;&lt;p class="index4 alt2 line number5" style="margin:0;background-color:white;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp plain"&gt;}&lt;/code&gt;&lt;/p&gt;&lt;p class="index5 alt1 line number6" style="margin:0;background-color:white;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp plain"&gt;Tx2_Put((MODIFERKEYS_NONE&amp;lt;&amp;lt;8)|KEY_NONE); &lt;/code&gt;&lt;code class="cpp comments"&gt;/* send release message */&lt;/code&gt;&lt;/p&gt;&lt;p class="number7 alt2 index6 line" style="margin:0;background-color:white;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="keyword cpp bold"&gt;return&lt;/code&gt; &lt;code class="cpp plain"&gt;ERR_OK;&lt;/code&gt;&lt;/p&gt;&lt;p class="index7 number8 alt1 line" style="margin:0;background-color:white;"&gt;&lt;code class="cpp plain"&gt;}&lt;/code&gt;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&amp;nbsp; &lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Note that the above code uses a second&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;code&gt;Put()&lt;/code&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;with&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;code&gt;MODIFIERKEYS_NONE&lt;/code&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;and&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;code&gt;KEY_NONE&lt;/code&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;which is a ‘keys release’ message (actually it says ‘no keys pressed’). The HID protocol sends the actual state of a key. So if I send the information ‘the A key is pressed’ the host assumes that I still have that key pressed until I send another message about the new key. If I would not send that release message, the host assumes that the key ‘A’ is still pressed, and repeats the character. That’s why I send a ‘release’ message right afterwards to tell the host that all keys have been released.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;code&gt;SendChar()&lt;/code&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;and&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;code&gt;SendStr()&lt;/code&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;perform automatic ASCII to HID code translation. If I want to send HID codes directly, I can use the method&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;code&gt;Send()&lt;/code&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;of the component:&lt;/span&gt;&lt;/p&gt;&lt;p class="number2 alt1 line index1" style="margin:0;background-color:white;border-right:#6ce26c 3px solid;"&gt;&amp;nbsp; &lt;/p&gt;&lt;div class="number1 alt2 line index0" style="background-color:white;"&gt;&lt;code class="cpp plain"&gt;byte HIDK1_Send(byte modifier, byte key)&lt;/code&gt;&lt;/div&gt;&lt;p class="number2 alt1 line index1" style="margin:0;background-color:white;"&gt;&lt;code class="cpp plain"&gt;{&lt;/code&gt;&lt;/p&gt;&lt;p class="number3 index2 alt2 line" style="margin:0;background-color:white;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="keyword cpp bold"&gt;return&lt;/code&gt; &lt;code class="cpp plain"&gt;Tx2_Put((modifier&amp;lt;&amp;lt;8)|key); &lt;/code&gt;&lt;code class="cpp comments"&gt;/* put 16bit value (modifier|code) into buffer */&lt;/code&gt;&lt;/p&gt;&lt;p class="index3 number4 alt1 line" style="margin:0;background-color:white;"&gt;&lt;code class="cpp plain"&gt;}&lt;/code&gt;&lt;/p&gt;&lt;p class="index3 number4 alt1 line" style="margin:0;background-color:white;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;code class="cpp plain"&gt;&amp;nbsp; &lt;/code&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;So for example if I want to send my ‘print screen’ action, I do it wit:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:courier new,courier;font-size:10pt;"&gt;&lt;code class="cpp plain"&gt;HIDK1_Send(MODIFERKEYS_NONE, KEY_PRINTSCREEN);&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="number2 alt1 line index1" style="margin:0;background-color:white;"&gt;&lt;span style="font-family:courier new,courier;font-size:10pt;"&gt;&lt;code class="cpp plain"&gt;HIDK1_Send(MODIFERKEYS_NONE, KEY_NONE); &lt;/code&gt;&lt;code class="cpp comments"&gt;/* release key */&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&amp;nbsp; &lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;And if I need CTRL+ALT+DELETE, then it is&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:courier new,courier;font-size:10pt;"&gt;&lt;code class="cpp plain"&gt;HIDK1_Send(MODIFERKEYS_LEFT_CTRL|MODIFERKEYS_RIGHT_ALT, KEY_DELETE);&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="number2 alt1 line index1" style="margin:0;background-color:white;"&gt;&lt;span style="font-family:courier new,courier;font-size:10pt;"&gt;&lt;code class="cpp plain"&gt;HIDK1_Send(MODIFERKEYS_NONE, KEY_NONE); &lt;/code&gt;&lt;code class="cpp comments"&gt;/* release key */&lt;/code&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&amp;nbsp; &lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Pretty easy&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g"&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;br /&gt;&amp;nbsp; &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;h1 style="background-color:#ffffff;text-indent:0px;margin:0 0 0.81em;color:#000000;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;The Application&lt;/span&gt;&lt;/h1&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Now I have everything in place. What I want is an application which sends the ‘Print Screen’ key event to the host with a single button press. For this I re-use the reset button of my FRDM-KL25Z (see&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;a class="jive-link-external-small" href="http://mcuoneclipse.com/2013/02/16/using-the-reset-button-on-the-freedom-board-as-user-button/" rel="nofollow ugc noopener" style="font-family:inherit;color:#1982d1;font-size:15px;" target="_blank" title="Using the Reset Button on the Freedom Board as User Button"&gt;this post&lt;/a&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;how to do this). Then to add LEDs to show the status of the USB enumeration (see&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;a class="jive-link-external-small" href="http://mcuoneclipse.com/2012/12/27/leds-for-kinetis-simplified/" rel="nofollow ugc noopener" style="font-family:inherit;color:#1982d1;font-size:15px;" target="_blank"&gt;this post how to add LED’s&lt;/a&gt;). Adding some mechanics for LED blinking and button debouncing, and voilà:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;div class="number1 alt2 line index0" style="background-color:white;"&gt;&lt;code class="keyword cpp bold"&gt;&lt;/code&gt;&lt;/div&gt;&lt;div class="number1 alt2 line index0" style="background-color:white;"&gt;&lt;code class="keyword cpp bold"&gt;for&lt;/code&gt;&lt;code class="cpp plain"&gt;(;;) {&lt;/code&gt;&lt;/div&gt;&lt;p class="number2 alt1 line index1" style="margin:0;background-color:white;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp plain"&gt;WAIT1_Waitms(10);&lt;/code&gt;&lt;/p&gt;&lt;p class="number3 index2 alt2 line" style="margin:0;background-color:white;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp plain"&gt;cnt++;&lt;/code&gt;&lt;/p&gt;&lt;p class="index3 number4 alt1 line" style="margin:0;background-color:white;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="keyword cpp bold"&gt;if&lt;/code&gt; &lt;code class="cpp plain"&gt;(SW1_GetVal()==0) { &lt;/code&gt;&lt;code class="cpp comments"&gt;/* button pressed */&lt;/code&gt;&lt;/p&gt;&lt;p class="index4 alt2 line number5" style="margin:0;background-color:white;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp plain"&gt;WAIT1_Waitms(100); &lt;/code&gt;&lt;code class="cpp comments"&gt;/* wait for debouncing */&lt;/code&gt;&lt;/p&gt;&lt;p class="index5 alt1 line number6" style="margin:0;background-color:white;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/code&gt;&lt;code class="keyword cpp bold"&gt;if&lt;/code&gt; &lt;code class="cpp plain"&gt;(SW1_GetVal()==0) { &lt;/code&gt;&lt;code class="cpp comments"&gt;/* still pressed */&lt;/code&gt;&lt;/p&gt;&lt;p class="number7 alt2 index6 line" style="margin:0;background-color:white;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp comments"&gt;/* send print screen */&lt;/code&gt;&lt;/p&gt;&lt;p class="index7 number8 alt1 line" style="margin:0;background-color:white;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp plain"&gt;HIDK1_Send(MODIFERKEYS_NONE, KEY_PRINTSCREEN);&lt;/code&gt;&lt;/p&gt;&lt;p class="number9 alt2 line index8" style="margin:0;background-color:white;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp plain"&gt;HIDK1_Send(MODIFERKEYS_NONE, KEY_NONE); &lt;/code&gt;&lt;code class="cpp comments"&gt;/* release key */&lt;/code&gt;&lt;/p&gt;&lt;p class="alt1 line index9 number10" style="margin:0;background-color:white;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp plain"&gt;}&lt;/code&gt;&lt;/p&gt;&lt;p class="alt2 index10 line number11" style="margin:0;background-color:white;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/code&gt;&lt;code class="keyword cpp bold"&gt;while&lt;/code&gt;&lt;code class="cpp plain"&gt;(SW1_GetVal()==0) {} &lt;/code&gt;&lt;code class="cpp comments"&gt;/* wait until button is released */&lt;/code&gt;&lt;/p&gt;&lt;p class="number12 alt1 line index11" style="margin:0;background-color:white;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp plain"&gt;}&lt;/code&gt;&lt;/p&gt;&lt;p class="number13 alt2 line index12" style="margin:0;background-color:white;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="keyword cpp bold"&gt;if&lt;/code&gt; &lt;code class="cpp plain"&gt;(HIDK1_App_Task()==ERR_OK) { &lt;/code&gt;&lt;code class="cpp comments"&gt;/* run the USB application task: this will send the buffer */&lt;/code&gt;&lt;/p&gt;&lt;p class="index13 number14 alt1 line" style="margin:0;background-color:white;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/code&gt;&lt;code class="keyword cpp bold"&gt;if&lt;/code&gt; &lt;code class="cpp plain"&gt;((cnt%100)==0) {&lt;/code&gt;&lt;/p&gt;&lt;p class="index14 number15 alt2 line" style="margin:0;background-color:white;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp plain"&gt;LEDR_Off();&lt;/code&gt;&lt;/p&gt;&lt;p class="number16 index15 alt1 line" style="margin:0;background-color:white;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp plain"&gt;LEDG_Neg(); &lt;/code&gt;&lt;code class="cpp comments"&gt;/* blink green LED if connected */&lt;/code&gt;&lt;/p&gt;&lt;p class="number17 index16 alt2 line" style="margin:0;background-color:white;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp plain"&gt;}&lt;/code&gt;&lt;/p&gt;&lt;p class="index17 alt1 line number18" style="margin:0;background-color:white;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp plain"&gt;} &lt;/code&gt;&lt;code class="keyword cpp bold"&gt;else&lt;/code&gt; &lt;code class="cpp plain"&gt;{&lt;/code&gt;&lt;/p&gt;&lt;p class="alt2 index18 line number19" style="margin:0;background-color:white;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/code&gt;&lt;code class="keyword cpp bold"&gt;if&lt;/code&gt; &lt;code class="cpp plain"&gt;((cnt%200)==0) {&lt;/code&gt;&lt;/p&gt;&lt;p class="number20 alt1 line index19" style="margin:0;background-color:white;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp plain"&gt;LEDG_Off();&lt;/code&gt;&lt;/p&gt;&lt;p class="index20 alt2 line number21" style="margin:0;background-color:white;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp plain"&gt;LEDR_Neg(); &lt;/code&gt;&lt;code class="cpp comments"&gt;/* blink red LED if not connected */&lt;/code&gt;&lt;/p&gt;&lt;p class="index21 alt1 line number22" style="margin:0;background-color:white;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp plain"&gt;}&lt;/code&gt;&lt;/p&gt;&lt;p class="alt2 number23 line index22" style="margin:0;background-color:white;"&gt;&lt;code class="spaces cpp"&gt;&amp;nbsp; &lt;/code&gt;&lt;code class="cpp plain"&gt;}&lt;/code&gt;&lt;/p&gt;&lt;p class="number24 alt1 line index23" style="margin:0;background-color:white;"&gt;&lt;code class="cpp plain"&gt;}&lt;/code&gt;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;The red RGB LED blinks if not connected to the host, and the green one if it is connected as USB HID Keyboard. And when I press the reset button, it sends the ‘Print Screen’ key to the host. Finally I can do ‘print screen’ with my left hand while having my right hand on the (FRDM-KL25Z) keyboard :mrgeen:&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;h1 style="background-color:#ffffff;text-indent:0px;margin:0 0 0.81em;color:#000000;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Summary&lt;/span&gt;&lt;/h1&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;With the creation of the USB HID Keyboard Device Processor Expert component, I have turned my FRDM-KL25Z init a generic USB keyboard device. With a simple button press I can send any keyboard actions to my laptop, making such as ‘print screen’ a single button press again. So it makes it a great device even for users with disabilities. And my ‘disability’ is solved now too: I get a print screen with the press of single button&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;a href="http://s2.wp.com/wp-includes/images/smilies/icon_mrgreen.gif?m=1129645325g"&gt;&lt;img loading="lazy" alt=":mrgreen:" class="jiveImage wp-smiley" src="http://s2.wp.com/wp-includes/images/smilies/icon_mrgreen.gif?m=1129645325g" /&gt;&lt;/a&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;:&lt;br /&gt;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;font-family:inherit;font-size:15px;border:#1982d1 0px;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/06/using-frdm-kl25z-as-usb-keyboard-device.png" rel="nofollow ugc noopener" style="color:#1982d1;font-size:15px;" target="_blank"&gt;&lt;img loading="lazy" alt="Using FRDM-KL25Z as USB Keyboard Device" class="wp-image-8516 jiveImage size-full" src="http://mcuoneclipse.files.wordpress.com/2013/06/using-frdm-kl25z-as-usb-keyboard-device.png?w=584" style="font-size:15px;" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p class="wp-caption-text" style="margin:0;padding-bottom:5px;margin:0 0 0.6em;padding-left:40px;font-family:Georgia, serif;color:#666666;font-size:12px;padding-top:10px;"&gt;&lt;span style="font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;Using FRDM-KL25Z as USB Keyboard Device&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Other ideas I have in mind: I thinking of turning the FRDM board into a wireless presenter. All what I need on top of this is either Bluetooth (but this would need to be a Bluetooth HID Keyboard), or maybe just using two FRDM boards: one is the keyboard dongle, and the other is sending data over the wireless communication channels. Still thinking about the best solution, and ideas are welcome.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;The project created above (along with the components) are available in attachement to this post. While it does not support international keyboard mappings, that project has been very useful for me. I hope it is useful for you too.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Happy Keyboarding&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g"&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 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/116995"&gt;&lt;a href="https://community.element14.com/cfs-file/__key/communityserver-wikis-components-files/00-00-00-01-49/Freedom_5F00_USB_5F00_HID_5F00_Kbd.zip"&gt;community.element14.com/.../Freedom_5F00_USB_5F00_HID_5F00_Kbd.zip&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&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/117011"&gt;&lt;a href="https://community.element14.com/cfs-file/__key/communityserver-wikis-components-files/00-00-00-01-49/0211.ProcessorExpertComponents070813.zip"&gt;community.element14.com/.../0211.ProcessorExpertComponents070813.zip&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: keyboard, cortex-m0+, freescale, freedom_board, Cortex-M, kinetis, usb, cortex, frdm-kl25z, kinetis-l, cortex-m0, arm, freedom&lt;/div&gt;
</description></item><item><title>Keil µVision (ARM-MDK) Tutorial for all FRDM with Processor Expert Driver Suite</title><link>https://community.element14.com/products/devtools/kinetiskl2freedomboard/w/documents/11273/keil-vision-arm-mdk-tutorial-for-all-frdm-with-processor-expert-driver-suite</link><pubDate>Fri, 08 Oct 2021 05:34:33 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:7615dc48-3f3f-47e1-8455-d4e59a4c0506</guid><dc:creator>FreescaleTools_and_Software</dc:creator><description>Current Revision posted to Documents by FreescaleTools_and_Software on 10/8/2021 5:34:33 AM&lt;br /&gt;
&lt;p style="margin:0;text-align:left;background-color:#ffffff;text-indent:0px;color:#333333;"&gt;&lt;span style="color:#ff6600;font-size:15px;font-family:tahoma, arial, helvetica, sans-serif;"&gt;&lt;em&gt;This tutorial was extracted from Erich Styger blog&lt;span class="Apple-converted-space" style="font-size:15px;"&gt;&lt;span class="Apple-converted-space" style="font-size:15px;"&gt;&lt;span class="Apple-converted-space" style="font-size:15px;"&gt;&lt;span class="Apple-converted-space" style="font-size:15px;"&gt;&lt;span class="Apple-converted-space" style="font-size:15px;"&gt;&lt;span class="Apple-converted-space" style="font-size:15px;"&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a class="jive-link-external-small" href="http://mcuoneclipse.wordpress.com/" rel="nofollow" style="color:#355491;font-size:15px;text-decoration:underline;" target="_blank"&gt;http://mcuoneclipse.wordpress.com&lt;/a&gt;&lt;span class="Apple-converted-space" style="font-size:15px;"&gt;&lt;span class="Apple-converted-space" style="font-size:15px;"&gt;&lt;span class="Apple-converted-space" style="font-size:15px;"&gt;&lt;span class="Apple-converted-space" style="font-size:15px;"&gt;&lt;span class="Apple-converted-space" style="font-size:15px;"&gt;&lt;span class="Apple-converted-space" style="font-size:15px;"&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;with his agreement.&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;text-align:left;background-color:#ffffff;text-indent:0px;color:#333333;"&gt;&lt;a href="/servlet/JiveServlet/downloadImage/102-54862-1-160635/Freescale.bmp" style="color:#355491;font-size:12px;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/175x85/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_25851.bmp"&gt;&lt;img alt="image" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_25851.bmp" style="max-height: 85px;max-width: 175px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/a&gt;&lt;a href="/servlet/JiveServlet/downloadImage/102-54862-1-160636/Kinetis-L.jpg" style="color:#355491;font-size:12px;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/87x85/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_25852.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/contentimage_25852.jpg-87x85.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=rAiAbm83cxHZKNVOp8vSkHnT2hJtwXyh9WuFkF0vIjc%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=lw3vl9FqzfR9tHJgP7g6Lg==" style="max-height: 85px;max-width: 87px;" /&gt;&lt;/a&gt;&lt;/span&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;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;The good thing with using ARM microcontroller is: there are plenty of tool choices. Even myself, I’m using multiple different tool chains. And while I’m heavily using Eclipse, there are non-Eclipse tool chains which have their advantages too.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;The cool thing with CodeWarrior is that beside of Eclipse based, it comes with Processor Expert integrated. And I’m using Processor Expert a lot in my projects. But using Processor Expert does not mean I’m limited to CodeWarrior or Eclipse. So I can use&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;CodeRed&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;or&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;IAR&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;as tool chain with it. And this post is about using Processor Expert with the&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;a class="jive-link-external-small" href="http://www.keil.com/uvision/" rel="nofollow ugc noopener" style="font-family:inherit;color:#1982d1;font-size:15px;" target="_blank" title="Keil uVision Web Site"&gt;µVision&lt;/a&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;tool chain from&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;a class="jive-link-external-small" href="http://www.keil.com/" rel="nofollow ugc noopener" style="font-family:inherit;color:#1982d1;font-size:15px;" target="_blank" title="Keil Web Site"&gt;Keil/ARM&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="alignnone wp-caption" style="margin:0;background-color:#eeeeee;text-indent:0px;margin:0.4em 0 1.62em;color:#373737;padding:9px;"&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;font-family:inherit;font-size:15px;border:#1982d1 0px;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/06/keil-uvision-splash-screen.png" rel="nofollow ugc noopener" style="color:#1982d1;font-size:15px;" target="_blank"&gt;&lt;img loading="lazy" alt="Keil uVision Splash Screen" class="jiveImage size-full wp-image-8495" src="http://mcuoneclipse.files.wordpress.com/2013/06/keil-uvision-splash-screen.png?w=584" style="font-size:15px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding-bottom:5px;margin:0 0 0.6em;padding-left:40px;font-family:Georgia, serif;color:#666666;font-size:12px;padding-top:10px;"&gt;&lt;span style="font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;Keil uVision Splash Screen&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;h1 style="background-color:#ffffff;text-indent:0px;margin:0 0 0.81em;color:#000000;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Software Downloads&lt;/span&gt;&lt;/h1&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Keil is owned by ARM and of course supports ARM devices&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g"&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 class="Apple-converted-space"&gt; &lt;/span&gt;. Their IDE product is&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;a class="jive-link-external-small" href="http://www.keil.com/uvision/" rel="nofollow ugc noopener" style="font-family:inherit;color:#1982d1;font-size:15px;" target="_blank" title="Keil uVision Web Site"&gt;µVision&lt;/a&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;(the current version is µVision4).&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Processor Expert is available as ‘standalone’ version (called ‘Driver Suite’) from Freescale. Basically this is a stripped down Eclipse version with Processor Expert in it. It will be used to configure the drivers/components, and then things get imported and compiled by µVision (like IAR).&lt;/span&gt;&lt;/p&gt;&lt;h1 style="background-color:#ffffff;text-indent:0px;margin:0 0 0.81em;color:#000000;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Software Installation&lt;/span&gt;&lt;/h1&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;If not already installed, you need the following tools:&lt;/span&gt;&lt;/p&gt;&lt;ol start="1" style="background-color:#ffffff;list-style-type:decimal;text-indent:0px;margin:0 0 1.62em 2.5em;color:#373737;"&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;The µVision IDE, compiler and debugger, available from &lt;a class="jive-link-external-small" href="http://www.keil.com/download/product/" rel="nofollow ugc noopener" style="font-family:inherit;color:#1982d1;font-size:15px;" target="_blank" title="Keil MDK-ARM and uVision Download"&gt;http://www.keil.com/download/product/&lt;/a&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;(MDK-ARM). Current version is V4.71a&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Processor Expert Driver Suite, available from &lt;a class="jive-link-external-small" href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=PE_DRIVER_SUITE" rel="nofollow ugc noopener" style="font-family:inherit;color:#1982d1;font-size:15px;" target="_blank" title="Processor Expert Driver Suite Page"&gt;http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=PE_DRIVER_SUITE&lt;/a&gt; ‘Download’ tab. Current version is Microcontrollers Driver Suite V10.2&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;h1 style="background-color:#ffffff;text-indent:0px;margin:0 0 0.81em;color:#000000;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Processor Expert Driver Suite&lt;/span&gt;&lt;/h1&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; First, I’m going to create a new project with Processor Expert. For this I launch eclipse:&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/06/launching-pexdrv.png" rel="nofollow ugc noopener" style="font-family:inherit;color:#1982d1;font-size:15px;" target="_blank"&gt;&lt;img loading="lazy" alt="Launching PExDrv" class="jiveImage size-full wp-image-8455" src="http://mcuoneclipse.files.wordpress.com/2013/06/launching-pexdrv.png?w=584" style="border:#eeeeee 1px solid;padding:6px;" /&gt;&lt;/a&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding-bottom:5px;margin:0 0 0.6em;padding-left:40px;font-family:Georgia, serif;color:#666666;font-size:12px;padding-top:10px;"&gt;&lt;span style="font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;Launching PExDrv&lt;/em&gt;&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 style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;If this is the first time, it asks me for a new Eclipse workspace:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="alignnone wp-caption" style="margin:0;background-color:#eeeeee;text-indent:0px;margin:0.4em 0 1.62em;color:#373737;padding:9px;"&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;font-family:inherit;font-size:15px;border:#1982d1 0px;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/06/workspace-launcher.png" rel="nofollow ugc noopener" style="color:#1982d1;font-size:15px;" target="_blank"&gt;&lt;img loading="lazy" alt="Workspace Launcher" class="jiveImage size-full wp-image-8456" height="269" src="http://mcuoneclipse.files.wordpress.com/2013/06/workspace-launcher.png?w=584&amp;amp;h=269" style="font-size:15px;" width="584" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding-bottom:5px;margin:0 0 0.6em;padding-left:40px;font-family:Georgia, serif;color:#666666;font-size:12px;padding-top:10px;"&gt;&lt;span style="font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;Workspace Launcher&lt;/em&gt;&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 style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;The it shows the ‘Welcome’ view, from where I go to the workbench:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="alignnone wp-caption" style="margin:0;background-color:#eeeeee;text-indent:0px;margin:0.4em 0 1.62em;color:#373737;padding:9px;"&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;font-family:inherit;font-size:15px;border:#1982d1 0px;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/06/go-to-workbench.png" rel="nofollow ugc noopener" style="color:#1982d1;font-size:15px;" target="_blank"&gt;&lt;img loading="lazy" alt="Go To Workbench" class="jiveImage wp-image-8458 size-full" height="343" src="http://mcuoneclipse.files.wordpress.com/2013/06/go-to-workbench.png?w=584&amp;amp;h=343" style="font-size:15px;" width="584" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding-bottom:5px;margin:0 0 0.6em;padding-left:40px;font-family:Georgia, serif;color:#666666;font-size:12px;padding-top:10px;"&gt;&lt;span style="font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;Go To Workbench&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;br style="background-color:#ffffff;text-indent:0px;color:#373737;" /&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;h1 style="background-color:#ffffff;text-indent:0px;margin:0 0 0.81em;color:#000000;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;External Tools Configuration&lt;/span&gt;&lt;/h1&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;From the workbench, I need to configure µVision as an external tool:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/06/external-tools-configurations.png" rel="nofollow ugc noopener" style="font-family:inherit;color:#1982d1;font-size:15px;" target="_blank"&gt;&lt;img loading="lazy" alt="External Tools Configurations" class="wp-image-8460 jiveImage size-full" height="150" src="http://mcuoneclipse.files.wordpress.com/2013/06/external-tools-configurations.png?w=584&amp;amp;h=150" style="border:#eeeeee 1px solid;padding:6px;" width="584" /&gt;&lt;/a&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding-bottom:5px;margin:0 0 0.6em;padding-left:40px;font-family:Georgia, serif;color:#666666;font-size:12px;padding-top:10px;"&gt;&lt;span style="font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;External Tools Configurations&lt;/em&gt;&lt;/span&gt;&lt;br style="background-color:#ffffff;text-indent:0px;color:#373737;" /&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;blockquote class="jive-quote" style="background-color:#ffffff;text-indent:0px;margin:0 3em;color:#373737;"&gt;&lt;p style="margin:0;margin:0 0 1.62em;font-family:inherit;font-size:15px;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_idea.gif?m=1129645325g"&gt;&lt;img loading="lazy" alt=":idea:" class="jiveImage wp-smiley" src="http://s0.wp.com/wp-includes/images/smilies/icon_idea.gif?m=1129645325g" /&gt;&lt;/a&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;that menu is accessible as well under Run &amp;gt; External Tools.&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;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Next step is to add a new external tool. For this I select the ‘Program’:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="alignnone wp-caption" style="margin:0;background-color:#eeeeee;text-indent:0px;margin:0.4em 0 1.62em;color:#373737;padding:9px;"&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;font-family:inherit;font-size:15px;border:#1982d1 0px;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/06/program-selected.png" rel="nofollow ugc noopener" style="color:#1982d1;font-size:15px;" target="_blank"&gt;&lt;img loading="lazy" alt="Program selected" class="jiveImage wp-image-8461 size-full" src="http://mcuoneclipse.files.wordpress.com/2013/06/program-selected.png?w=584" style="font-size:15px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding-bottom:5px;margin:0 0 0.6em;padding-left:40px;font-family:Georgia, serif;color:#666666;font-size:12px;padding-top:10px;"&gt;&lt;span style="font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;Program selected&lt;/em&gt;&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 style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;and press the ‘New’ button:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="alignnone wp-caption" style="margin:0;background-color:#eeeeee;text-indent:0px;margin:0.4em 0 1.62em;color:#373737;padding:9px;"&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;font-family:inherit;font-size:15px;border:#1982d1 0px;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/06/new-program.png" rel="nofollow ugc noopener" style="color:#1982d1;font-size:15px;" target="_blank"&gt;&lt;img loading="lazy" alt="New Program" class="jiveImage size-full wp-image-8462" height="207" src="http://mcuoneclipse.files.wordpress.com/2013/06/new-program.png?w=584&amp;amp;h=207" style="font-size:15px;" width="584" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding-bottom:5px;margin:0 0 0.6em;padding-left:40px;font-family:Georgia, serif;color:#666666;font-size:12px;padding-top:10px;"&gt;&lt;span style="font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;New Program&lt;/em&gt;&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 style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;This creates a new 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;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="alignnone wp-caption" style="margin:0;background-color:#eeeeee;text-indent:0px;margin:0.4em 0 1.62em;color:#373737;padding:9px;"&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;font-family:inherit;font-size:15px;border:#1982d1 0px;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/06/new-configuration.png" rel="nofollow ugc noopener" style="color:#1982d1;font-size:15px;" target="_blank"&gt;&lt;img loading="lazy" alt="New Configuration" class="jiveImage size-full wp-image-8463" height="460" src="http://mcuoneclipse.files.wordpress.com/2013/06/new-configuration.png?w=584&amp;amp;h=460" style="font-size:15px;" width="584" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding-bottom:5px;margin:0 0 0.6em;padding-left:40px;font-family:Georgia, serif;color:#666666;font-size:12px;padding-top:10px;"&gt;&lt;span style="font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;New Configuration&lt;/em&gt;&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 style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Next I configure the settings:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="alignnone wp-caption" style="margin:0;background-color:#eeeeee;text-indent:0px;margin:0.4em 0 1.62em;color:#373737;padding:9px;"&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;font-family:inherit;font-size:15px;border:#1982d1 0px;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/06/export2uvision-configuration.png" rel="nofollow ugc noopener" style="color:#1982d1;font-size:15px;" target="_blank"&gt;&lt;img loading="lazy" alt="Export2uVision Configuration" class="jiveImage wp-image-8465 size-full" height="564" src="http://mcuoneclipse.files.wordpress.com/2013/06/export2uvision-configuration.png?w=584&amp;amp;h=564" style="font-size:15px;" width="584" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding-bottom:5px;margin:0 0 0.6em;padding-left:40px;font-family:Georgia, serif;color:#666666;font-size:12px;padding-top:10px;"&gt;&lt;span style="font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;Export2uVision Configuration&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Name: just something useful and easy to remember.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Location: Browse where you have µVision installed and use the µVision executable.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Working directory: use&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;span style="font-style:italic;font-family:inherit;font-size:15px;"&gt;&lt;em&gt;${workspace_loc:/${project_path}}&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Arguments: use&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;span style="font-style:italic;font-family:inherit;font-size:15px;"&gt;&lt;em&gt;-i ProjectInfo.xml ${project_name}.uvproj&lt;/em&gt;&lt;/span&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;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;This configures to launch the µVision executable with the working directory of my (currently selected) project. It uses the -i argument to import a project. The project information are inside the ProjectInfo.xml which is generated by Processor Expert. The last argument is the project name µVision should use for when the .uvproj project does not exist yet.&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Press ‘Close’ to return to the workbench.&lt;/span&gt;&lt;/p&gt;&lt;h1 style="background-color:#ffffff;text-indent:0px;margin:0 0 0.81em;color:#000000;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Creating Processor Expert Project&lt;/span&gt;&lt;/h1&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;In the next steps, I’m creating a Processor Expert project for the&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;a class="jive-link-external-small" href="http://www.freescale.com/freedom" rel="nofollow ugc noopener" style="font-family:inherit;color:#1982d1;font-size:15px;" target="_blank" title="Freescale Freedom Boards"&gt;FRDM-KL25Z&lt;/a&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;board.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;To create the project, I use the menu&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;span style="font-style:italic;font-family:inherit;font-size:15px;"&gt;&lt;em&gt;File &amp;gt; New &amp;gt; Processor Expert Project&lt;/em&gt;&lt;/span&gt;:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/06/new-processor-expert-project.png" rel="nofollow ugc noopener" style="font-family:inherit;color:#1982d1;font-size:15px;" target="_blank"&gt;&lt;img loading="lazy" alt="New Processor Expert Project" class="jiveImage size-full wp-image-8467" height="163" src="http://mcuoneclipse.files.wordpress.com/2013/06/new-processor-expert-project.png?w=584&amp;amp;h=163" style="border:#eeeeee 1px solid;padding:6px;" width="584" /&gt;&lt;/a&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding-bottom:5px;margin:0 0 0.6em;padding-left:40px;font-family:Georgia, serif;color:#666666;font-size:12px;padding-top:10px;"&gt;&lt;span style="font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;New Processor Expert Project&lt;/em&gt;&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 style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;I give it a name:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="alignnone wp-caption" style="margin:0;background-color:#eeeeee;text-indent:0px;margin:0.4em 0 1.62em;color:#373737;padding:9px;"&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;font-family:inherit;font-size:15px;border:#1982d1 0px;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/06/project-name.png" rel="nofollow ugc noopener" style="color:#1982d1;font-size:15px;" target="_blank"&gt;&lt;img loading="lazy" alt="Project Name" class="wp-image-8468 jiveImage size-full" src="http://mcuoneclipse.files.wordpress.com/2013/06/project-name.png?w=584" style="font-size:15px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding-bottom:5px;margin:0 0 0.6em;padding-left:40px;font-family:Georgia, serif;color:#666666;font-size:12px;padding-top:10px;"&gt;&lt;span style="font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;Project Name&lt;/em&gt;&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 style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Select the device:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="alignnone wp-caption" style="margin:0;background-color:#eeeeee;text-indent:0px;margin:0.4em 0 1.62em;color:#373737;padding:9px;"&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;font-family:inherit;font-size:15px;border:#1982d1 0px;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/06/selected-device.png" rel="nofollow ugc noopener" style="color:#1982d1;font-size:15px;" target="_blank"&gt;&lt;img loading="lazy" alt="Selected Device" class="jiveImage wp-image-8469 size-full" src="http://mcuoneclipse.files.wordpress.com/2013/06/selected-device.png?w=584" style="font-size:15px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding-bottom:5px;margin:0 0 0.6em;padding-left:40px;font-family:Georgia, serif;color:#666666;font-size:12px;padding-top:10px;"&gt;&lt;span style="font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;Selected Device&lt;/em&gt;&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 style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Using the current perspective:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="alignnone wp-caption" style="margin:0;background-color:#eeeeee;text-indent:0px;margin:0.4em 0 1.62em;color:#373737;padding:9px;"&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;font-family:inherit;font-size:15px;border:#1982d1 0px;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/06/using-current-perspective.png" rel="nofollow ugc noopener" style="color:#1982d1;font-size:15px;" target="_blank"&gt;&lt;img loading="lazy" alt="Using current perspective" class="jiveImage size-full wp-image-8470" src="http://mcuoneclipse.files.wordpress.com/2013/06/using-current-perspective.png?w=584" style="font-size:15px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding-bottom:5px;margin:0 0 0.6em;padding-left:40px;font-family:Georgia, serif;color:#666666;font-size:12px;padding-top:10px;"&gt;&lt;span style="font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;Using current perspective&lt;/em&gt;&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 style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;The next step is important: I need to select the correct compiler to be used (Keil ARM C/C++ Compiler):&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="alignnone wp-caption" style="margin:0;background-color:#eeeeee;text-indent:0px;margin:0.4em 0 1.62em;color:#373737;padding:9px;"&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;font-family:inherit;font-size:15px;border:#1982d1 0px;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/06/selecting-arm-keil-compiler.png" rel="nofollow ugc noopener" style="color:#1982d1;font-size:15px;" target="_blank"&gt;&lt;img loading="lazy" alt="Selecting ARM Keil Compiler" class="wp-image-8471 jiveImage size-full" src="http://mcuoneclipse.files.wordpress.com/2013/06/selecting-arm-keil-compiler.png?w=584" style="font-size:15px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding-bottom:5px;margin:0 0 0.6em;padding-left:40px;font-family:Georgia, serif;color:#666666;font-size:12px;padding-top:10px;"&gt;&lt;span style="font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;Selecting ARM Keil Compiler&lt;/em&gt;&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 style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Finish, and the project gets created.&lt;/span&gt;&lt;/p&gt;&lt;h1 style="background-color:#ffffff;text-indent:0px;margin:0 0 0.81em;color:#000000;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Adding Components&lt;/span&gt;&lt;/h1&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Now I can configure my the Processor Expert components, or add my components from&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;a class="jive-link-external-small" href="http://mcuoneclipse.com/2013/05/09/processor-expert-component-peupd-files-on-github/" rel="nofollow ugc noopener" style="font-family:inherit;color:#1982d1;font-size:15px;" target="_blank" title="Processor Expert Component *.PEupd Files on GitHub"&gt;GitHub&lt;/a&gt;. For my example, I have added a LED and Wait component to have a blinking LED:&lt;/span&gt;&lt;/p&gt;&lt;h1 style="background-color:#ffffff;text-indent:0px;margin:0 0 0.81em;color:#000000;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Generating Code&lt;/span&gt;&lt;/h1&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;To generate the code, I use the ‘Generate Code’ Button:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="alignnone wp-caption" style="margin:0;background-color:#eeeeee;text-indent:0px;margin:0.4em 0 1.62em;color:#373737;padding:9px;"&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;font-family:inherit;font-size:15px;border:#1982d1 0px;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/06/generate-code.png" rel="nofollow ugc noopener" style="color:#1982d1;font-size:15px;" target="_blank"&gt;&lt;img loading="lazy" alt="Generate Code" class="jiveImage wp-image-8472 size-full" src="http://mcuoneclipse.files.wordpress.com/2013/06/generate-code.png?w=584" style="font-size:15px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding-bottom:5px;margin:0 0 0.6em;padding-left:40px;font-family:Georgia, serif;color:#666666;font-size:12px;padding-top:10px;"&gt;&lt;span style="font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;Generate Code&lt;/em&gt;&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 style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Processor Expert has now generated the code and created the ProjectInfo.xml file which I can export to Keil to create an MDK project:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="alignnone wp-caption" style="margin:0;background-color:#eeeeee;text-indent:0px;margin:0.4em 0 1.62em;color:#373737;padding:9px;"&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;font-family:inherit;font-size:15px;border:#1982d1 0px;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/06/generated-code-and-projectinfo-xml.png" rel="nofollow ugc noopener" style="color:#1982d1;font-size:15px;" target="_blank"&gt;&lt;img loading="lazy" alt="Generated Code and ProjectInfo.xml" class="jiveImage size-full wp-image-8473" src="http://mcuoneclipse.files.wordpress.com/2013/06/generated-code-and-projectinfo-xml.png?w=584" style="font-size:15px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding-bottom:5px;margin:0 0 0.6em;padding-left:40px;font-family:Georgia, serif;color:#666666;font-size:12px;padding-top:10px;"&gt;&lt;span style="font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;Generated Code and ProjectInfo.xml&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;br style="background-color:#ffffff;text-indent:0px;color:#373737;" /&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;h1 style="background-color:#ffffff;text-indent:0px;margin:0 0 0.81em;color:#000000;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Exporting to Keil µVision&lt;/span&gt;&lt;/h1&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;To export it to Keil µVision, I launch the external tool I have configured before. As this is the first time, I do not have a launch history&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif?m=1129645325g"&gt;&lt;img loading="lazy" alt=":-(" class="jiveImage wp-smiley" src="http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif?m=1129645325g" /&gt;&lt;/a&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;. So I first select the project (or the ProcessorExpert.pe file in the project), and then use ‘External Tools Configurations…’ again:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="alignnone wp-caption" style="margin:0;background-color:#eeeeee;text-indent:0px;margin:0.4em 0 1.62em;color:#373737;padding:9px;"&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;font-family:inherit;font-size:15px;border:#1982d1 0px;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/06/running-external-tool-the-first-time-with-no-launch-history.png" rel="nofollow ugc noopener" style="color:#1982d1;font-size:15px;" target="_blank"&gt;&lt;img loading="lazy" alt="Running external tool the first time with no launch history" class="jiveImage size-full wp-image-8474" height="385" src="http://mcuoneclipse.files.wordpress.com/2013/06/running-external-tool-the-first-time-with-no-launch-history.png?w=584&amp;amp;h=385" style="font-size:15px;" width="584" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding-bottom:5px;margin:0 0 0.6em;padding-left:40px;font-family:Georgia, serif;color:#666666;font-size:12px;padding-top:10px;"&gt;&lt;span style="font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;Running external tool the first time with no launch history&lt;/em&gt;&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 style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Next, I select the Program I want to run and press ‘Run’:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="alignnone wp-caption" style="margin:0;background-color:#eeeeee;text-indent:0px;margin:0.4em 0 1.62em;color:#373737;padding:9px;"&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;font-family:inherit;font-size:15px;border:#1982d1 0px;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/06/run-the-external-program.png" rel="nofollow ugc noopener" style="color:#1982d1;font-size:15px;" target="_blank"&gt;&lt;img loading="lazy" alt="Run the External Program" class="wp-image-8475 jiveImage size-full" height="500" src="http://mcuoneclipse.files.wordpress.com/2013/06/run-the-external-program.png?w=584&amp;amp;h=500" style="font-size:15px;" width="584" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding-bottom:5px;margin:0 0 0.6em;padding-left:40px;font-family:Georgia, serif;color:#666666;font-size:12px;padding-top:10px;"&gt;&lt;span style="font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;Run the External Program&lt;/em&gt;&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 style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_exclaim.gif?m=1129645325g"&gt;&lt;img loading="lazy" alt=":!:" class="jiveImage wp-smiley" src="http://s0.wp.com/wp-includes/images/smilies/icon_exclaim.gif?m=1129645325g" /&gt;&lt;/a&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;Note: I need to have project (or ProcessorExpert.pe of that project) selected. Otherwise I get an error “Variable references empty selection: …” as my project variable is not defined:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/06/variable-references-empty-selection.png" rel="nofollow ugc noopener" style="font-family:inherit;color:#1982d1;font-size:15px;" target="_blank"&gt;&lt;img loading="lazy" alt="Variable references empty selection" class="wp-image-8486 jiveImage size-full" src="http://mcuoneclipse.files.wordpress.com/2013/06/variable-references-empty-selection.png?w=584" style="border:#eeeeee 1px solid;padding:6px;" /&gt;&lt;/a&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding-bottom:5px;margin:0 0 0.6em;padding-left:40px;font-family:Georgia, serif;color:#666666;font-size:12px;padding-top:10px;"&gt;&lt;span style="font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;Variable references empty selection&lt;/em&gt;&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 style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Now as I have it launched once, it is present in the recent launch list and I can execute it directly with a click:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/06/export2uvision-with-recent-launch.png" rel="nofollow ugc noopener" style="font-family:inherit;color:#1982d1;font-size:15px;" target="_blank"&gt;&lt;img loading="lazy" alt="Export2uVision with recent launch" class="jiveImage size-full wp-image-8480" src="http://mcuoneclipse.files.wordpress.com/2013/06/export2uvision-with-recent-launch.png?w=584" style="border:#eeeeee 1px solid;padding:6px;" /&gt;&lt;/a&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding-bottom:5px;margin:0 0 0.6em;padding-left:40px;font-family:Georgia, serif;color:#666666;font-size:12px;padding-top:10px;"&gt;&lt;span style="font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;Export2uVision with recent launch&lt;/em&gt;&lt;/span&gt;&lt;br style="background-color:#ffffff;text-indent:0px;color:#373737;" /&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;blockquote class="jive-quote" style="background-color:#ffffff;text-indent:0px;margin:0 3em;color:#373737;"&gt;&lt;p style="margin:0;margin:0 0 1.62em;font-family:inherit;font-size:15px;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_idea.gif?m=1129645325g"&gt;&lt;img loading="lazy" alt=":idea:" class="jiveImage wp-smiley" src="http://s0.wp.com/wp-includes/images/smilies/icon_idea.gif?m=1129645325g" /&gt;&lt;/a&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;It is important to have a current project selected. So make sure you select the project folder or the ProcessorExpert.pe file inside the project.&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;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;This has created a µVision project based on the ProjectInfo.xml:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="alignnone wp-caption" style="margin:0;background-color:#eeeeee;text-indent:0px;margin:0.4em 0 1.62em;color:#373737;padding:9px;"&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;font-family:inherit;font-size:15px;border:#1982d1 0px;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/06/uvision-project-created.png" rel="nofollow ugc noopener" style="color:#1982d1;font-size:15px;" target="_blank"&gt;&lt;img loading="lazy" alt="uVision Project Created" class="jiveImage wp-image-8476 size-full" src="http://mcuoneclipse.files.wordpress.com/2013/06/uvision-project-created.png?w=584" style="font-size:15px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding-bottom:5px;margin:0 0 0.6em;padding-left:40px;font-family:Georgia, serif;color:#666666;font-size:12px;padding-top:10px;"&gt;&lt;span style="font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;uVision Project Created&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;br style="background-color:#ffffff;text-indent:0px;color:#373737;" /&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;h1 style="background-color:#ffffff;text-indent:0px;margin:0 0 0.81em;color:#000000;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Launching µVision from Processor Expert Project&lt;/span&gt;&lt;/h1&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Eclipse is able to launch an application based on the file extension. As the .uvproj file extension is associated with µVision, I can double-click on the .uvproj file inside the Eclipse project explorer view:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="alignnone wp-caption" style="margin:0;background-color:#eeeeee;text-indent:0px;margin:0.4em 0 1.62em;color:#373737;padding:9px;"&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;font-family:inherit;font-size:15px;border:#1982d1 0px;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/06/launching-uvision-project-from-eclipse.png" rel="nofollow ugc noopener" style="color:#1982d1;font-size:15px;" target="_blank"&gt;&lt;img loading="lazy" alt="Launching uVision Project from Eclipse" class="wp-image-8482 jiveImage size-full" src="http://mcuoneclipse.files.wordpress.com/2013/06/launching-uvision-project-from-eclipse.png?w=584" style="font-size:15px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding-bottom:5px;margin:0 0 0.6em;padding-left:40px;font-family:Georgia, serif;color:#666666;font-size:12px;padding-top:10px;"&gt;&lt;span style="font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;Launching uVision Project from Eclipse&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;br style="background-color:#ffffff;text-indent:0px;color:#373737;" /&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;blockquote class="jive-quote" style="background-color:#ffffff;text-indent:0px;margin:0 3em;color:#373737;"&gt;&lt;p style="margin:0;margin:0 0 1.62em;font-family:inherit;font-size:15px;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_idea.gif?m=1129645325g"&gt;&lt;img loading="lazy" alt=":idea:" class="jiveImage wp-smiley" src="http://s0.wp.com/wp-includes/images/smilies/icon_idea.gif?m=1129645325g" /&gt;&lt;/a&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;In case the .uvproj file is not shown in the project view, use ‘Refresh’ context menu on it or hit the ‘F5′ key.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;margin:0 0 1.62em;font-family:inherit;font-size:15px;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_exclaim.gif?m=1129645325g"&gt;&lt;img loading="lazy" alt=":!:" class="jiveImage wp-smiley" src="http://s0.wp.com/wp-includes/images/smilies/icon_exclaim.gif?m=1129645325g" /&gt;&lt;/a&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;Note that if I double-click again, it will create another µVision IDE.&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;h1 style="background-color:#ffffff;text-indent:0px;margin:0 0 0.81em;color:#000000;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Open Project in µVision&lt;/span&gt;&lt;/h1&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;And I can load that project from the Keil IDE too. In µVision I use&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;span style="font-style:italic;font-family:inherit;font-size:15px;"&gt;&lt;em&gt;Project &amp;gt; Open Project&lt;/em&gt;&lt;/span&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;menu and browse to the .uvproj created in previous step:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/06/open-project-in-uvision.png" rel="nofollow ugc noopener" style="font-family:inherit;color:#1982d1;font-size:15px;" target="_blank"&gt;&lt;img loading="lazy" alt="Open Project in uVision" class="jiveImage size-full wp-image-8478" height="200" src="http://mcuoneclipse.files.wordpress.com/2013/06/open-project-in-uvision.png?w=584&amp;amp;h=200" style="border:#eeeeee 1px solid;padding:6px;" width="584" /&gt;&lt;/a&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding-bottom:5px;margin:0 0 0.6em;padding-left:40px;font-family:Georgia, serif;color:#666666;font-size:12px;padding-top:10px;"&gt;&lt;span style="font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;Open Project in uVision&lt;/em&gt;&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 style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Now I have the project loaded:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="alignnone wp-caption" style="margin:0;background-color:#eeeeee;text-indent:0px;margin:0.4em 0 1.62em;color:#373737;padding:9px;"&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;font-family:inherit;font-size:15px;border:#1982d1 0px;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/06/loaded-processor-expert-project.png" rel="nofollow ugc noopener" style="color:#1982d1;font-size:15px;" target="_blank"&gt;&lt;img loading="lazy" alt="Loaded Processor Expert Project" class="wp-image-8479 jiveImage size-full" height="488" src="http://mcuoneclipse.files.wordpress.com/2013/06/loaded-processor-expert-project.png?w=584&amp;amp;h=488" style="font-size:15px;" width="584" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding-bottom:5px;margin:0 0 0.6em;padding-left:40px;font-family:Georgia, serif;color:#666666;font-size:12px;padding-top:10px;"&gt;&lt;span style="font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;Loaded Processor Expert Project&lt;/em&gt;&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 style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;F7 performs the build of the project:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="alignnone wp-caption" style="margin:0;background-color:#eeeeee;text-indent:0px;margin:0.4em 0 1.62em;color:#373737;padding:9px;"&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;font-family:inherit;font-size:15px;border:#1982d1 0px;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/06/building-the-project.png" rel="nofollow ugc noopener" style="color:#1982d1;font-size:15px;" target="_blank"&gt;&lt;img loading="lazy" alt="Building the Project" class="jiveImage size-full wp-image-8485" src="http://mcuoneclipse.files.wordpress.com/2013/06/building-the-project.png?w=584" style="font-size:15px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding-bottom:5px;margin:0 0 0.6em;padding-left:40px;font-family:Georgia, serif;color:#666666;font-size:12px;padding-top:10px;"&gt;&lt;span style="font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;Building the Project&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;br style="background-color:#ffffff;text-indent:0px;color:#373737;" /&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;h1 style="background-color:#ffffff;text-indent:0px;margin:0 0 0.81em;color:#000000;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Changing Components&lt;/span&gt;&lt;/h1&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Whenever I change components (add, remove or change) in Processor Expert I need&lt;/span&gt;&lt;/p&gt;&lt;ol start="1" style="background-color:#ffffff;list-style-type:decimal;text-indent:0px;margin:0 0 1.62em 2.5em;color:#373737;"&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Generate Code in Processor Expert Driver Suite&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Run the external tool to import the changed files/settings into µVision (run my Export2uVision)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Switch to µVision to confirm to reload the changes:&amp;nbsp; &lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="stipple-dottable-wrapper" style="margin:0;margin:0px auto;font-family:inherit;font-size:15px;border:#1982d1 0px;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/06/reconfirm-to-reload.png" rel="nofollow ugc noopener" style="color:#1982d1;font-size:15px;" target="_blank"&gt;&lt;img loading="lazy" alt="Confirm to reload changed settings" class="jiveImage wp-image-8487 size-full" height="404" src="http://mcuoneclipse.files.wordpress.com/2013/06/reconfirm-to-reload.png?w=584&amp;amp;h=404" style="font-size:15px;" width="584" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="alignnone wp-caption" style="margin:0;background-color:#eeeeee;margin:0.4em 0 1.62em;font-family:inherit;font-size:15px;padding:9px;"&gt;&lt;span style="font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;Confirm to reload changed settings&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="alignnone wp-caption" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;h1 style="background-color:#ffffff;text-indent:0px;margin:0 0 0.81em;color:#000000;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Debugging the FRDM-KL25Z&lt;/span&gt;&lt;/h1&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Now that I have compiled my application, I want to debug it on the FRDM-KL25Z. µVision does not (seem) to support the P&amp;amp;E OpenSDA, but it has support for CMSIS-DAP (ARM is driving the CMSIS initiative). So I loaded my FRDM-KL25Z with the CMSIS-DAP firmware as&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;a class="jive-link-external-small" href="http://mcuoneclipse.com/2013/05/17/cmsis-dap-with-iar-and-the-kl25z-freedom-board/" rel="nofollow ugc noopener" style="font-family:inherit;color:#1982d1;font-size:15px;" target="_blank" title="CMSIS-DAP with IAR and the KL25Z Freedom Board"&gt;described in this post&lt;/a&gt;. The debugger settings in µVision have one gotcha:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;First I need to set it for CMSIS-DAP Debugger in the Project options:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="alignnone wp-caption" style="margin:0;background-color:#eeeeee;text-indent:0px;margin:0.4em 0 1.62em;color:#373737;padding:9px;"&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;font-family:inherit;font-size:15px;border:#1982d1 0px;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/06/project-options-for-cmsis-dap-debugger.png" rel="nofollow ugc noopener" style="color:#1982d1;font-size:15px;" target="_blank"&gt;&lt;img loading="lazy" alt="Project Options for CMSIS-DAP Debugger" class="jiveImage size-full wp-image-8489" height="432" src="http://mcuoneclipse.files.wordpress.com/2013/06/project-options-for-cmsis-dap-debugger.png?w=584&amp;amp;h=432" style="font-size:15px;" width="584" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding-bottom:5px;margin:0 0 0.6em;padding-left:40px;font-family:Georgia, serif;color:#666666;font-size:12px;padding-top:10px;"&gt;&lt;span style="font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;Project Options for CMSIS-DAP Debugger&lt;/em&gt;&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 style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Next to verify that it is using SWD (and not JTAG) in the settings:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="alignnone wp-caption" style="margin:0;background-color:#eeeeee;text-indent:0px;margin:0.4em 0 1.62em;color:#373737;padding:9px;"&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;font-family:inherit;font-size:15px;border:#1982d1 0px;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/06/swj-swd-settings.png" rel="nofollow ugc noopener" style="color:#1982d1;font-size:15px;" target="_blank"&gt;&lt;img loading="lazy" alt="SWJ SWD Settings" class="jiveImage wp-image-8490 size-full" height="463" src="http://mcuoneclipse.files.wordpress.com/2013/06/swj-swd-settings.png?w=584&amp;amp;h=463" style="font-size:15px;" width="584" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding-bottom:5px;margin:0 0 0.6em;padding-left:40px;font-family:Georgia, serif;color:#666666;font-size:12px;padding-top:10px;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:10pt;"&gt;SWJ SWD Settings&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 style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;First I thought: that’s it!&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;However, when I wanted to debug, I had “No ULINK Device found”:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/06/no-ulink-device-found.png" rel="nofollow ugc noopener" style="font-family:inherit;color:#1982d1;font-size:15px;" target="_blank"&gt;&lt;img loading="lazy" alt="No ULINK Device found" class="jiveImage size-full wp-image-8492" src="http://mcuoneclipse.files.wordpress.com/2013/06/no-ulink-device-found.png?w=584" style="border:#eeeeee 1px solid;padding:6px;" /&gt;&lt;/a&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding-bottom:5px;margin:0 0 0.6em;padding-left:40px;font-family:Georgia, serif;color:#666666;font-size:12px;padding-top:10px;"&gt;&lt;span style="font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;No ULINK Device found&lt;/em&gt;&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 style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;The gotcha is that I missed to set the CMSIS-DAP debugger in the Utilities tab too&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif?m=1129645325g"&gt;&lt;img loading="lazy" alt=":-(" class="jiveImage wp-smiley" src="http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif?m=1129645325g" /&gt;&lt;/a&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="alignnone wp-caption" style="margin:0;background-color:#eeeeee;text-indent:0px;margin:0.4em 0 1.62em;color:#373737;padding:9px;"&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;font-family:inherit;font-size:15px;border:#1982d1 0px;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/06/cmsis-dap-debugger-in-utilities.png" rel="nofollow ugc noopener" style="color:#1982d1;font-size:15px;" target="_blank"&gt;&lt;img loading="lazy" alt="CMSIS-DAP Debugger in Utilities" class="jiveImage size-full wp-image-8491" height="432" src="http://mcuoneclipse.files.wordpress.com/2013/06/cmsis-dap-debugger-in-utilities.png?w=584&amp;amp;h=432" style="font-size:15px;" width="584" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding-bottom:5px;margin:0 0 0.6em;padding-left:40px;font-family:Georgia, serif;color:#666666;font-size:12px;padding-top:10px;"&gt;&lt;span style="font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;CMSIS-DAP Debugger in Utilities&lt;/em&gt;&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 style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;After that, I was able to debug the application on the FRDM-KL25Z:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p class="alignnone wp-caption" style="margin:0;background-color:#eeeeee;text-indent:0px;margin:0.4em 0 1.62em;color:#373737;padding:9px;"&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;font-family:inherit;font-size:15px;border:#1982d1 0px;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/06/debugging-the-processor-expert-application.png" rel="nofollow ugc noopener" style="color:#1982d1;font-size:15px;" target="_blank"&gt;&lt;img loading="lazy" alt="Debugging the Processor Expert Application" class="wp-image-8493 jiveImage size-full" height="364" src="http://mcuoneclipse.files.wordpress.com/2013/06/debugging-the-processor-expert-application.png?w=584&amp;amp;h=364" style="font-size:15px;" width="584" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;padding-bottom:5px;margin:0 0 0.6em;padding-left:40px;font-family:Georgia, serif;color:#666666;font-size:12px;padding-top:10px;"&gt;&lt;span style="font-size:10pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;Debugging the Processor Expert Application&lt;/em&gt;&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 style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g"&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;h1 style="background-color:#ffffff;text-indent:0px;margin:0 0 0.81em;color:#000000;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Summary&lt;/span&gt;&lt;/h1&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Processor Expert is not limited to CodeWarrior or Eclipse, it can be used as ‘Driver Suite’ with external tools like IAR or Keil. It is not as integrated with Eclipse based solutions, but still it allows to use the power of Processor Expert.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;I wish µVision would implement something&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;like in IAR&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;to automatically reload the new files, so this is for sure something which would make µVision+Processor Expert an even better combination.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;background-color:#ffffff;text-indent:0px;margin:0 0 1.62em;color:#373737;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Happy Keiling&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g"&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: cortex-m0+, mdk-arm, freescale, freedom_board, Cortex-M, kinetis, cortex, frdm-kl25z, keil, kinetis-l, cortex-m0, arm, freedom&lt;/div&gt;
</description></item><item><title>Review for CodeWarrior for MCU v10.4: Improved performance compared to the version 10.3 !!</title><link>https://community.element14.com/products/devtools/kinetiskl2freedomboard/w/documents/11237/review-for-codewarrior-for-mcu-v10-4-improved-performance-compared-to-the-version-10-3</link><pubDate>Fri, 08 Oct 2021 05:33:28 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:f7b4f386-bae2-4cb4-8944-310ea07ce221</guid><dc:creator>FreescaleTools_and_Software</dc:creator><description>Current Revision posted to Documents by FreescaleTools_and_Software on 10/8/2021 5:33:28 AM&lt;br /&gt;
&lt;p style="margin:0;text-align:left;background-color:#ffffff;text-indent:0px;color:#333333;"&gt;&lt;span style="font-family:tahoma, arial, helvetica, sans-serif;color:#ff6600;font-size:15px;"&gt;&lt;em&gt;This tutorial was extracted from Erich Styger blog&lt;span class="Apple-converted-space" style="font-size:15px;"&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;/span&gt;&lt;a class="jive-link-external-small" href="http://mcuoneclipse.wordpress.com/" rel="nofollow" style="color:#355491;font-size:15px;" target="_blank"&gt;http://mcuoneclipse.wordpress.com&lt;/a&gt;&lt;span class="Apple-converted-space" style="font-size:15px;"&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;/span&gt;with his agreement.&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;text-align:left;background-color:#ffffff;text-indent:0px;color:#333333;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/175x85/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_25034.bmp"&gt;&lt;img alt="image" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_25034.bmp" style="max-height: 85px;max-width: 175px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/87x85/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_25035.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/contentimage_25035.jpg-87x85.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=Yv3BsEZF9oldF7yM7b%2BwmGq5m5rc4SZG%2FORf6YzHf9U%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=lw3vl9FqzfR9tHJgP7g6Lg==" style="max-height: 85px;max-width: 87px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;text-align:left;background-color:#ffffff;text-indent:0px;color:#333333;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Freescale has released in May 2013 an updated version of CodeWarrior: version 10.4. I’m usually not switching a tools version in the middle of a university semester. Unless I see a real benefit, and the risk is low. Well, I have used it now for a few days, and I have decided to move my projects from 10.3 to 10.4. Why? Read on…&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p class="alignnone wp-caption" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="text-align:center;margin:0px auto;"&gt;&amp;nbsp; &lt;a href="http://mcuoneclipse.files.wordpress.com/2013/05/cw-for-mcu10-4.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="CW for MCU10.4" class="wp-image-7804 jiveImage size-full" src="http://mcuoneclipse.files.wordpress.com/2013/05/cw-for-mcu10-4.png?w=584" /&gt;&lt;/a&gt;&amp;nbsp; &lt;/div&gt;&lt;div class="stipple-dottable-wrapper" style="text-align:center;margin:0px auto;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;CW for MCU10.4&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;"&gt;&amp;nbsp; &lt;/div&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;h2&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;To switch or not, that’s the question…&lt;/span&gt;&lt;/h2&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;As with any new software or new versions, it is always a judgement call between ‘never change a running system’ and ‘make a move to something new’. Or to answer the questions: is it worth the risk? Or is there anything new I despertaly need?&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;That new release comes with support for new microcontroller (new Kinetis and S12Z cores), 64bit floating point for S12Z, C++ support for DSC (Digital Signal Controllers), and many more. But in my context and with the projects I have at the university, the following things are by far more interesting:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;strong&gt;New ARM gcc 4.7.3&lt;/strong&gt;: new updated GNU tool chain from ARM Inc.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;strong&gt;Component Development Environment (CDE) comes with free Community Edition license&lt;/strong&gt;: Now everyone can create new Processor Expert components!&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;strong&gt;Ease-of-Use&lt;/strong&gt;: many smaller things which makes it easier to use: exporting register values in CSV format, easier to read registers view, renaming Processor Expert folders and components, …&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;strong&gt;Improved performance&lt;/strong&gt;: the release note lists IDE and debugger, both for startup and debugging.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Especially the last item is of big interest: I have tight schedules too (not only the students with their assignments &lt;a href="http://s2.wp.com/wp-includes/images/smilies/icon_mrgreen.gif?m=1129645325g"&gt;&lt;img loading="lazy" alt=":mrgreen:" class="jiveImage wp-smiley" src="http://s2.wp.com/wp-includes/images/smilies/icon_mrgreen.gif?m=1129645325g" /&gt;&lt;/a&gt; ).&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;h2&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Installation&lt;/span&gt;&lt;/h2&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;I admit: the installation is not new to 10.3, but I received several questions and requests for tips around CodeWarrior installation, so here we go….&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;MCU10.4 is not an update, it is a full installer. It does not need a license upgrade, as earlier 10.3 licenses work with the 10.4.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;&lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_exclaim.gif?m=1129645325g"&gt;&lt;img loading="lazy" alt=":!:" class="jiveImage wp-smiley" src="http://s0.wp.com/wp-includes/images/smilies/icon_exclaim.gif?m=1129645325g" /&gt;&lt;/a&gt; 10.3 license files work, but as for 10.3: existing 10.x licenses prior 10.3 need an upgrade.&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p style="margin:0;"&gt;&amp;nbsp; &lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;As the earlier V10.3 version, it can be downloaded from &lt;a class="jive-link-external-small" href="http://www.freescale.com/cwmcu10" rel="nofollow ugc noopener" target="_blank" title="CodeWarrior download page"&gt;here&lt;/a&gt; in two versions:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;ol start="1"&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;strong&gt;Online Installer&lt;/strong&gt;: here the download is half of the size (670 MB file size), and the needed other packages are downloaded during installation&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;strong&gt;Offline Installer&lt;/strong&gt;: Here the download is twice as big (1.2 GB file size), and includes all architectures supported.&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_idea.gif?m=1129645325g"&gt;&lt;img loading="lazy" alt=":idea:" class="jiveImage wp-smiley" src="http://s0.wp.com/wp-includes/images/smilies/icon_idea.gif?m=1129645325g" /&gt;&lt;/a&gt; I prefer the ‘offline’ version. Yes, that’s a huge file. But too many times I have run into network connection problems, so at the end I saved time to just get the full stuff.&lt;/span&gt;&lt;/blockquote&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;It comes either as ‘Evaluation’ or ‘Special Edition’:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;ol start="1"&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;strong&gt;Evaluation&lt;/strong&gt;: it installs a 30 day professional license, time bombed.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;strong&gt;Special Edition&lt;/strong&gt;: same software, it just does not install that 30 day professional license. The free limits apply, e.g. 64 KByte code size for Kinetis ARM Cortex-M0+ or 128KB for Kinetis ARM Cortex-M4 derivatives.&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_idea.gif?m=1129645325g"&gt;&lt;img loading="lazy" alt=":idea:" class="jiveImage wp-smiley" src="http://s0.wp.com/wp-includes/images/smilies/icon_idea.gif?m=1129645325g" /&gt;&lt;/a&gt; So the ‘Evaluation’ is really the same as ‘Special Edition’. So no real sense to download the Special Edition at all. I can download the Evaluation, and then I get a 30 day full license (it does not work to re-install the product to get again a 30 day license &lt;a href="http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif?m=1129645325g"&gt;&lt;img loading="lazy" alt=";-)" class="jiveImage wp-smiley" src="http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif?m=1129645325g" /&gt;&lt;/a&gt; ). If I’m annoyed by the ‘your license will expire in x days’ dialog, I simply can rename/remove the MCU\license.dat file, and I’m at special edition level &lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g"&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;/blockquote&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Launching the ‘offline’ version will extract the files into a sub-folder, because the .exe downloaded is a self-extracting executable:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/05/extracting-offline-version.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;span style="font-size:12pt;"&gt;&lt;img loading="lazy" alt="Extracting Offline Version" class="jiveImage wp-image-7791 size-full" src="http://mcuoneclipse.files.wordpress.com/2013/05/extracting-offline-version.png?w=584" style="display:block;margin-left:auto;margin-right:auto;" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;text-align:center;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:10pt;"&gt;&lt;em&gt;Extracting Offline Version&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;&amp;nbsp; &lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;After unpacking, all the files are that sub-folder, where the Setup.exe ist the installer:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/05/unpacked-files.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Unpacked MCU10.4 Files" class="jiveImage size-full wp-image-7793" height="148" src="http://mcuoneclipse.files.wordpress.com/2013/05/unpacked-files.png?w=584&amp;amp;h=148" style="display:block;margin-left:auto;margin-right:auto;" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;text-align:center;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;Unpacked MCU10.4 Files&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;&amp;nbsp; &lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_idea.gif?m=1129645325g"&gt;&lt;img loading="lazy" alt=":idea:" class="jiveImage wp-smiley" src="http://s0.wp.com/wp-includes/images/smilies/icon_idea.gif?m=1129645325g" /&gt;&lt;/a&gt; For my classroom installation, I only need to pass the Setup.exe plus the .zip files for the architectures I want to support/install. E.g. for Kinetis I only need the setup.exe plus the com.freescale.mcu10_4.kinetis.updatesite.zip: which then makes 850 MByte which is easier to distribute in the class. And if needed, the other .zip files can be installed with ‘Add new software’ inside Eclipse.&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;There is no need to uninstall an earlier CodeWarrior version. Actually I always recommend to keep the previous version. I install the new CodeWarrior into new directory, and then I can switch back and forward between the two versions.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;As a negative point: the installation takes a very, very long time: not sure what it is, but it took about one hour to install it on my Windows7 64bit machine, compared to less than 10 minutes e.g. for &lt;a class="jive-link-external-small" href="http://mcuoneclipse.com/2013/04/20/red-suite-5-eclipse-juno-processor-expert-and-unlimited-frdm-kl25z/" rel="nofollow ugc noopener" target="_blank" title="Red Suite 5: Eclipse Juno, Processor Expert and unlimited FRDM-KL25Z"&gt;Code Red&lt;/a&gt;. Not sure if this is just my machine? I love to hear your comments if you see the same.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_idea.gif?m=1129645325g"&gt;&lt;img loading="lazy" alt=":idea:" class="jiveImage wp-smiley" src="http://s0.wp.com/wp-includes/images/smilies/icon_idea.gif?m=1129645325g" /&gt;&lt;/a&gt; I see about the same installation time with MCU10.3, so this is nothing new. I suspect is has something to do that the installer is using the Eclipse ‘Install New Software’ (Eclipse Updater) technology. It seems to me that the Eclipse Updater way slows down things.&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;h2&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/h2&gt;&lt;h2&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;GCC&lt;/span&gt;&lt;/h2&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;MCU10.3 has gcc 4.6.2, while MCU10.4 has 4.7.3. I compared the code size for my application with -Os (optimize size) set.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;gcc 4.6.2 in V10.3 gives this:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:courier new,courier;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;pre class="jive-pre"&gt;&lt;span style="font-family:courier new,courier;"&gt;&amp;nbsp; text data bss dec hex filename 33076 88 12192 45356 b12c Freedom_Robo.elf&lt;/span&gt;&lt;/pre&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;while gcc 4.7.3 in V10.4 gives this:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;pre class="jive-pre"&gt;&lt;span style="font-family:courier new,courier;"&gt;&amp;nbsp; text data bss dec hex filename 32924 88 12192 45204 b094 Freedom_Robo.elf&lt;/span&gt;&lt;/pre&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:courier new,courier;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;So this is not that big of a difference, just a few bytes less. More important: I have run several of my projects with the new compiler, and no issues found.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;But the big plus with the MCU10.4 GNU integration is that it passes now the options to the linker by file: this means that the Windows command line length of 8191 characters is bypassed, and I’m able now to build a full &lt;a class="jive-link-external-small" href="http://mcuoneclipse.com/2013/02/14/tutorial-using-the-arm-cmsis-library/" rel="nofollow ugc noopener" target="_blank" title="Tutorial: Using the ARM CMSIS Library"&gt;CMSIS library&lt;/a&gt; with MCU10.4 &lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g"&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;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;The other good thing is: gcc 4.6.2 has issues with the generated debug information if optimizations were enabled. Basically often local variables were not displayed correctly. This is now fixed in the new gcc 4.7.3 which makes debugging optimized code a better experience.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;The problem I have described &lt;a class="jive-link-external-small" href="http://mcuoneclipse.com/2013/01/09/reducing-the-build-time-with-gcc-for-arm-and-codewarrior/" rel="nofollow ugc noopener" target="_blank" title="Reducing the build time with gcc for ARM and CodeWarrior"&gt;here&lt;/a&gt; is solved now too: the ARM gcc integration has an extra option to disable the generation of the listing file:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p class="alignnone wp-caption" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="text-align:center;margin:0px auto;"&gt;&amp;nbsp; &lt;a href="http://mcuoneclipse.files.wordpress.com/2013/05/enable-assembler-listing-option.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Enable Assembler Listing Option" class="jiveImage size-full wp-image-7797" height="264" src="http://mcuoneclipse.files.wordpress.com/2013/05/enable-assembler-listing-option.png?w=584&amp;amp;h=264" width="584" /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div class="stipple-dottable-wrapper" style="text-align:center;margin:0px auto;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;Enable Assembler Listing Option&lt;/span&gt;&lt;/div&gt;&lt;div class="stipple-dottable-wrapper" style="text-align:center;margin:0px auto;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class="stipple-dottable-wrapper" style="text-align:center;margin:0px auto;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;h2&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Debugger&lt;/span&gt;&lt;/h2&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;In the debugger I noticed that the Registers view is now easier to read. In MCU10.3 I have this for hexadecimal and binary format:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/05/mcu10-3-registers-in-hex.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="MCU10.3 Registers in Hex" class="jiveImage size-full wp-image-7787" src="http://mcuoneclipse.files.wordpress.com/2013/05/mcu10-3-registers-in-hex.png?w=584" style="display:block;margin-left:auto;margin-right:auto;" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;text-align:center;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;MCU10.3 Registers in Hex&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;&amp;nbsp; &lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;&amp;nbsp; &lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/05/mcu10-3-registers-view-binary.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="MCU10.3 Registers in Hex" class="jiveImage wp-image-7788 size-full" src="http://mcuoneclipse.files.wordpress.com/2013/05/mcu10-3-registers-view-binary.png?w=584" style="display:block;margin-left:auto;margin-right:auto;" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;text-align:center;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;MCU10.3 Registers in Hex&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;&amp;nbsp; &lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Now with V10.4, the values are padded with leading zeros:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/05/mcu10-4-registers-view-hex.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;span style="font-size:12pt;"&gt;&lt;img loading="lazy" alt="MCU10.4 Registers View Hex" class="jiveImage size-full wp-image-7790" src="http://mcuoneclipse.files.wordpress.com/2013/05/mcu10-4-registers-view-hex.png?w=584" style="display:block;margin-left:auto;margin-right:auto;" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;text-align:center;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;MCU10.4 Registers View Hex&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;&amp;nbsp; &lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;&amp;nbsp; &lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/05/mcu10-4-registers-view-binary.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="MCU10.4 Registers View Binary" class="wp-image-7789 jiveImage size-full" src="http://mcuoneclipse.files.wordpress.com/2013/05/mcu10-4-registers-view-binary.png?w=584" style="display:block;margin-left:auto;margin-right:auto;" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;text-align:center;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;MCU10.4 Registers View Binary&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;&amp;nbsp; &lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;The debugger features now an option to restore &lt;a class="jive-link-external-small" href="http://mcuoneclipse.com/2012/04/29/watchpoints-data-breakpoints-in-mcu10/" rel="nofollow ugc noopener" target="_blank" title="Watchpoints: Data Breakpoints"&gt;watchpoints&lt;/a&gt;:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p class="alignnone wp-caption" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="text-align:center;margin:0px auto;"&gt;&amp;nbsp; &lt;a href="http://mcuoneclipse.files.wordpress.com/2013/05/restoring-watchpoints.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Restoring Watchpoints" class="wp-image-7796 jiveImage size-full" height="386" src="http://mcuoneclipse.files.wordpress.com/2013/05/restoring-watchpoints.png?w=584&amp;amp;h=386" width="584" /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div class="stipple-dottable-wrapper" style="text-align:center;margin:0px auto;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;Restoring Watchpoints&lt;/span&gt;&lt;/div&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;h2&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Processor Expert&lt;/span&gt;&lt;/h2&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;With MCU10.3 or earlier, it was not possible to &lt;a class="jive-link-external-small" href="http://mcuoneclipse.com/2012/03/23/disable-my-code-generation/" rel="nofollow ugc noopener" target="_blank" title="Disable my Code Generation"&gt;‘freeze’ the code generation&lt;/a&gt; for the CPU component:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p class="alignnone wp-caption" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="text-align:center;margin:0px auto;"&gt;&amp;nbsp; &lt;a href="http://mcuoneclipse.files.wordpress.com/2013/05/dont-write-generated-component-modules.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Don't Write Generated Component Modules" class="jiveImage size-full wp-image-7805" height="379" src="http://mcuoneclipse.files.wordpress.com/2013/05/dont-write-generated-component-modules.png?w=584&amp;amp;h=379" width="584" /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div class="stipple-dottable-wrapper" style="text-align:center;margin:0px auto;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;Don’t Write Generated Component Modules&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Integration of &lt;a class="jive-link-external-small" href="http://mcuoneclipse.com/2012/10/04/processor-expert-gcc-c-and-kinetis-l-and-mqxlite/" rel="nofollow ugc noopener" target="_blank" title="Processor Expert, gcc C++ and Kinetis-L with MQXLite"&gt;Processor Expert with C++&lt;/a&gt; is easier now, as &lt;code&gt;extern &amp;quot;C&amp;quot;&lt;/code&gt; is added:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p class="alignnone wp-caption" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="text-align:center;margin:0px auto;"&gt;&amp;nbsp; &lt;a href="http://mcuoneclipse.files.wordpress.com/2013/05/added-extern-c.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Added extern C" class="jiveImage size-full wp-image-7806" src="http://mcuoneclipse.files.wordpress.com/2013/05/added-extern-c.png?w=584" /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div class="stipple-dottable-wrapper" style="text-align:center;margin:0px auto;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;Added extern C&lt;/span&gt;&lt;/div&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;h2&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;CDE&lt;/span&gt;&lt;/h2&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;The Component Development Environment now works at the ‘community’ level free of charge: this means no license file is required any more, so the extra step to copy a license file as &lt;a class="jive-link-external-small" href="https://github.com/ErichStyger/mcuoneclipse/wiki/Getting-Started" rel="nofollow ugc noopener" target="_blank"&gt;described here&lt;/a&gt; is not needed any more &lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g"&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;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;h2&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Performance: IDE, Build and Debug&lt;/span&gt;&lt;/h2&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Eclipse is probably not the fastest IDE in the world, for many reasons (maybe it is just too powerful &lt;a href="http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif?m=1129645325g"&gt;&lt;img loading="lazy" alt=";-)" class="jiveImage wp-smiley" src="http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif?m=1129645325g" /&gt;&lt;/a&gt; ). What I noticed is that compared to V10.3, it is ‘snappier’. Startup time, build time and the time to launch the debugger were noticeable faster. So I decided to do a simple comparison (all numbers in seconds).&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;First, starting up a workbench with Eclipse:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p class="alignnone wp-caption" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="text-align:center;margin:0px auto;"&gt;&amp;nbsp; &lt;a href="http://mcuoneclipse.files.wordpress.com/2013/05/ide-startup-time.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="IDE Startup Time" class="jiveImage size-full wp-image-7782" src="http://mcuoneclipse.files.wordpress.com/2013/05/ide-startup-time.png?w=584" /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div class="stipple-dottable-wrapper" style="text-align:center;margin:0px auto;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;IDE Startup Time&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;That’ already good news, but I do not need to start-up IDE as much as I do need to build my projects. So I compared to rebuild my &lt;a class="jive-link-external-small" href="http://mcuoneclipse.com/2013/03/28/maze-solving-frdm-kl25z-robot-goes-backward/" rel="nofollow ugc noopener" target="_blank" title="Maze solving FRDM-KL25Z Robot goes backward for Dead-Ends"&gt;Zumo projects&lt;/a&gt; which can be considered as a ‘medium’ size project (~200 source files):&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p class="alignnone wp-caption" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="text-align:center;margin:0px auto;"&gt;&amp;nbsp; &lt;a href="http://mcuoneclipse.files.wordpress.com/2013/05/project-rebuild-time.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Project Rebuild Time" class="jiveImage size-full wp-image-7783" src="http://mcuoneclipse.files.wordpress.com/2013/05/project-rebuild-time.png?w=584" /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div class="stipple-dottable-wrapper" style="text-align:center;margin:0px auto;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;Project Rebuild Time&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;"&gt;&amp;nbsp; &lt;/div&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Wow! Now this now much faster &lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g"&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; . Next, to start the debugger for that project:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p class="alignnone wp-caption" style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="text-align:center;margin:0px auto;"&gt;&amp;nbsp; &lt;a href="http://mcuoneclipse.files.wordpress.com/2013/05/debugging-time.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Debugging Time" class="jiveImage wp-image-7784 size-full" src="http://mcuoneclipse.files.wordpress.com/2013/05/debugging-time.png?w=584" /&gt;&lt;/a&gt;&amp;nbsp;&amp;nbsp; &lt;/div&gt;&lt;div class="stipple-dottable-wrapper" style="text-align:center;margin:0px auto;"&gt;&lt;em&gt;Debugging Time&lt;/em&gt;&lt;/div&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;So an improvement here as well &lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g"&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;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;h2&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Ease-of-Use: Highlighting of Active Project&lt;/span&gt;&lt;/h2&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;CodeWarrior marks now the active project with a bold font. If I’m in a source file, then the project where this source file belongs to is marked with a bold font:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/05/highlight-of-active-project.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="highlight of active project" class="wp-image-7778 jiveImage size-full" height="255" src="http://mcuoneclipse.files.wordpress.com/2013/05/highlight-of-active-project.png?w=584&amp;amp;h=255" style="display:block;margin-left:auto;margin-right:auto;" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;text-align:center;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;highlight of active project&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;That’s a very useful feature, as this tells me which project I will debug if I press the debug button:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/05/debugging-active-project.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Debugging Active Project" class="jiveImage size-full wp-image-7779" height="238" src="http://mcuoneclipse.files.wordpress.com/2013/05/debugging-active-project.png?w=584&amp;amp;h=238" style="display:block;margin-left:auto;margin-right:auto;" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;text-align:center;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;Debugging Active Project&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;So no further guessing &lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g"&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;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;h2&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Processor Expert&lt;/span&gt;&lt;/h2&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;My Processor Expert components work without changes in V10.4, and the components are shared between 10.3 and 10.4, so both installation are using the same user components.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;h2&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Summary&lt;/span&gt;&lt;/h2&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;I decided to move on to MCU10.4, mainly for the performance reasons. The improvements in debugging and build time were obviouse when I switched back and forward between MCU10.3 and MCU10.4. I have used MCU10.4 for a few days, and tried many of my existing MCU10.3 projects, and no issues found. I would not switch versions if I’m in the middle of a critical project. This is not the case for me, so I can take the risk. As I still can keep my earlier 10.3 installed, I always can go back (just in case). The other features and ease-of-use things were not that important at the first look, but now as I have moved them more and more and explore new things, I definitely do not want to go back. Otherwise, you will hear from me, promised &lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g"&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;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Happy Codewarrioring &lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g"&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: compiler, freescale, kinetis, codewarrior, ide_toolchain, 10.4&lt;/div&gt;
</description></item><item><title>Tutorial for FRDM-KL25Z: Touch sensing demo featuring FreeMaster visualization tool</title><link>https://community.element14.com/products/devtools/kinetiskl2freedomboard/w/documents/11229/tutorial-for-frdm-kl25z-touch-sensing-demo-featuring-freemaster-visualization-tool</link><pubDate>Fri, 08 Oct 2021 05:33:19 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:577b7792-363c-4ddb-9253-e3c41e9d068c</guid><dc:creator>FreescaleTools_and_Software</dc:creator><description>Current Revision posted to Documents by FreescaleTools_and_Software on 10/8/2021 5:33:19 AM&lt;br /&gt;
&lt;p style="margin:0;text-align:left;background-color:#ffffff;text-indent:0px;color:#333333;"&gt;&lt;span style="color:#ff6600;font-size:15px;font-family:tahoma, arial, helvetica, sans-serif;"&gt;&lt;em&gt;This tutorial was extracted from Pavel Sadek post on the Freescale Community&lt;span class="Apple-converted-space"&gt; &lt;a class="jive-link-external-small" href="https://community.freescale.com/docs/DOC-95001" rel="nofollow ugc noopener" target="_blank"&gt;https://community.freescale.com/docs/DOC-95001&lt;/a&gt;&lt;/span&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&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;text-align:left;background-color:#ffffff;text-indent:0px;color:#333333;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/175x85/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_24993.bmp"&gt;&lt;img alt="image" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_24993.bmp" style="max-height: 85px;max-width: 175px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/87x85/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_24994.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/contentimage_24994.jpg-87x85.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=y5MKvylilmKXY3FFsLR%2BDflbnUUfYXfeC9H%2Fy4rbMyc%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=lw3vl9FqzfR9tHJgP7g6Lg==" style="max-height: 85px;max-width: 87px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;text-align:left;background-color:#ffffff;text-indent:0px;color:#333333;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Hi everyone!&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;I have made a simple&lt;strong&gt; touch sensing demo for KL25z Freedom&lt;/strong&gt; board for fast user friendly test using OpenSDA MSD bootloader (default combined application in Open SDA when you receive the Freedom - Mass Storage Device and serial port).&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Demo changes the brightness of red led populated on the board and communicate with FreeMaster visualization tool over embedded virtual serial port of Open SDA connection.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Touch sensing application is controlled by TSS (touch sensing software). For more information about touch sensing and download of TSS go to &lt;a class="jive-link-external-small" href="http://www.freescale.com/tss"&gt;www.freescale.com/tss&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;The visualization output has 2 separate scope windows:&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;one showing signals captured from electrodes of slider&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;another one showing position of finger on a slider&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;The operation is really simple:&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;just drag and drop the attached *.s19 file into your device using MSD bootloader (as other precompiled projects for Freedom board)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span lang="EN" style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;open the *.pmp file that is associated with FreeMASTER&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span lang="EN" style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;choose the correct COM port at speed of 38400 kbps and&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span lang="EN" style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;start communication&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;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;The demo was built with CodeWarrior 10.4 using TSS library 3.0.1 embedded as Processor Expert component. The source code can be provided if there will be an interest.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;There is no need to configure MAP file for FreeMaster communication, application uses so called TSA table - it is position independent this way.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;If you are not familiar with FreeMASTER or not have it installed in your PC - go to &lt;a class="jive-link-external-small" href="http://www.freescale.com/freemaster"&gt;www.freescale.com/freemaster&lt;/a&gt; to read more and download the free installer, install it and you are good to run the demo.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;There are two independent snapshots below, showing the response to my finger movement along the slider&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;text-align:center;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/620x297/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_24995.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/contentimage_24995.png-620x297.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=F5DbIwIGOiTBhnbFk0X%2FgJk6%2Flqt2SsctOxuRE5ayRs%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=RJUd+sECUZxm1GvxzVVHsQ==" style="max-height: 297px;max-width: 620px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;text-align:center;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p style="margin:0;text-align:center;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/575x290/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_24996.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/contentimage_24996.png-575x290.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=yPBPaeydjRLWsEY3mSDh2lmkD72t4BTECTYXDOjxvUA%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=AnxAgQrvcWRQz3nkOPw03Q==" style="max-height: 290px;max-width: 575px;" /&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-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Enjoy!&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;and keep in touch&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/115441"&gt;&lt;a href="https://community.element14.com/cfs-file/__key/communityserver-wikis-components-files/00-00-00-01-49/Freedom_5F00_KL25z-_2800_using-TSA-table_2900_.zip"&gt;community.element14.com/.../Freedom_5F00_KL25z-_2800_using-TSA-table_2900_.zip&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&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/115457"&gt;&lt;a href="https://community.element14.com/cfs-file/__key/communityserver-wikis-components-files/00-00-00-01-49/simple_5F00_FMSTR.pmp.zip"&gt;community.element14.com/.../simple_5F00_FMSTR.pmp.zip&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&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/115458"&gt;&lt;a href="https://community.element14.com/cfs-file/__key/communityserver-wikis-components-files/00-00-00-01-49/Freedom_5F00_KL25z.s19.zip"&gt;community.element14.com/.../Freedom_5F00_KL25z.s19.zip&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&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/115459"&gt;&lt;a href="https://community.element14.com/cfs-file/__key/communityserver-wikis-components-files/00-00-00-01-49/MSD_2D00_FRDM_2D00_KL25Z_5F00_Pemicro_5F00_v109.zip"&gt;community.element14.com/.../MSD_2D00_FRDM_2D00_KL25Z_5F00_Pemicro_5F00_v109.zip&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: 32bit, touch, cortex-m0+, freescale, freedom_board, Cortex-M, kinetis, cortex, freemaster, frdm-kl25z, kinetis-l, cortex-m0, arm, freedom&lt;/div&gt;
</description></item><item><title>Processor Expert Trick &amp; Tips: Switching Processor Package - Simplified in MCU10.4</title><link>https://community.element14.com/products/devtools/kinetiskl2freedomboard/w/documents/11208/processor-expert-trick-tips-switching-processor-package---simplified-in-mcu10-4</link><pubDate>Fri, 08 Oct 2021 05:33:00 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:1cb42205-94b8-4b1c-892e-00fd52513716</guid><dc:creator>FreescaleTools_and_Software</dc:creator><description>Current Revision posted to Documents by FreescaleTools_and_Software on 10/8/2021 5:33:00 AM&lt;br /&gt;
&lt;p style="margin:0;text-align:left;background-color:#ffffff;text-indent:0px;color:#333333;"&gt;&lt;span style="font-family:tahoma, arial, helvetica, sans-serif;color:#ff6600;font-size:15px;"&gt;&lt;em&gt;This tutorial was extracted from Erich Styger blog&lt;span class="Apple-converted-space" style="font-size:15px;"&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;/span&gt;&lt;a class="jive-link-external-small" href="http://mcuoneclipse.wordpress.com/" rel="nofollow" style="color:#355491;font-size:15px;" target="_blank"&gt;http://mcuoneclipse.wordpress.com&lt;/a&gt;&lt;span class="Apple-converted-space" style="font-size:15px;"&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;&lt;/span&gt;with his agreement.&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;text-align:left;background-color:#ffffff;text-indent:0px;color:#333333;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/175x85/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_25052.bmp"&gt;&lt;img alt="image" src="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_25052.bmp" style="max-height: 85px;max-width: 175px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/87x85/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_25053.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/contentimage_25053.jpg-87x85.jpg?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=YMNu2FIiVFgatKfxqnWda5feXC4ZGscikA4iwa5zeTk%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=lw3vl9FqzfR9tHJgP7g6Lg==" style="max-height: 85px;max-width: 87px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;text-align:left;background-color:#ffffff;text-indent:0px;color:#333333;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;When I create a new project for the KL05Z with Processor Expert, then it shows up as 48 pin LQFP package in the project:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/02/48pin-lqfp-package.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;img loading="lazy" alt="48pin LQFP Package in Components View" class="jiveImage wp-image-6835 size-full" src="http://mcuoneclipse.files.wordpress.com/2013/02/48pin-lqfp-package.png?w=584" style="display:block;margin-left:auto;margin-right:auto;" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;text-align:center;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;48pin LQFP Package in Components View&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;However, when I look at my board, it has a KL05Z32 in a LQFP package with 32 pins:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2012/12/frdm-kl05z-board.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="FRDM-KL05Z Board" class="jiveImage wp-image-5886 size-full" height="407" src="http://mcuoneclipse.files.wordpress.com/2012/12/frdm-kl05z-board.png?w=584&amp;amp;h=407" style="display:block;margin-left:auto;margin-right:auto;" width="584" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;text-align:center;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;FRDM-KL05Z Board&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Looking at the Processor View, it shows me the package as with 48 pins too:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="text-align:center;margin:0px auto;"&gt;&amp;nbsp; &lt;a href="http://mcuoneclipse.files.wordpress.com/2013/02/48pin-lqfp-package-in-processor-view.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="48pin LQFP Package in Processor View" class="jiveImage size-full wp-image-6837" src="http://mcuoneclipse.files.wordpress.com/2013/02/48pin-lqfp-package-in-processor-view.png?w=584" style="display:block;margin-left:auto;margin-right:auto;" /&gt;&lt;/a&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;&lt;em&gt;&amp;nbsp; 48pin LQFP Package in Processor View&lt;/em&gt;&lt;/span&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;So how can I change things so Processor Expert is using a different package?&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;&lt;p style="margin:0;"&gt;&lt;em style="font-size:12pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;Note: I’m using here the CodeWarrior for MCU10.3 release from December 2013. See the note at the end if you are using a different version of CodeWarrior.&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Why do I care about the package? In many cases, different packages contain the same silicon (die), but depending on the package some pins are not bonded to the outside. So it makes sense to select the proper package, so Processor Expert knows what pins and registers are available.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;The first place to check if I can switch the package would be in the CPU component properties, but in MCU10.3 I only can check the FLASH size variant (16 KByte or 32 KByte), but not the package:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="text-align:center;margin:0px auto;"&gt;&amp;nbsp; &lt;a href="http://mcuoneclipse.files.wordpress.com/2013/02/cpu-type-in-cpu-properties.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="CPU Type in CPU Properties" class="jiveImage wp-image-6839 size-full" src="http://mcuoneclipse.files.wordpress.com/2013/02/cpu-type-in-cpu-properties.png?w=584" /&gt;&lt;/a&gt;&amp;nbsp; &lt;/div&gt;&lt;div class="stipple-dottable-wrapper" style="text-align:center;margin:0px auto;"&gt;&lt;em style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;CPU Type in CPU Properties&lt;/em&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt; &lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;The next place would be the list of supported CPUs in the Components Library view:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="text-align:center;margin:0px auto;"&gt;&amp;nbsp; &lt;a href="http://mcuoneclipse.files.wordpress.com/2013/02/kl05z32-in-components-library-view.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="KL05Z32 in Components Library View" class="jiveImage size-full wp-image-6840" src="http://mcuoneclipse.files.wordpress.com/2013/02/kl05z32-in-components-library-view.png?w=584" /&gt;&lt;/a&gt;&amp;nbsp; &lt;/div&gt;&lt;div class="stipple-dottable-wrapper" style="text-align:center;margin:0px auto;"&gt;&lt;em style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;KL05Z32 in Components Library View&lt;/em&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt;&amp;nbsp; &lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;The trick here is: that tooltip actually does not tell everything: there *are* different packages supported beside of the one shown. And here is how to get it:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;I double click on the CPU component to add it to my project. This will open a dialog where I can select the package supported, and here it lists all the packages:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="text-align:center;margin:0px auto;"&gt;&lt;span style="font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/02/add-processor-component-wizard.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Add Processor Component Wizard" class="jiveImage wp-image-6842 size-full" src="http://mcuoneclipse.files.wordpress.com/2013/02/add-processor-component-wizard.png?w=584" /&gt;&lt;/a&gt;&amp;nbsp; &lt;/div&gt;&lt;div class="stipple-dottable-wrapper" style="text-align:center;margin:0px auto;"&gt;&lt;em style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;Add Processor Component Wizard&lt;/em&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt; &lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Pressing next, and it offers me to select the compiler:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="text-align:center;margin:0px auto;"&gt;&amp;nbsp; &lt;a href="http://mcuoneclipse.files.wordpress.com/2013/02/selecting-compiler.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Selecting Compiler" class="wp-image-6843 jiveImage size-full" src="http://mcuoneclipse.files.wordpress.com/2013/02/selecting-compiler.png?w=584" /&gt;&lt;/a&gt;&amp;nbsp; &lt;/div&gt;&lt;div class="stipple-dottable-wrapper" style="text-align:center;margin:0px auto;"&gt;&lt;em style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;Selecting Compiler&lt;/em&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt; &lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Now here I need to be careful: for the Kinetis-L family, only GNU gcc is supported. So I better select GNU C Compiler here. But if I screwed up, I can change it in the CPU component properties under the ‘Build options’ tab:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="text-align:center;margin:0px auto;"&gt;&amp;nbsp; &lt;a href="http://mcuoneclipse.files.wordpress.com/2013/02/changing-compiler-in-cpu-properties.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Changing Compiler in CPU Properties" class="jiveImage size-full wp-image-6844" src="http://mcuoneclipse.files.wordpress.com/2013/02/changing-compiler-in-cpu-properties.png?w=584" /&gt;&lt;/a&gt;&amp;nbsp; &lt;/div&gt;&lt;div class="stipple-dottable-wrapper" style="text-align:center;margin:0px auto;"&gt;&lt;em style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;Changing Compiler in CPU Properties&lt;/em&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt;&amp;nbsp; &lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Now I have added a KL05Z in 32-pin LQFP package to my project:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="text-align:center;margin:0px auto;"&gt;&lt;span style="font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/02/kl05z-with-32pin-lqfp-package.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="KL05Z with 32pin LQFP Package" class="jiveImage size-full wp-image-6845" src="http://mcuoneclipse.files.wordpress.com/2013/02/kl05z-with-32pin-lqfp-package.png?w=584" /&gt;&lt;/a&gt;&amp;nbsp; &lt;/div&gt;&lt;div class="stipple-dottable-wrapper" style="text-align:center;margin:0px auto;"&gt;&lt;em style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;KL05Z with 32pin LQFP Package&lt;/em&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;The other CPU package/variant is still in the project, but disabled. If I want, I can switch between the packaging variants. But usually I remove the ones I’m not using:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="text-align:center;margin:0px auto;"&gt;&amp;nbsp; &lt;a href="http://mcuoneclipse.files.wordpress.com/2013/02/removing-component-from-project.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Removing Component from Project" class="wp-image-6847 jiveImage size-full" src="http://mcuoneclipse.files.wordpress.com/2013/02/removing-component-from-project.png?w=584" /&gt;&lt;/a&gt;&amp;nbsp; &lt;/div&gt;&lt;div class="stipple-dottable-wrapper" style="text-align:center;margin:0px auto;"&gt;&lt;em style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;Removing Component from Project&lt;/em&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt;&amp;nbsp; &lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;I do the same for the orphaned &lt;a class="jive-link-external-small" href="http://mcuoneclipse.com/2012/03/07/configurations-with-processor-expert/" rel="nofollow ugc noopener" target="_blank" title="Configurations with Processor Expert"&gt;configuration&lt;/a&gt;:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="text-align:center;margin:0px auto;"&gt;&lt;span style="font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/02/delete-configuration.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Delete Configuration" class="jiveImage size-full wp-image-6848" src="http://mcuoneclipse.files.wordpress.com/2013/02/delete-configuration.png?w=584" /&gt;&lt;/a&gt;&amp;nbsp; &lt;/div&gt;&lt;div class="stipple-dottable-wrapper" style="text-align:center;margin:0px auto;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;Delete Configuration&lt;/span&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;"&gt;And if I rename the remaining configuration back to FLASH, I have it nice and clean:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/02/cleaned-up-project.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;span style="font-size:12pt;"&gt;&lt;img loading="lazy" alt="Cleaned up Project" class="jiveImage size-full wp-image-6849" src="http://mcuoneclipse.files.wordpress.com/2013/02/cleaned-up-project.png?w=584" style="display:block;margin-left:auto;margin-right:auto;" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;text-align:center;"&gt;&lt;em&gt;Cleaned up Project&lt;/em&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;"&gt;And a last look at the picture in the Processor View shows me that I have now the 32 pin package &lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g"&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;p style="margin:0;"&gt;&lt;span style="font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="text-align:center;margin:0px auto;"&gt;&amp;nbsp; &lt;a href="http://mcuoneclipse.files.wordpress.com/2013/02/kl05z-with-32-pins-in-processor-view.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="KL05Z with 32 pins in Processor View" class="jiveImage size-full wp-image-6851" src="http://mcuoneclipse.files.wordpress.com/2013/02/kl05z-with-32-pins-in-processor-view.png?w=584" /&gt;&lt;/a&gt;&amp;nbsp; &lt;/div&gt;&lt;div class="stipple-dottable-wrapper" style="text-align:center;margin:0px auto;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;KL05Z with 32 pins in Processor View&lt;/span&gt;&lt;/div&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;p class="alignnone wp-caption" style="margin:0;"&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt;&lt;/p&gt;&lt;h2&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Summary&lt;/span&gt;&lt;/h2&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Changing the processor package is important as not every package has all the registers/ports mapped to the outside world. Processor Expert creates you a project with maybe a widely used package, and it is easy to change the package type later in the project (if I know how to do it &lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g"&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; . Changing or switching packages is important as well if I develop a project which has to be used with different packaging variants.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;h2&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Update&lt;/span&gt;&lt;/h2&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;While writing this article, I had a sneak preview of the upcoming update of MCU10.3. In that update things are changed a lbit to make things easier. For example, the tooltip in the Components Library view shows now all supported packages:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/02/tooltip-showing-all-packages.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Tooltip showing all packages" class="jiveImage size-full wp-image-6855" src="http://mcuoneclipse.files.wordpress.com/2013/02/tooltip-showing-all-packages.png?w=584" style="display:block;margin-left:auto;margin-right:auto;" /&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:tahoma,arial,helvetica,sans-serif;"&gt;Tooltip showing all packages&lt;/em&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;And I can switch the CPU package in the CPU properties directly:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="text-align:center;margin:0px auto;"&gt;&amp;nbsp; &lt;a href="http://mcuoneclipse.files.wordpress.com/2013/02/switching-packages-in-the-cpu-type.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Switching Packages in the CPU Type" class="jiveImage size-full wp-image-6856" src="http://mcuoneclipse.files.wordpress.com/2013/02/switching-packages-in-the-cpu-type.png?w=584" /&gt;&lt;/a&gt;&amp;nbsp; &lt;/div&gt;&lt;div class="stipple-dottable-wrapper" style="text-align:center;margin:0px auto;"&gt;&lt;em style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;Switching Packages in the CPU Type&lt;/em&gt;&lt;/div&gt;&lt;p style="margin:0;text-align:left;background-color:#ffffff;text-indent:0px;color:#333333;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;text-align:left;background-color:#ffffff;text-indent:0px;color:#333333;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;text-align:left;background-color:#ffffff;text-indent:0px;color:#333333;"&gt;&lt;strong style="font-size:12pt;font-family:tahoma,arial,helvetica,sans-serif;"&gt;Update Codewarrior for MCU v10.4&lt;/strong&gt;&lt;/p&gt;&lt;p style="margin:0;text-align:left;background-color:#ffffff;text-indent:0px;color:#333333;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;I continue to uncover new things in CodeWarrior in MCU10.4 &lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g"&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;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Although that’s not something I need to do on a daily base, this process is simplified in the new version 10.4 &lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g"&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;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="text-align:center;margin:0px auto;"&gt;&amp;nbsp; &lt;a href="http://mcuoneclipse.files.wordpress.com/2013/04/select-package.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Select Package" class="jiveImage wp-image-7429 size-full" src="http://mcuoneclipse.files.wordpress.com/2013/04/select-package.png?w=584" /&gt;&lt;/a&gt;&amp;nbsp; &lt;/div&gt;&lt;div class="stipple-dottable-wrapper" style="text-align:center;margin:0px auto;"&gt;&lt;em style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;Select Package&lt;/em&gt;&lt;/div&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;p class="alignnone wp-caption" style="margin:0;"&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;As a bonus, the Processor View has now a ‘Generate Code’ button too &lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g"&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;/blockquote&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;The ‘Processor’ view has now a button ‘Select Package’ where I can switch the package:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_idea.gif?m=1129645325g"&gt;&lt;img loading="lazy" alt=":idea:" class="jiveImage wp-smiley" src="http://s0.wp.com/wp-includes/images/smilies/icon_idea.gif?m=1129645325g" /&gt;&lt;/a&gt; The Processor view is available from the menu Window &amp;gt; Show View &amp;gt; Other &amp;gt; Processor Expert &amp;gt; Processor.&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p class="alignnone wp-caption" style="margin:0;text-align:center;"&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="text-align:center;margin:0px auto;"&gt;&amp;nbsp; &lt;a href="http://mcuoneclipse.files.wordpress.com/2013/04/available-packages.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Available Packages" class="jiveImage size-full wp-image-7430" src="http://mcuoneclipse.files.wordpress.com/2013/04/available-packages.png?w=584" /&gt;&lt;/a&gt;&amp;nbsp; &lt;/div&gt;&lt;div class="stipple-dottable-wrapper" style="text-align:center;margin:0px auto;"&gt;&lt;em style="font-family:tahoma,arial,helvetica,sans-serif;"&gt;Available Packages&lt;/em&gt;&lt;/div&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;p class="alignnone wp-caption" style="margin:0;"&gt;&lt;/p&gt;&lt;div class="stipple-dottable-wrapper" style="margin:0px auto;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/div&gt;&lt;p style="margin:0;"&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;This then changes me current package to the new one.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Another way is to use the Inspector view on the CPU: here I can change it too:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;a href="http://mcuoneclipse.files.wordpress.com/2013/04/selecting-cpu-type-in-inspector.png" rel="nofollow ugc noopener" target="_blank"&gt;&lt;img loading="lazy" alt="Selecting CPU Type in Inspector" class="jiveImage size-full wp-image-7431" height="221" src="http://mcuoneclipse.files.wordpress.com/2013/04/selecting-cpu-type-in-inspector.png?w=584&amp;amp;h=221" style="display:block;margin-left:auto;margin-right:auto;" width="584" /&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:tahoma,arial,helvetica,sans-serif;"&gt;Selecting CPU Type in Inspector&lt;/em&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p class="wp-caption-text" style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Now things are easier and easier to find, and changing the microcontroller package is as easy as it should be &lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g"&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;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:tahoma,arial,helvetica,sans-serif;font-size:12pt;"&gt;Happy Selecting &lt;a href="http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif?m=1129645325g"&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: compiler, Processor, expert, freescale, package, kinetis, codewarrior&lt;/div&gt;
</description></item><item><title>Getting started with mbed.org and FRDM-KL25Z</title><link>https://community.element14.com/products/devtools/kinetiskl2freedomboard/w/documents/11160/getting-started-with-mbed-org-and-frdm-kl25z</link><pubDate>Fri, 08 Oct 2021 05:31:40 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:ab6eaecc-2d1d-4755-a188-6e2051f9b830</guid><dc:creator>bprewit</dc:creator><description>Current Revision posted to Documents by bprewit on 10/8/2021 5:31:40 AM&lt;br /&gt;
&lt;p style="margin:0;"&gt;I recently came across mbed.org, an online toolchain for ARM parts.&amp;nbsp; The first thing that I noticed was that they claimed to support the Freedom-KL25z, so I thought I would put that to the test.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;The setup was not quite as effortless as I expected.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;The first step was updating the bootloader by following this procedure:&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;Update the bootloader firmware from a Windows system. &lt;em&gt; I attempted this from both Linux &amp;amp; Mac without success (this was the most frustrating part)&lt;/em&gt;&lt;ol&gt;&lt;li&gt;Dowload the firmware updates from PE Micro (&lt;a class="jive-link-external-small" href="http://www.pemicro.com/downloads/download_file.cfm?download_id=378" rel="nofollow ugc noopener" target="_blank"&gt;here&lt;/a&gt;) &lt;/li&gt;&lt;li&gt;Unpack the file Pemicro_OpenSDA_Debug_MSD_Update_Apps_2013_01_07.zip to a convenient location.&lt;/li&gt;&lt;li&gt;Follow the instructions contained in the BOOTUPDATEAPP_release_notes.txt file.&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li&gt;Create an account on mbed.org&lt;/li&gt;&lt;li&gt;Install the mbed firmware by following &lt;a class="jive-link-external-small" href="https://mbed.org/handbook/mbed-FRDM-KL25Z-Getting-Started" rel="nofollow ugc noopener" target="_blank"&gt;this procedure&lt;/a&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;Once all of that has been completed, you should have a USB disk titled &amp;quot;MBED&amp;quot; available; mount this disk as required for your operating system.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt; The rest is just plain fun.&amp;nbsp; Using the mbed compiler, The &amp;quot;HelloWorld&amp;quot; application that I created compiled and ran without any changes.&amp;nbsp; Compliing a program from the online compiler results in a downloaded &amp;quot;.bin&amp;quot; file, which is then copied to the USB drive.&amp;nbsp; Hit the reset button on the Freedom board and voila, your program is running!&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span&gt;&lt;a href="https://community.element14.com/resized-image/__size/620x318/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_22853.png"&gt;&lt;img alt="image" src="https://community-storage.element14.com/communityserver-components-secureimagefileviewer/communityserver/wikis/components/files/00/00/00/01/49/contentimage_22853.png-620x318.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=yhO42Nrao8hylAimC2XHx%2FYGEzneUgR8vpyHmIDHycs%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=Jf0LLpivnqynyi3/PtiJYg==" style="max-height: 318px;max-width: 620px;" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;I tested both the default (gpio) demo and a serial demo.&amp;nbsp; Both compiled exactly as expected, downloaded without problems, and ran immediately.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;If you want to do very much, you will probably want to replace the precompiled library with the source library.&amp;nbsp; I had to do this to find out what mbed was calling the pins.&amp;nbsp; The procedure is simple; delete the default &amp;quot;mded&amp;quot; lib and import the source libraries from &lt;span class="active_link"&gt;the mbed SDK (&lt;a class="jive-link-external-small" href="https://mbed.org/handbook/mbed-SDK" rel="nofollow ugc noopener" target="_blank"&gt;here&lt;/a&gt;). You will need to import both the mbed-src lib and the mbed-Freescale lib.&amp;nbsp; The pin names are (surprisingly) in the file &amp;quot;PinNames.h&amp;quot; under &amp;quot;mbed-Freescale/capi/KL25Z&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;All in all, I was impressed with the mbed tools; other than the confusion regarding the requirement for the bootloader upgrade to be performed from Windows, getting started with mbed.org was faster than downloading and installing native tools.&amp;nbsp; The library routines worked as expected and the documentation for both the library and compiler are both excellent.&amp;nbsp; In addition, I do not believe that mbed has any code-size restrictions.&amp;nbsp; There are provisions to export your project to several other&amp;nbsp; formats:&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/464x256/__key/communityserver-wikis-components-files/00-00-00-01-49/contentimage_5F00_22854.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/contentimage_22854.png-464x256.png?sv=2016-05-31&amp;amp;sr=b&amp;amp;sig=wKJQdR3vfvHWGrTzK6pB%2Fu%2FRaQHj5A2QjLi1sZg%2FvLc%3D&amp;amp;se=2026-04-26T23%3A59%3A59Z&amp;amp;sp=r&amp;amp;_=lqzgJsfbTHpyYsJOUuJqTw==" style="max-height: 256px;max-width: 464px;" /&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;I would say that this is a definite &amp;quot;win&amp;quot; .. &lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span class="active_link"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item></channel></rss>