<?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 - SDK] Introduction</title><link>https://community.element14.com/products/devtools/kinetiskl2freedomboard/w/documents/16935/frdm-k64f---sdk-introduction</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>[FRDM-K64F - SDK] Introduction</title><link>https://community.element14.com/products/devtools/kinetiskl2freedomboard/w/documents/16935/frdm-k64f---sdk-introduction</link><pubDate>Fri, 08 Oct 2021 07:50:45 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:c7fcdaeb-00db-43e4-a6ee-f0d6162c7762</guid><dc:creator>bheemarao</dc:creator><comments>https://community.element14.com/products/devtools/kinetiskl2freedomboard/w/documents/16935/frdm-k64f---sdk-introduction#comments</comments><description>Current Revision posted to Documents by bheemarao on 10/8/2021 7:50:45 AM&lt;br /&gt;
&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;&lt;span style="color:#ff0000;font-family:Verdana;font-size:11px;"&gt;This Document was extracted from &lt;/span&gt;&lt;a class="jive-link-external-small" href="https://community.freescale.com/people/amh" rel="nofollow" style="font-size:11px;font-family:Verdana;color:#592d5f;" target="_blank"&gt;&lt;span style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#ff0000;"&gt;Anthony Huereca&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#ff0000;font-family:Verdana;font-size:11px;"&gt; blog published at Freescale Community Forum &lt;a class="jive-link-external-small" href="https://community.freescale.com/docs/DOC-100718" rel="nofollow ugc noopener" target="_blank" title="https://community.freescale.com/docs/DOC-100718"&gt;&lt;span style="text-decoration:underline;"&gt;https://community.freescale.com/docs/DOC-100718&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style="color:#ff0000;font-family:Verdana;font-size:11px;"&gt; with his agreement.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;Kinetis SDK is a new complimentary software offering from Freescale for Kinetis microcontrollers. The Kinetis software development kit (SDK) provides an extensive suite of robust peripheral drivers, stacks, middleware and example applications designed to simplify and accelerate application development on any Kinetis MCU. The addition of Processor Expert technology for software and board support configuration provides unmatched ease of use and flexibility. The Kinetis SDK includes full source code under a permissive open-source license for all hardware abstraction and peripheral driver software.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;Kinetis SDK is currently in beta, and can be used with FRDM-K64F or TWR-K64F120M. More boards will be supported in future releases. Note that because the SDK is in beta, certain features and API naming conventions may change before the General Availability (GA) release scheduled for summer 2014.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;This document goes over the basics of starting with Kinetis SDK and common troubleshooting tips.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;&lt;span style="font-style:inherit;font-size:18pt;font-family:inherit;font-weight:inherit;"&gt;&lt;strong&gt;Getting Started with Kinetis SDK and FRDM-K64F&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;The FRDM-K64F is a new fully featured Freescale Freedom board with a 120MHz Cortex M4 based Kinetis K64 MCU. The board also features Arduino hardware compatibility, an accelerometer and magnetometer (Freescale’s &lt;a class="jive-link-external-small" href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=FXOS8700CQ" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;"&gt;FXOS8700CQ&lt;/a&gt;), and push buttons/LEDs, plus an Ethernet port, microSD port, and OpenSDAv2 for debugging.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;Also note that only IAR and GCC are supported currently by the beta version of the SDK, though more IDEs will be supported in later releases. For now we’ll use the IAR compiler.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;First download and unzip the beta release (FSLKSDK_1_0_0_BETA) of the Kinetis SDK software from &lt;a class="jive-link-external-small" href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=KINETIS_SDK" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;"&gt;&lt;span style="text-decoration:underline;"&gt;http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=KINETIS_SDK&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;Take a look at the documentation in the&lt;span style="text-decoration:underline;"&gt; /doc&lt;/span&gt; folder, in particular the &lt;a class="jive-link-external-small" href="http://cache.freescale.com/files/soft_dev_tools/doc/support_info/KSDKRN.pdf?fpsp=1" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;"&gt;Release Notes&lt;/a&gt; and the &lt;a class="jive-link-external-small" href="http://cache.freescale.com/files/32bit/doc/user_guide/FRDMK64FUG.pdf" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;"&gt;K64 User Guide&lt;/a&gt;. The Release Notes has an important note about a possible issue when debugging in IAR so be sure to read the last section.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;Also note the basic Kinetis SDK directory structure. More details can be found in the Release Notes:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;apps – SDK examples and demos&lt;/li&gt;&lt;li&gt;boards –board specific files&lt;/li&gt;&lt;li&gt;lib – where the compiled SDK libraries reside&lt;/li&gt;&lt;li&gt;platform – SDK driver and HAL source code, linker files, and startup code&lt;/li&gt;&lt;/ul&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt; &lt;/span&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt; &lt;/span&gt;&lt;span style="margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;Since all the examples are in the apps folder, check out the “hello_world” project at &lt;span style="font-style:inherit;font-family:inherit;text-decoration:underline;"&gt;&lt;strong&gt;\KSDK_1.0.0-Beta\apps\hello_world\iar\frdmk64f120m\hello_world.eww&lt;/strong&gt;&lt;/span&gt; of it for a simple hello world type app.&lt;/span&gt;&lt;span style="margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;Use &lt;span style="font-style:inherit;font-family:inherit;"&gt;&lt;strong&gt;Section 4.1.1&lt;/strong&gt;&lt;/span&gt; of the K64 User Guide for instructions on how to build the application. The &lt;span style="font-size:11.5pt;font-style:inherit;font-family:inherit;font-weight:inherit;"&gt;&lt;strong&gt;platform_lib.a&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-weight:inherit;font-style:inherit;font-size:11.5pt;font-family:inherit;"&gt; SDK library which provides the drivers and HAL layer is already pre-compiled.&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#3d3d3d;font-size:20pt;font-style:inherit;margin-bottom:0.0001pt;font-family:inherit;font-weight:inherit;"&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#3d3d3d;font-style:inherit;font-size:18pt;margin-bottom:0.0001pt;font-family:inherit;font-weight:inherit;"&gt;&lt;strong&gt;Debugging Kinetis SDK on FRDM-K64F:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;Typically, debugging is done via the &lt;a class="jive-link-wiki-small" href="https://community.freescale.com/docs/DOC-100720" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;"&gt;OpenSDAv2 &lt;/a&gt;circuit built onto the FRDM-K64F board. Make sure to use the USB connector to the left of the Ethernet port, J26. By default the FRDM-K64F uses the CMSIS-DAP/mbed interface as the debug protocol. However it is also possible to use the P&amp;amp;E Micro debug interface on the board instead.&lt;/span&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt; &lt;/span&gt;&lt;span style="margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;As mentioned before, there is a potential issue with debugging with IAR if a project is allowed to exit out of main(). This may cause issues when connecting via the debugger again when using the CMSIS-DAP/mbed interface. Because of this, there is a P&amp;amp;E Micro app available for OpenSDAv2 that comes with the Kinetis SDK zip file that can be loaded onto the OpenSDAv2 circuit on the board. The CMSIS-DAP/mbed interface app is being updated to fix this issue.&lt;/span&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt; &lt;/span&gt;&lt;span style="margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;When debugging, you may get a warning about missing source files. You can ignore those as they are caused by using the pre-compiled SDK platform library. Look down below in the Troubleshooting section for how to get rid of these messages.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#3d3d3d;font-style:inherit;margin-bottom:0.0001pt;font-family:inherit;"&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#3d3d3d;font-style:inherit;margin-bottom:0.0001pt;font-family:inherit;"&gt;&lt;strong&gt;Debugging with CMSIS-DAP/mbed Interface:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;The FRDM-K64F board uses the CMSIS-DAP/mbed interface by default as it is using OpenSDAv2. However the IAR projects in the beta version of Kinetis SDK use the P&amp;amp;E Micro debug interface. This will be changed for later version of the Kinetis SDK, but to use the default OpenSDAv2 debug interface, you’ll need to change the project’s debug interface to CMSIS-DAP.&amp;nbsp; Instructions for this are in &lt;span style="font-style:inherit;font-family:inherit;"&gt;&lt;strong&gt;Appendix B&lt;/strong&gt;&lt;/span&gt; of the K64 User Guide.&lt;/span&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#3d3d3d;font-style:inherit;margin-bottom:0.0001pt;font-family:inherit;"&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#3d3d3d;font-style:inherit;margin-bottom:0.0001pt;font-family:inherit;"&gt;&lt;strong&gt;Debugging with P&amp;amp;E Micro Interface:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;To debug using the P&amp;amp;E Micro interface, the P&amp;amp;E Micro OpenSDAv2 app needs to be loaded onto the OpenSDAv2 circuit. Instructions for loading and using this app are in&lt;span style="font-style:inherit;font-family:inherit;"&gt;&lt;strong&gt;Section 4.1.2&lt;/strong&gt;&lt;/span&gt; in the K64 User Guide. Use the &lt;span style="font-style:inherit;font-family:inherit;"&gt;&lt;strong&gt;DEBUG_K64F_MBED_PEMICRO_V108.BIN &lt;/strong&gt;&lt;/span&gt;file that came inside the Kinetis SDK zip file.&lt;/span&gt;&lt;span style="margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;If you want to return to the original CMSIS-DAP/mbed interface, you can find a binary app to drag-and-drop onto the OpenSDAv2 bootloader on the FRDM-K64F mbed page.&lt;a class="jive-link-external-small" href="http://mbed.org/handbook/Firmware-FRDM-K64F" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;"&gt;Firmware FRDM K64F - Handbook | mbed&lt;/a&gt;&lt;/span&gt;&lt;span style="margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;&lt;a href="https://community.freescale.com/servlet/JiveServlet/showImage/102-100718-2-11439/pastedImage_2.png" rel="nofollow ugc noopener" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;" target="_blank"&gt;&lt;img alt="image"  class="jiveImage" height="279" src="https://community.freescale.com/servlet/JiveServlet/downloadImage/102-100718-2-11439/pastedImage_2.png" style="border:0px;font-weight:inherit;font-style:inherit;font-family:inherit;" width="628" /&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style="margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt; &lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#3d3d3d;font-style:inherit;font-size:18pt;margin-bottom:0.0001pt;font-family:inherit;font-weight:inherit;"&gt;&lt;strong&gt;Troubleshooting:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="color:#00b050;font-style:inherit;margin-bottom:0.0001pt;font-family:inherit;font-weight:inherit;"&gt;&lt;strong&gt;I’m using the CMSIS-DAP/mbed debug interface with IAR, and I can’t connect to my board anymore with an error: “Fatal error: Probe not found. Session aborted!”:&lt;/strong&gt;&lt;/span&gt;&lt;span style="margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;There’s an issue as described in the Kinets SDK release notes where the debugger can become non-responsive if the code is allowed to exit the main() function when using the CMSIS-DAP interface with OpenSDAv2.&lt;/span&gt;&lt;span style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt; &lt;/span&gt;&lt;span style="margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;To recover the board you have a few options:&lt;/span&gt;&lt;/p&gt;&lt;ol style="font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;&lt;li&gt;Load the P&amp;amp;E Micro interface app onto OpenSDAv2, and then flash a known good program&lt;/li&gt;&lt;li&gt;The board should still enumerate as a mass storage device, and you can drag-and-drop a known good program onto the board. You may have to hit the reset button a few times to get it to properly enumerate though. A known good hello_world program has been attached to this post.&lt;/li&gt;&lt;/ol&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;This will be fixed in future versions of the CMSIS-DAP/mbed interface app. In the meantime, make sure to put a while(1) loop in your code before exiting main(). Also check out the blog entry on this issue on&lt;a class="jive-link-external-small" href="http://mcuoneclipse.com/2014/04/19/recovering-frdm-k64f-mbed-board/" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;"&gt; MCU on Eclipse&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;&lt;span style="color:#00b050;font-style:inherit;font-family:inherit;font-weight:inherit;"&gt;&lt;strong&gt;When I start debugging, I get a warning message that it “Could not find the following source file: D:\mcu-sdk-re\rc3_2_release\Kinetis_SDK\platform\hal\pit\fsl_pit_hal.h”:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;This is caused by using the pre-compiled SDK library, which was built on a different directory structure than what is on your particular computer.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;To fix, recompile the Kinetis SDK platform library by following the directions in Appendix A of the Kinetis SDK K64 Users Guide.pdf&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;&lt;span style="color:#00b050;font-style:inherit;font-family:inherit;font-weight:inherit;"&gt;&lt;strong&gt;The serial port is not enumerating:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;If using the default CMSIS-DAP/mbed interface, you must first install the &lt;a class="jive-link-external-small" href="http://mbed.org/handbook/Windows-serial-configuration" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;"&gt;mbed Windows serial port driver&lt;/a&gt; before it will enumerate on Windows properly. It should work in Mac OS and Linux without a driver.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;&lt;span style="color:#00b050;font-style:inherit;font-family:inherit;font-weight:inherit;"&gt;&lt;strong&gt;When I start debugging, I get an error message that says “Undected. Disconnect/Connect USB cable. Click Refresh List”:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;The likely problem is that the FRDM-K64F has the default CMSIS-DAP/mbed firmware, and the IAR project is trying to use the P&amp;amp;E Micro interface. Use the instructions in&lt;span style="font-style:inherit;font-family:inherit;"&gt;&lt;strong&gt;Appendix B&lt;/strong&gt;&lt;/span&gt; of the K64 User Guide to change the debug interface in IAR to use CMSIS-DAP. Or else change the firmware in the OpenSDAv2 circuit to the P&amp;amp;E Micro firmware.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;&lt;span style="color:#00b050;font-style:inherit;font-family:inherit;font-weight:inherit;"&gt;&lt;strong&gt;When compiling the Kinetis SDK platform library in IAR 7.10.x, I the following error messages: Error[Pm056]: all if, else if constructs should contain a final else clause (MISRA C 2004 rule 14.10):&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;This is caused by a MISRA C 2004 rule violation. The beta Kinetis SDK was built using IAR 6.70, but the MISRA C checks were changed when IAR moved to 7.10.x which is why this comes up in IAR 7.10.x.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;This error can be fixed by disabling MISRA C checking in the project settings.&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;Right click on the platform_lib project, and under the General Options category, scroll over (using the arrow keys on the right) to the MISRA-C-2004 tab, and uncheck “Enable MISRA-C”.&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;&lt;a href="https://community.freescale.com/servlet/JiveServlet/showImage/102-100718-2-11440/pastedImage_4.png" rel="nofollow ugc noopener" style="font-weight:inherit;font-style:inherit;font-family:inherit;color:#6a737b;" target="_blank"&gt;&lt;img loading="lazy" alt="image"  class="jiveImage" height="498" src="https://community.freescale.com/servlet/JiveServlet/downloadImage/102-100718-2-11440/pastedImage_4.png" style="border:0px;font-weight:inherit;font-style:inherit;font-family:inherit;" width="548" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;padding:0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;&lt;span style="color:#00b050;font-style:inherit;font-family:inherit;font-weight:inherit;"&gt;&lt;strong&gt;When debugging with the P&amp;amp;E Micro OpenSDAv2 app, I get an error that says “Error reading data from OpenSDA hardware. E17925”&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin:0;margin-bottom:0.0001pt;font-family:&amp;#39;Helvetica Neue&amp;#39;, Helvetica, Arial, &amp;#39;Lucida Grande&amp;#39;, sans-serif;color:#3d3d3d;"&gt;&lt;span style="font-weight:inherit;font-style:inherit;font-family:inherit;color:black;"&gt;This is being investigated and seems to affect IAR 7.10.x and CW10, but not earlier versions of IAR. In the meantime, use the CMSIS-DAP/mbed interface app instead.&lt;/span&gt;&lt;/p&gt;
&lt;div class="migration-injected-attachments"&gt;&lt;div style="font-weight:bold;margin:15px 0 5px 0;"&gt;Attachments:&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;table style="border:0;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td colspan="2"&gt;&lt;span class="_se_attachment" id="attid_https://www.element14.com/community/api/core/v3/attachments/135304"&gt;&lt;a href="https://community.element14.com/cfs-file/__key/communityserver-wikis-components-files/00-00-00-01-49/hello_5F00_world.bin.zip"&gt;community.element14.com/.../hello_5F00_world.bin.zip&lt;/a&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: kinetis;&lt;/div&gt;
</description></item></channel></rss>