<?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: USB Stack 4.0 problems running out of flash</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Stack-4-0-problems-running-out-of-flash/m-p/182333#M1797</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;*THANK YOU* for pointing out this #if.... &amp;nbsp; &amp;nbsp;I was trying to migrate the CDC files from the library to a stand alone project (without all the ridiculous soft links).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Been fighting with this for awhile now...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Aug 2012 13:38:04 GMT</pubDate>
    <dc:creator>eli_hughes</dc:creator>
    <dc:date>2012-08-17T13:38:04Z</dc:date>
    <item>
      <title>USB Stack 4.0 problems running out of flash</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Stack-4-0-problems-running-out-of-flash/m-p/182327#M1791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to get my application using the USB Stack 4.0 CDC device driver to run out of flash on my K60F120 board. It works fine if I load and run it from RAM, but not if I download and start from flash. The rest of the code, including interrupts and a flexbus device, works fine in both cases. The problem is that the host will not correctly enumerate the CDC device when running out of flash. I haven't delved into the details yet, I was hoping someone had some ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 00:33:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Stack-4-0-problems-running-out-of-flash/m-p/182327#M1791</guid>
      <dc:creator>GregLoucks</dc:creator>
      <dc:date>2012-07-24T00:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: USB Stack 4.0 problems running out of flash</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Stack-4-0-problems-running-out-of-flash/m-p/182328#M1792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hard to guess. Would be good to know what is not working. Is it just not enumerating? or the application does not run at all?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't have the K60F, but I'm running a Processor Expert component based on 4.0 USB Stack (see &lt;A href="http://mcuoneclipse.wordpress.com/category/processor-expert/embedded-components/usb/," rel="nofollow" target="_blank"&gt;http://mcuoneclipse.wordpress.com/category/processor-expert/embedded-components/usb/,&lt;/A&gt; &lt;A href="http://www.steinerberg.com/EmbeddedComponents/FSL_USB_Stack" rel="nofollow" target="_blank"&gt;http://www.steinerberg.com/EmbeddedComponents/FSL_USB_Stack&lt;/A&gt; and &lt;A href="http://www.steinerberg.com/EmbeddedComponents/Examples/Example_PE_CDC_V1JM128)." rel="nofollow" target="_blank"&gt;http://www.steinerberg.com/EmbeddedComponents/Examples/Example_PE_CDC_V1JM128).&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I think you should be able to run it on the K60F as well (as the difference is just the added floating point unit).&lt;/P&gt;&lt;P&gt;I have attached the MCU10.2 project, and it runs out of flash for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;BK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2012 13:26:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Stack-4-0-problems-running-out-of-flash/m-p/182328#M1792</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2012-07-24T13:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: USB Stack 4.0 problems running out of flash</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Stack-4-0-problems-running-out-of-flash/m-p/182329#M1793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My problem was actually that the descriptors were marked const and put in the flash, however they are supposed to be in RAM for USB access. I had somewhere along the way mangled the the __MK_xxx_H__ #define (usb_descriptors.c) and that ended up putting the descriptors in flash.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BlackNight: I've had to make some changes to the USB Stack 4.0 already to allow large packet sizes. In a few places a size parameter is a uint_8 and not a USB_PACKET_SIZE type. I've also ported the k70 high-speed code into the k60 (as I'm using USBHS).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--Greg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2012 01:51:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Stack-4-0-problems-running-out-of-flash/m-p/182329#M1793</guid>
      <dc:creator>GregLoucks</dc:creator>
      <dc:date>2012-07-25T01:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: USB Stack 4.0 problems running out of flash</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Stack-4-0-problems-running-out-of-flash/m-p/182330#M1794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Greg,&lt;/P&gt;&lt;P&gt;I would be interested in those changes you have made to support larger packet sizes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2012 02:49:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Stack-4-0-problems-running-out-of-flash/m-p/182330#M1794</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2012-07-25T02:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: USB Stack 4.0 problems running out of flash</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Stack-4-0-problems-running-out-of-flash/m-p/182331#M1795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is what I've done so far:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;* In Source/Device/app/common added:&lt;BR /&gt;MK60DZ10.h&lt;BR /&gt;MK60F12.h&lt;BR /&gt;MK60F15.h&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;* Everywhere there was:&lt;BR /&gt;#ifdef MCU_MK70F12&lt;BR /&gt;there is now&lt;BR /&gt;#if defined(MCU_MK70F12) || defined(MCU_MK60F12)&lt;BR /&gt;or&lt;BR /&gt;#ifndef MCU_MK70F12&lt;BR /&gt;becomes:&lt;BR /&gt;#if !defined(MCU_MK70F12) &amp;amp;&amp;amp; !defined(MCU_MK60F12)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everywhere there is a naked printf I put put an ifdef:&lt;BR /&gt;#ifdef SERIAL_DEBUG&lt;BR /&gt;printf(...);&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lots of changes to register names in Source/Device/app/common/main_kinetis.c (attached).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additional changes to code described in attached file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2012 03:03:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Stack-4-0-problems-running-out-of-flash/m-p/182331#M1795</guid>
      <dc:creator>GregLoucks</dc:creator>
      <dc:date>2012-07-27T03:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: USB Stack 4.0 problems running out of flash</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Stack-4-0-problems-running-out-of-flash/m-p/182332#M1796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Maybe this&amp;nbsp;could help.&lt;/P&gt;&lt;P&gt;&amp;nbsp; After reset USB DMA (bus master)&amp;nbsp;has no access to the FLASH memory&amp;nbsp;(if descriptors are placed &amp;nbsp;in RAM everithing is OK). See description of the M3AP (M6AP for USBHS) bits in the FMC_PFAPR register.&lt;/P&gt;&lt;P&gt;Next possible probelm can appear if there is a never ending loop in your code and the loop code is placed in FLASH. By default Core bus master has&amp;nbsp;higher priority then USB DMA bus master -&amp;gt; USB DMA&amp;nbsp;will wait until CPU release bus but this will never happed and USB enumeration will be unsuccessfull (see AXBS_PRSn register). I have attached&amp;nbsp;picture&amp;nbsp;of CPU componet&amp;nbsp; with required setings in the Processor Expert.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;MVa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2012 16:10:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Stack-4-0-problems-running-out-of-flash/m-p/182332#M1796</guid>
      <dc:creator>MVa</dc:creator>
      <dc:date>2012-07-27T16:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: USB Stack 4.0 problems running out of flash</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Stack-4-0-problems-running-out-of-flash/m-p/182333#M1797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;*THANK YOU* for pointing out this #if.... &amp;nbsp; &amp;nbsp;I was trying to migrate the CDC files from the library to a stand alone project (without all the ridiculous soft links).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Been fighting with this for awhile now...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2012 13:38:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/USB-Stack-4-0-problems-running-out-of-flash/m-p/182333#M1797</guid>
      <dc:creator>eli_hughes</dc:creator>
      <dc:date>2012-08-17T13:38:04Z</dc:date>
    </item>
  </channel>
</rss>

