<?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 Microcontrollers中的主题 Re: KwikStik and USB Stack 3.2</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KwikStik-and-USB-Stack-3-2/m-p/162631#M790</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;the first problem looks like a Windows 7 permission problem: depending on UAC or other settings you cannot write files in c:\program files folder. Having the workspace in your case outside that folder does not help if you do not set the 'copy files' option with importing the project.&lt;/P&gt;&lt;P&gt;I suggest to install the FSL USB stack e.g. inside a c:\freescale folder (where you have full access).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The thing about&amp;nbsp; and &lt;SPAN&gt;MCG_S_OSCINIT_MASK seems to be an issue that the projects are broken because they use things for the K20 (so they break for anything else than K20 (but I did not try it for K20)). I have made the engineering team aware of this, and this should be fixed in a next release. So for now you have found the workaround already.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The last thing is: the projects delivered in the 3.2.0 stack are missing the connection settings: ReferencedRSESystems.xml or rseHostSettingsCache.xml is missing, as such the debugger does not know the connection settings. You can see this if you inspect the demo project e.g. in C:\Freescale\Freescale USB Stack v3.2.0\Source\Device\app\hid\cw10\kinetis_k40: that XML file is missing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(see &lt;A href="http://mcuoneclipse.wordpress.com/2012/03/17/dissection-of-mcu10-projects/" rel="nofollow" target="_blank"&gt;http://mcuoneclipse.wordpress.com/2012/03/17/dissection-of-mcu10-projects/&lt;/A&gt; for details).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As a consequence, the settings in Run &amp;gt; Debug Configurations &amp;gt; Main &amp;gt; Connections are missing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;At least I see this in my projects installed by the FSL 3.2.0 stack.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So you need to fix this with&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;a) either create a new project with the wizard for your board, and then assign the created connection to your project&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;b) create the connection settings from scratch (see &lt;A href="http://mcuoneclipse.wordpress.com/2012/04/30/flashing-with-a-button-and-a-magic-wand/" rel="nofollow" target="_blank"&gt;http://mcuoneclipse.wordpress.com/2012/04/30/flashing-with-a-button-and-a-magic-wand/&lt;/A&gt; how to do this, there it is done for the simple flash operation, but the settings are the same for debug)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;c) Use my project (attached):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; - rename C:\Freescale\Freescale USB Stack v3.2.0\Source\Device\app\cdc\cw10\kinetis_k40_72MHz&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; - unzip the attached project as/in&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C:\Freescale\Freescale USB Stack v3.2.0\Source\Device\app\cdc\cw10\kinetis_k40_72MHz&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; - import that project into your workspace&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; That project has Segger set up (as it is on the KwikStick. I was able to download it on my Kwikstick and it runs there.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; But as the Kwikstick is using that new USB cable, and I only have one, I was not able to verify if the CDC part is working&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BK&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 13 May 2012 02:57:49 GMT</pubDate>
    <dc:creator>BlackNight</dc:creator>
    <dc:date>2012-05-13T02:57:49Z</dc:date>
    <item>
      <title>KwikStik and USB Stack 3.2</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KwikStik-and-USB-Stack-3-2/m-p/162630#M789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First off, has anyone been able to run any version of a Freescale USB Stack on a KwikStik? &amp;nbsp;Here are my challenges and where I am at today.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running Windows 7-64bit, CW 10.2, USB Stack 3.2.&lt;/P&gt;&lt;P&gt;Trying to import the Virtual Com project from the USB Stack results in an immediate error, that I believe stems from permissions on being able to access or transfer files:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error processing changed links in project description file.&lt;BR /&gt;Could not write file: C:\Program Files (x86)\Freescale USB Stack v3.2.0\Source\Device\app\cdc\cw10\kinetis_k40\.project.&lt;BR /&gt;C:\Program Files (x86)\Freescale USB Stack&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried changing my default workspace to a more generic c:\workspace and that didn't help at all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Next I tried running in XPmode and installed CW10.2 and USB Stack 3.2&lt;/P&gt;&lt;P&gt;I was able to import the project, but then the code had problems. &amp;nbsp;With some help I was able to comment out&amp;nbsp;&lt;SPAN&gt;usb_bsp.h and change&amp;nbsp;&amp;nbsp;MCG_S_OSCINIT0_MASK to MCG_S_OSCINIT_MASK. &amp;nbsp;At this point I can compile the project, but now when I try to debug and load the code on my KwikStick I get another error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Error creating session: The remote system chosen in the Launch Configuration Main Tab is unknown.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know a way to make this work?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 May 2012 01:32:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KwikStik-and-USB-Stack-3-2/m-p/162630#M789</guid>
      <dc:creator>Spikey_Mikey</dc:creator>
      <dc:date>2012-05-13T01:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: KwikStik and USB Stack 3.2</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KwikStik-and-USB-Stack-3-2/m-p/162631#M790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;the first problem looks like a Windows 7 permission problem: depending on UAC or other settings you cannot write files in c:\program files folder. Having the workspace in your case outside that folder does not help if you do not set the 'copy files' option with importing the project.&lt;/P&gt;&lt;P&gt;I suggest to install the FSL USB stack e.g. inside a c:\freescale folder (where you have full access).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The thing about&amp;nbsp; and &lt;SPAN&gt;MCG_S_OSCINIT_MASK seems to be an issue that the projects are broken because they use things for the K20 (so they break for anything else than K20 (but I did not try it for K20)). I have made the engineering team aware of this, and this should be fixed in a next release. So for now you have found the workaround already.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The last thing is: the projects delivered in the 3.2.0 stack are missing the connection settings: ReferencedRSESystems.xml or rseHostSettingsCache.xml is missing, as such the debugger does not know the connection settings. You can see this if you inspect the demo project e.g. in C:\Freescale\Freescale USB Stack v3.2.0\Source\Device\app\hid\cw10\kinetis_k40: that XML file is missing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(see &lt;A href="http://mcuoneclipse.wordpress.com/2012/03/17/dissection-of-mcu10-projects/" rel="nofollow" target="_blank"&gt;http://mcuoneclipse.wordpress.com/2012/03/17/dissection-of-mcu10-projects/&lt;/A&gt; for details).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;As a consequence, the settings in Run &amp;gt; Debug Configurations &amp;gt; Main &amp;gt; Connections are missing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;At least I see this in my projects installed by the FSL 3.2.0 stack.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So you need to fix this with&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;a) either create a new project with the wizard for your board, and then assign the created connection to your project&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;b) create the connection settings from scratch (see &lt;A href="http://mcuoneclipse.wordpress.com/2012/04/30/flashing-with-a-button-and-a-magic-wand/" rel="nofollow" target="_blank"&gt;http://mcuoneclipse.wordpress.com/2012/04/30/flashing-with-a-button-and-a-magic-wand/&lt;/A&gt; how to do this, there it is done for the simple flash operation, but the settings are the same for debug)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;c) Use my project (attached):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; - rename C:\Freescale\Freescale USB Stack v3.2.0\Source\Device\app\cdc\cw10\kinetis_k40_72MHz&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; - unzip the attached project as/in&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C:\Freescale\Freescale USB Stack v3.2.0\Source\Device\app\cdc\cw10\kinetis_k40_72MHz&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; - import that project into your workspace&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; That project has Segger set up (as it is on the KwikStick. I was able to download it on my Kwikstick and it runs there.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; But as the Kwikstick is using that new USB cable, and I only have one, I was not able to verify if the CDC part is working&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BK&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 May 2012 02:57:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KwikStik-and-USB-Stack-3-2/m-p/162631#M790</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2012-05-13T02:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: KwikStik and USB Stack 3.2</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KwikStik-and-USB-Stack-3-2/m-p/162632#M791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did find that the problem with windows 7 is actually copying the files &lt;STRONG&gt;from&lt;/STRONG&gt;&amp;nbsp;the USB stack residing in program files. &amp;nbsp;I copied the files for the USB stack to C:\freescale and then was able to import the project. &amp;nbsp;That solved one problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 May 2012 04:18:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KwikStik-and-USB-Stack-3-2/m-p/162632#M791</guid>
      <dc:creator>Spikey_Mikey</dc:creator>
      <dc:date>2012-05-13T04:18:36Z</dc:date>
    </item>
  </channel>
</rss>

