<?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>LPC MicrocontrollersのトピックConfig descriptor in ROM causes HardFault</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Config-descriptor-in-ROM-causes-HardFault/m-p/523968#M6604</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by chris_bayley_trimble on Wed Apr 15 15:18:10 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I have been working with a number of the LPCOpen USB examples and I have noticed that most USB Descriptors are declared &lt;/SPAN&gt;&lt;STRONG&gt;const &lt;/STRONG&gt;&lt;SPAN&gt;(ROM storage) but the Config Descriptors aren't (i.e. RAM storage).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried changing the declaration of the Config descriptors to &lt;/SPAN&gt;&lt;STRONG&gt;const&lt;/STRONG&gt;&lt;SPAN&gt; but then the USB stack will HardFault inside the default Ep0_handler.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why does the Config descriptor need to be in RAM to work ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 16:47:06 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T16:47:06Z</dc:date>
    <item>
      <title>Config descriptor in ROM causes HardFault</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Config-descriptor-in-ROM-causes-HardFault/m-p/523968#M6604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by chris_bayley_trimble on Wed Apr 15 15:18:10 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I have been working with a number of the LPCOpen USB examples and I have noticed that most USB Descriptors are declared &lt;/SPAN&gt;&lt;STRONG&gt;const &lt;/STRONG&gt;&lt;SPAN&gt;(ROM storage) but the Config Descriptors aren't (i.e. RAM storage).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried changing the declaration of the Config descriptors to &lt;/SPAN&gt;&lt;STRONG&gt;const&lt;/STRONG&gt;&lt;SPAN&gt; but then the USB stack will HardFault inside the default Ep0_handler.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why does the Config descriptor need to be in RAM to work ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:47:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Config-descriptor-in-ROM-causes-HardFault/m-p/523968#M6604</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Config descriptor in ROM causes HardFault</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Config-descriptor-in-ROM-causes-HardFault/m-p/523969#M6605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MikeSimmonds on Wed Apr 15 20:52:42 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Check the UM for your device and look at the block diagram to see which connections from the the USB block&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;are present in the bus arbitration matrix.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, on the 1778, the USB's DMA engine can talk to either of the peripheral RAM blocks and the external&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;bus interface, but not the main on-chip static ram, or the flash.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So (on the 1778) I can not place USB data in the static ram or (constant data) in flash.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure what device you are using or if you are host or device.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers, Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:47:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Config-descriptor-in-ROM-causes-HardFault/m-p/523969#M6605</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T16:47:07Z</dc:date>
    </item>
  </channel>
</rss>

