<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>[FRDM-K64F - 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><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><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><comments>https://community.element14.com/products/devtools/kinetiskl2freedomboard/w/documents/17007/frdm-k64f---pe---eclipse-project-create-a-data-logger#comments</comments><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></channel></rss>