<?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のトピックRe: MMC Interface 4GByte support limit</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/MMC-Interface-4GByte-support-limit/m-p/585323#M21226</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;bump&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 19 Jun 2016 01:00:44 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-19T01:00:44Z</dc:date>
    <item>
      <title>MMC Interface 4GByte support limit</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/MMC-Interface-4GByte-support-limit/m-p/585320#M21223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by fweller on Tue Mar 01 12:12:12 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;We are trying to implement SD Cards with densities up to 32GByte (SDHC) but so far have seen a 4GByte maximum limit on what the MMC can support.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are using the LPC43xx LPCOpen project usbd_rom_msc_ram&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;Documentation: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fdocs.lpcware.com%2Fusbromlib%2Fv1.0%2Fstruct_u_s_b_d___m_s_c___i_n_i_t___p_a_r_a_m___t.html%23details" rel="nofollow" target="_blank"&gt;http://docs.lpcware.com/usbromlib/v1.0/struct_u_s_b_d___m_s_c___i_n_i_t___p_a_r_a_m___t.html#details&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems the original documentation on the MSC ROM API uses USBD_MSC_INIT_PARAM_T : MemorySize which is 32bits. This would limit the full support size to 4GB. However, looking at the current header file USDB_MSCUSER.H in the LPC_CHIP_43XX LPCOpen library (V2_12), I see at the end of the structure uint64_t MemorySize64; we assume this has been added so to support memory devices larger the 4GB. However we have found no documentation to support this member nor an example that uses it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are asking for clarification on how to support SD Cards with densities &amp;gt;4GBytes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Should the MemorySize parameter be defined as 0 and then set the MemorySize64 to the actual size? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Are there any other initialization required?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:09:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/MMC-Interface-4GByte-support-limit/m-p/585320#M21223</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: MMC Interface 4GByte support limit</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/MMC-Interface-4GByte-support-limit/m-p/585321#M21224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by DF9DQ on Fri Mar 04 09:39:19 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;What I can see from a quick look at the boot code seems in line with your observations.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The existing USB ROM code for the mass storage class does indeed limit the size of partitions to 4 GiB. This is due to the 32-bit MemorySize field as you have pointed out. Also callback functions use 32-bit offsets only.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The "USBD" code has been updated to support larger partitions, and the 64-bit MemorySize64 replaces the old 32-bit MemorySize. The header file in LPCOpen reflects this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;Should the MemorySize parameter be defined as 0 and then set the MemorySize64 to the actual size? &lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, this is how it works. Note that callback functions will take an additional parameter "high_offset" for the upper 32-bit of the 64-bit offset.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately, existing devices with older ROM code don't support MemorySize64. This affects all flash based LPC1800 and LPC4300 devices, and older flashless devices in these two series. Only the latest flashless LPC18x0 and LPC43x0 have 64-bit support in the mass storage class implementation from boot code version 11.3 onwards.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Devices for which USBD exists as a library in LPCOpen (e.g. LPC17xx) support large disk sizes. However, a USBD library for LPC1800/LPC4300 is not (yet?) available.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:09:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/MMC-Interface-4GByte-support-limit/m-p/585321#M21224</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: MMC Interface 4GByte support limit</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/MMC-Interface-4GByte-support-limit/m-p/585322#M21225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by nsmith17044 on Mon Mar 07 05:29:20 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the details.&amp;nbsp; I wish the documentation was more clear on this topic.&amp;nbsp; The Rev 2.1 UM10503 doesn't reference any of this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:09:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/MMC-Interface-4GByte-support-limit/m-p/585322#M21225</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: MMC Interface 4GByte support limit</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/MMC-Interface-4GByte-support-limit/m-p/585323#M21226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;bump&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jun 2016 01:00:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/MMC-Interface-4GByte-support-limit/m-p/585323#M21226</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-19T01:00:44Z</dc:date>
    </item>
  </channel>
</rss>

