<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Kinetis Software Development Kit中的主题 FRDM-K64F Startup problems</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64F-Startup-problems/m-p/309016#M18</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;Hi, I'm trying to get started with the FRDM-K64F board.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;I've played with mbed; but would prefer to just use &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-size: 10.0pt; font-family: 'inherit','serif'; font-weight: inherit;"&gt;cygwin/gcc and build the apps that come with the SDK.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;So, I unzipped the sdk, and cd'd to &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;EM style=": ; color: #3d3d3d; font-size: 10.0pt; font-family: 'inherit','serif'; text-decoration: underline; font-weight: inherit;"&gt;apps/hello_world/gcc/frdmk64f120m&lt;/EM&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;.&amp;nbsp; I adjusted the common.mk file&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;(at the top directory level) to point to my arm-none-eabi-gcc.&amp;nbsp; When I typed make, I get an error like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-size: 8.0pt; font-family: 'Courier New'; font-weight: inherit;"&gt;arm-none-eabi-gcc.exe: error: /cygdrive/c/users/ed/documents/KinetisK64/Kinetis_SDK/KSDK_1.0.0-Beta/apps/hello_world/src/hello_world.c: No such file or directory&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;Of course, the file does exist but (I've seen this before) apparently arm-none-eabi-gcc.exe doesn't understand the "/cygdrive/c" path which is created by abspath in the makefile.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;So, I tried to hard-code the path to use &lt;/SPAN&gt;&lt;STRONG style="color: #3d3d3d; font-style: inherit; font-size: 10.0pt; font-family: 'inherit','serif';"&gt;C:/&lt;/STRONG&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;instead of &lt;/SPAN&gt;&lt;STRONG style="color: #3d3d3d; font-style: inherit; font-size: 10.0pt; font-family: 'inherit','serif';"&gt;/cygdrive/c&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;, then 'make' complains with this error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-size: 8.0pt; font-family: 'Courier New'; font-weight: inherit;"&gt;c:/users/ed/documents/KinetisK64/Kinetis_SDK/KSDK_1.0.0-Beta/mk/targets.mk:149: *** target pattern contains no '%'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;Googling a bit, I found that newer versions of make don't like the colon in the path, so the recommendation (according to&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;stackoverflow) was to use make version 3.8.&amp;nbsp; So I build it and replace my current make (which was GNU Make 4.0).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;Then when I run with that version of make, its apparently so old that it doesn't recognize "else ifeq" in some of the other&lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="list-style-type: lower-alpha;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;makefiles.&amp;nbsp; Arrgghh!&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P style="min-height: 8pt; padding: 0px; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;I must be doing something wrong here right?&amp;nbsp; Has anyone built the SDK apps using cygwin/gcc?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;Tx&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;Ed&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 May 2014 12:14:47 GMT</pubDate>
    <dc:creator>EdSutter</dc:creator>
    <dc:date>2014-05-30T12:14:47Z</dc:date>
    <item>
      <title>FRDM-K64F Startup problems</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64F-Startup-problems/m-p/309016#M18</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;Hi, I'm trying to get started with the FRDM-K64F board.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;I've played with mbed; but would prefer to just use &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-size: 10.0pt; font-family: 'inherit','serif'; font-weight: inherit;"&gt;cygwin/gcc and build the apps that come with the SDK.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;So, I unzipped the sdk, and cd'd to &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;EM style=": ; color: #3d3d3d; font-size: 10.0pt; font-family: 'inherit','serif'; text-decoration: underline; font-weight: inherit;"&gt;apps/hello_world/gcc/frdmk64f120m&lt;/EM&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;.&amp;nbsp; I adjusted the common.mk file&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;(at the top directory level) to point to my arm-none-eabi-gcc.&amp;nbsp; When I typed make, I get an error like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-size: 8.0pt; font-family: 'Courier New'; font-weight: inherit;"&gt;arm-none-eabi-gcc.exe: error: /cygdrive/c/users/ed/documents/KinetisK64/Kinetis_SDK/KSDK_1.0.0-Beta/apps/hello_world/src/hello_world.c: No such file or directory&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;Of course, the file does exist but (I've seen this before) apparently arm-none-eabi-gcc.exe doesn't understand the "/cygdrive/c" path which is created by abspath in the makefile.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;So, I tried to hard-code the path to use &lt;/SPAN&gt;&lt;STRONG style="color: #3d3d3d; font-style: inherit; font-size: 10.0pt; font-family: 'inherit','serif';"&gt;C:/&lt;/STRONG&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;instead of &lt;/SPAN&gt;&lt;STRONG style="color: #3d3d3d; font-style: inherit; font-size: 10.0pt; font-family: 'inherit','serif';"&gt;/cygdrive/c&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;, then 'make' complains with this error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: #3d3d3d; font-style: inherit; font-size: 8.0pt; font-family: 'Courier New'; font-weight: inherit;"&gt;c:/users/ed/documents/KinetisK64/Kinetis_SDK/KSDK_1.0.0-Beta/mk/targets.mk:149: *** target pattern contains no '%'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;Googling a bit, I found that newer versions of make don't like the colon in the path, so the recommendation (according to&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;stackoverflow) was to use make version 3.8.&amp;nbsp; So I build it and replace my current make (which was GNU Make 4.0).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;Then when I run with that version of make, its apparently so old that it doesn't recognize "else ifeq" in some of the other&lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="list-style-type: lower-alpha;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;makefiles.&amp;nbsp; Arrgghh!&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P style="min-height: 8pt; padding: 0px; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;I must be doing something wrong here right?&amp;nbsp; Has anyone built the SDK apps using cygwin/gcc?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;Tx&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Helvetica','sans-serif'; color: #3d3d3d;"&gt;Ed&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 12:14:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64F-Startup-problems/m-p/309016#M18</guid>
      <dc:creator>EdSutter</dc:creator>
      <dc:date>2014-05-30T12:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K64F Startup problems</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64F-Startup-problems/m-p/309017#M19</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Self-reply here...&lt;/P&gt;&lt;P&gt;I posted this several days ago, with no response, and eventually realized I had it posted in the wrong discussion group.&amp;nbsp; Anyway, I wanted to keep this post, so it is re-posted here (hopefully in the right place now).&amp;nbsp; Meanwhile I gave up on trying to build the SDK directly from the included makefiles, and started up my own build that simply uses CodeSourcery, make, a FRDM-K64F and the Segger OpenSDAv2 bootloader.&amp;nbsp; This works very nice... I run "make" followed by "make flash" and its installed onboard.&lt;/P&gt;&lt;P&gt;Anyway, I'm still plugging away at snippets of the SDK code.&amp;nbsp; I've basically just taken various files from the SDK to build my program.&amp;nbsp; The biggest (time consumption) hurdle to get started was the fact that I had to define&amp;nbsp; __NO_INIT_DATA_BSS when compiling startup_MK64F12.S.&amp;nbsp; Nevertheless; I would still like to know if folks have built the SDK (using gcc-tools on pc/cygwin) successfully.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 12:24:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64F-Startup-problems/m-p/309017#M19</guid>
      <dc:creator>EdSutter</dc:creator>
      <dc:date>2014-05-30T12:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K64F Startup problems</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64F-Startup-problems/m-p/309018#M20</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to build SDK succesfully with GCC followig the instructions in Kinetis SDK K64 User's Guide on KSDK installation folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you added the necessary environment variables indicated on section "4.2 GCC ARM Embedded Tool"&amp;nbsp; in Windows? Please be aware that you must compile first the library to be able to build the examples.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 19:57:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64F-Startup-problems/m-p/309018#M20</guid>
      <dc:creator>Carlos_Musich</dc:creator>
      <dc:date>2014-06-03T19:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K64F Startup problems</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64F-Startup-problems/m-p/309019#M21</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Carlos,&lt;/P&gt;&lt;P&gt;Hi, thanks for replying.&amp;nbsp; Yea, I followed (almost) those steps, but get the error described above.&lt;/P&gt;&lt;P&gt;The one difference in my environment is that I'm just running with Cygwin, not MINGW.&lt;/P&gt;&lt;P&gt;There's apparently some fundamental environment difference between the two which causes the issue&lt;/P&gt;&lt;P&gt;I describe above.&amp;nbsp; Its possible I just have something screwed up in my Cygwin environment; however,&lt;/P&gt;&lt;P&gt;I've cross-compiled like this for years without problems; so I think its just some difference between&lt;/P&gt;&lt;P&gt;Cygwin and MINGW (haven't used the latter very much).&lt;/P&gt;&lt;P&gt;Anyway, its not a big deal anymore, I've managed to pull together my own environment (using Cygwin)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;to build up my boot monitor (&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.umonfw.com"&gt;http://www.umonfw.com&lt;/A&gt;&lt;SPAN&gt;) for the K64FRDM board.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2014 20:46:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/FRDM-K64F-Startup-problems/m-p/309019#M21</guid>
      <dc:creator>EdSutter</dc:creator>
      <dc:date>2014-06-03T20:46:23Z</dc:date>
    </item>
  </channel>
</rss>

