<?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: K60 USB_LDD code fails enumeration when executing from FLASH in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-USB-LDD-code-fails-enumeration-when-executing-from-FLASH/m-p/821055#M49669</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi George&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can get bullet-proof (industrial quality) USB-CDC for the K60 at &lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FTWR-K60D100M.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/TWR-K60D100M.html&lt;/A&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FTWR-K60N512.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/TWR-K60N512.html&lt;/A&gt;&lt;BR /&gt;(use the free open source version if you don't require any support)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise try setting the USB bus master's flash access rights since the examples may restrict to RAM operation for some accesses (like descriptors). For the K60 this is using&lt;BR /&gt;&lt;STRONG&gt;FMC_PFAPR |= FMC_PFAPR_M4AP_RD;&lt;/STRONG&gt;&lt;BR /&gt;for the 100MHz K60 or &lt;BR /&gt;&lt;STRONG&gt;FMC_PFAPR |= FMC_PFAPR_M3AP_RD;&lt;/STRONG&gt;&lt;BR /&gt;if it is a version with FPU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Aug 2018 23:35:56 GMT</pubDate>
    <dc:creator>mjbcswitzerland</dc:creator>
    <dc:date>2018-08-03T23:35:56Z</dc:date>
    <item>
      <title>K60 USB_LDD code fails enumeration when executing from FLASH</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-USB-LDD-code-fails-enumeration-when-executing-from-FLASH/m-p/821054#M49668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am&amp;nbsp;using a custom board with the MK60DX256VLL10 running at 96 MHz.&amp;nbsp; The bareboard projects are built using CodeWarrior 11.0 and Processor Expert's USB_LDD component.&amp;nbsp; I have tried two different projects:&amp;nbsp; one is a CDC serial port, the other is a USB mass storage device.&amp;nbsp; The issue that I have is that both work correctly without any issues when I build for RAM and execute them using the debugger.&amp;nbsp; If I build (the exact same code) for flash and execute from the flash the enumeration process proceeds to the point where the PC sends the first setup packet&amp;nbsp;for GET_DEVICE_DESCRIPTOR.&amp;nbsp; There is no response from our board and usbtrace shows a USBD_STATUS_XACT_ERROR(0xC0000011) on the PC side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on what the problem could be?&amp;nbsp; Has this Processor Expert code ever been tested as a FLASH build on a similar processor/speed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One other note, I have enabled the OnDeviceError event and never see any errors as far as the USB_LDD component is concerned.&lt;/P&gt;&lt;CENTER&gt;&lt;/CENTER&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2018 18:56:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-USB-LDD-code-fails-enumeration-when-executing-from-FLASH/m-p/821054#M49668</guid>
      <dc:creator>georgesmith</dc:creator>
      <dc:date>2018-08-03T18:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: K60 USB_LDD code fails enumeration when executing from FLASH</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-USB-LDD-code-fails-enumeration-when-executing-from-FLASH/m-p/821055#M49669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi George&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can get bullet-proof (industrial quality) USB-CDC for the K60 at &lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FTWR-K60D100M.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/TWR-K60D100M.html&lt;/A&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FTWR-K60N512.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/TWR-K60N512.html&lt;/A&gt;&lt;BR /&gt;(use the free open source version if you don't require any support)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise try setting the USB bus master's flash access rights since the examples may restrict to RAM operation for some accesses (like descriptors). For the K60 this is using&lt;BR /&gt;&lt;STRONG&gt;FMC_PFAPR |= FMC_PFAPR_M4AP_RD;&lt;/STRONG&gt;&lt;BR /&gt;for the 100MHz K60 or &lt;BR /&gt;&lt;STRONG&gt;FMC_PFAPR |= FMC_PFAPR_M3AP_RD;&lt;/STRONG&gt;&lt;BR /&gt;if it is a version with FPU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2018 23:35:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-USB-LDD-code-fails-enumeration-when-executing-from-FLASH/m-p/821055#M49669</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2018-08-03T23:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: K60 USB_LDD code fails enumeration when executing from FLASH</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-USB-LDD-code-fails-enumeration-when-executing-from-FLASH/m-p/821056#M49670</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;Well, the problem here is the access to flash. The Flash Memory Controller (FMC) protects master USB FS/LS port to access to flash in its default mode, So you should set the USB bus master's flash access rights as Mark mentioned.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2018 05:23:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-USB-LDD-code-fails-enumeration-when-executing-from-FLASH/m-p/821056#M49670</guid>
      <dc:creator>miduo</dc:creator>
      <dc:date>2018-08-06T05:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: K60 USB_LDD code fails enumeration when executing from FLASH</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-USB-LDD-code-fails-enumeration-when-executing-from-FLASH/m-p/821057#M49671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That was indeed the problem and now everything is working correctly.&amp;nbsp; A big thank you to Mark Butcher and Fang Li for your expertise and assistance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2018 19:04:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K60-USB-LDD-code-fails-enumeration-when-executing-from-FLASH/m-p/821057#M49671</guid>
      <dc:creator>georgesmith</dc:creator>
      <dc:date>2018-08-06T19:04:04Z</dc:date>
    </item>
  </channel>
</rss>

