<?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>topic Re: porting FRDM KL27Z64 demo project to KL27Z32 in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/porting-FRDM-KL27Z64-demo-project-to-KL27Z32/m-p/653287#M7065</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Feb 2017 10:11:14 GMT</pubDate>
    <dc:creator>PO220</dc:creator>
    <dc:date>2017-02-11T10:11:14Z</dc:date>
    <item>
      <title>porting FRDM KL27Z64 demo project to KL27Z32</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/porting-FRDM-KL27Z64-demo-project-to-KL27Z32/m-p/653285#M7063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I'm using a KL27Z32 for full speed usb.&lt;/P&gt;&lt;P&gt;In the attached project I try to port the usb_device_cdc_vcom FRDM_KL27Z (kl27z&lt;STRONG&gt;64&lt;/STRONG&gt;) demo project to a KL27Z&lt;STRONG&gt;32&lt;/STRONG&gt; project&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;The project compiles&lt;/SPAN&gt;&lt;/SPAN&gt; but usb don't works :&lt;/P&gt;&lt;P&gt;in usb_device_class.c&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;if ((NULL != s_UsbDeviceCommonClassStruct[count].handle) &amp;amp;&amp;amp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (controllerId == s_UsbDeviceCommonClassStruct[count].controllerId))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; USB_OSA_EXIT_CRITICAL();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return kStatus_USB_Error;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;return USB_error.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;USB Stack User's Guide describe a method to Porting to a new plateform but &lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;since KSDK &lt;STRONG&gt;2.1&lt;/STRONG&gt; I can not make it work&lt;/SPAN&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;Before I could import an example with import =&amp;gt; existing ...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122785i970A7225099B8566/image-size/large?v=v2&amp;amp;px=999" title="175354_175354.JPG" alt="175354_175354.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/12581i6EB28E4AFF4C0D41/image-size/large?v=v2&amp;amp;px=999" title="before.JPG" alt="before.JPG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;But since 2.1 KSDK, projects no longer compile with this method with a lot of error&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122786i66FC8D603AE3FEDC/image-size/large?v=v2&amp;amp;px=999" title="175364_175364.JPG" alt="175364_175364.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/12620iA406DCA184F811D8/image-size/large?v=v2&amp;amp;px=999" title="error.JPG" alt="error.JPG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;Now to import a project I have to go through file=&amp;gt;new=&amp;gt;kinetis SDK 2.0 project&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/122787i7D1F6A1BFA2835E1/image-size/large?v=v2&amp;amp;px=999" title="175365_175365.JPG" alt="175365_175365.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/12663i4FA8B52499ADEE5F/image-size/large?v=v2&amp;amp;px=999" title="now.JPG" alt="now.JPG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;but I can not change platform with this method&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;What is it missing in my test Z32 project ?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;or &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;How to use the demo for KL27Z64 with a KL27Z32 ?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;Thank you in advance&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338825"&gt;test-kl27z32-bm-demo-vcp-usb.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Jan 2017 12:37:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/porting-FRDM-KL27Z64-demo-project-to-KL27Z32/m-p/653285#M7063</guid>
      <dc:creator>PO220</dc:creator>
      <dc:date>2017-01-29T12:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: porting FRDM KL27Z64 demo project to KL27Z32</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/porting-FRDM-KL27Z64-demo-project-to-KL27Z32/m-p/653286#M7064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi PO220&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case you only want to change to a MCU that has less flash, this mean that all the features and registers will be the same, your flash size is the one that will change in the linker file. Please download the SDK_2.1_MKL27Z32xxx4 in &lt;A class="link-titled" href="https://mcuxpresso.nxp.com" title="https://mcuxpresso.nxp.com"&gt;Welcome to MCUXpresso | MCUXpresso Config Tools&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clone the usb project that you want: Go&amp;nbsp;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;to file-&amp;gt;new-&amp;gt;kinetis SDK 2.x project, assigned a name to your project and select the SDK folder that you downloaded. go to Boards-&amp;gt;FRDM-KL27Z board-&amp;gt;Examples and select the usb that you want to clone. then in propierties of you clone project go to Settings-&amp;gt;Cross ARM C Compiler-&amp;gt;Preprocessor and change the CPU_MKL27Z64VLH4 to the what that you want (for example CPU_MKL27Z32VLH4). Do the same with Cross ARM C ++ Compiler-&amp;gt;Preprocessor.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;After this, in your project folders, go to settings and delete the MKL27Z64xxx4_flash.ld file and copy and paste the&amp;nbsp;MKL27Z32xxx4_flash.ld file located in {SDK_2.1_MKL27Z32xxx4}\devices\MKL27Z644\gcc. please note that this part is the one that will change your flash memory size.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class=""&gt;With this settings your MCU should change. Please take care that all defines in board.h are considering the frdm board that uses CPU_MKL27Z64VLH4.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope this information helps you&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jorge Alcala&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2017 22:04:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/porting-FRDM-KL27Z64-demo-project-to-KL27Z32/m-p/653286#M7064</guid>
      <dc:creator>jorge_a_vazquez</dc:creator>
      <dc:date>2017-02-08T22:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: porting FRDM KL27Z64 demo project to KL27Z32</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/porting-FRDM-KL27Z64-demo-project-to-KL27Z32/m-p/653287#M7065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Feb 2017 10:11:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/porting-FRDM-KL27Z64-demo-project-to-KL27Z32/m-p/653287#M7065</guid>
      <dc:creator>PO220</dc:creator>
      <dc:date>2017-02-11T10:11:14Z</dc:date>
    </item>
  </channel>
</rss>

