<?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 CodeWarrior 10.6, KSDK, and PE in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CodeWarrior-10-6-KSDK-and-PE/m-p/431058#M11808</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm new to Kinetis and still scratching my head over the relationship between all of the tools.&amp;nbsp; After years on CodeWarrior 6.3, I moved to 10.6 to be able to use a modern OS and to have a single development environment for my existing HCS08 and Coldfire projects as well as my new Kinetis projects.&amp;nbsp; It's starting to look like using CW for Kinetis might have been a bad choice, with Freescale in the process of abandoning it, but seeing as I've already sunk the money into a license I figure I'll try to stick it out for a bit.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to get started with a USB MSD implementation on a K22F as a replacement for a Coldfire v1 MCU running a Freescale-provided USB stack.&amp;nbsp; It looks like the Kinetis SDK is where I would find the equivalent stack, and indeed there's a demo app, but it looks like the KSDK is not set up to work with CodeWarrior.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would jump in and start trying to build what I need, but I thought I ought to check if this was a solved problem already.&amp;nbsp; Also, I'm not clear on the relationship of KSDK to Processor Expert.&amp;nbsp; I'm finally getting used to PE and I would rather not break it.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;tl;dr&lt;/STRONG&gt;:Need a USB stack for Kinetis K22 series.&amp;nbsp; Where do I get it, and how do I get it into CW 10.6 without breaking PE?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Nov 2015 22:13:11 GMT</pubDate>
    <dc:creator>scottm</dc:creator>
    <dc:date>2015-11-20T22:13:11Z</dc:date>
    <item>
      <title>CodeWarrior 10.6, KSDK, and PE</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CodeWarrior-10-6-KSDK-and-PE/m-p/431058#M11808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm new to Kinetis and still scratching my head over the relationship between all of the tools.&amp;nbsp; After years on CodeWarrior 6.3, I moved to 10.6 to be able to use a modern OS and to have a single development environment for my existing HCS08 and Coldfire projects as well as my new Kinetis projects.&amp;nbsp; It's starting to look like using CW for Kinetis might have been a bad choice, with Freescale in the process of abandoning it, but seeing as I've already sunk the money into a license I figure I'll try to stick it out for a bit.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to get started with a USB MSD implementation on a K22F as a replacement for a Coldfire v1 MCU running a Freescale-provided USB stack.&amp;nbsp; It looks like the Kinetis SDK is where I would find the equivalent stack, and indeed there's a demo app, but it looks like the KSDK is not set up to work with CodeWarrior.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would jump in and start trying to build what I need, but I thought I ought to check if this was a solved problem already.&amp;nbsp; Also, I'm not clear on the relationship of KSDK to Processor Expert.&amp;nbsp; I'm finally getting used to PE and I would rather not break it.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;tl;dr&lt;/STRONG&gt;:Need a USB stack for Kinetis K22 series.&amp;nbsp; Where do I get it, and how do I get it into CW 10.6 without breaking PE?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 22:13:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CodeWarrior-10-6-KSDK-and-PE/m-p/431058#M11808</guid>
      <dc:creator>scottm</dc:creator>
      <dc:date>2015-11-20T22:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: CodeWarrior 10.6, KSDK, and PE</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CodeWarrior-10-6-KSDK-and-PE/m-p/431059#M11809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;professor Erich Styger wrote a good article on how to use USB with the Freescale FRDM-K22F Board with processor expert component, can you refer it?&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2014/12/27/usb-with-the-freescale-frdm-k22f-board/" title="http://mcuoneclipse.com/2014/12/27/usb-with-the-freescale-frdm-k22f-board/"&gt;USB with the Freescale FRDM-K22F Board | MCU on Eclipse&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you will more related articles' link on the bottom of this page.&lt;/P&gt;&lt;P&gt;hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Zhang Jun&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>Tue, 24 Nov 2015 04:16:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CodeWarrior-10-6-KSDK-and-PE/m-p/431059#M11809</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2015-11-24T04:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: CodeWarrior 10.6, KSDK, and PE</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/CodeWarrior-10-6-KSDK-and-PE/m-p/431060#M11810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did see that.&amp;nbsp; I managed to get there on my own through a different route, and I should share some of my answers here in case it's of use to anyone else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Freescale USB Stack v4.1.1 turned out to be what I needed.&amp;nbsp; It's listed as archived and you have to click "more" to find it because it's hidden and only older releases are shown.&amp;nbsp; It includes Processor Expert components and there's a quick start guide included, but no K22 examples are provided.&amp;nbsp; Version 5.0 is available but doesn't have Processor Expert support.&amp;nbsp; Newer versions have been moved into KSDK and no CodeWarrior examples are provided.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My next problem was that the MK22FN1M0VLH12 I was using is NOT completely compatible with the MK22FN512VLH12.&amp;nbsp; They differ significantly more than just memory size, and the FRDM board wasn't of any use.&amp;nbsp; I eventually discovered that CW 10.6 includes in its example Kinetis PE projects an MSD example for the TWR-K21F120MA that will run on the K22FN1M0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What &lt;EM&gt;really&lt;/EM&gt; cost me a lot of debugging time was the MPU.&amp;nbsp; It was set to 'disabled' in PE, but I didn't notice that the configuration itself was disabled, so the MPU was starting up in its default state and denying DMA access to the USB controller.&amp;nbsp; This means that everything up through the first SETUP transaction worked fine, including SOF packet reception.&amp;nbsp; It couldn't access the BDT, though, and presumably couldn't see that endpoint 0 was configured and ready for a SETUP packet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So... the stack works fine, PE is fine, CW is fine, just pay attention to the MPU settings and don't trust that the USB component is going to warn you about a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since I didn't have a working board to start with I spent way more hours than I'd have liked troubleshooting every layer.&amp;nbsp; I did get to break out the USB protocol analyzer I've only ever used once before, and now I can read USB packets straight off an oscilloscope, so I guess that's something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the answer.&amp;nbsp; I was starting to wonder if this forum was still alive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 04:43:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/CodeWarrior-10-6-KSDK-and-PE/m-p/431060#M11810</guid>
      <dc:creator>scottm</dc:creator>
      <dc:date>2015-11-24T04:43:23Z</dc:date>
    </item>
  </channel>
</rss>

