<?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>LPCXpresso IDEのトピックRe: *Working* Windows msc_rom example</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Working-Windows-msc-rom-example/m-p/530685#M2120</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ehughes on Sun Feb 13 10:19:45 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;forgot attachment!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 02:54:23 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-16T02:54:23Z</dc:date>
    <item>
      <title>*Working* Windows msc_rom example</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Working-Windows-msc-rom-example/m-p/530684#M2119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ehughes on Sun Feb 13 10:18:47 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I got a version of the msc_rom example working under windows 64-bit.&amp;nbsp; I have attached a zip file with project.&amp;nbsp; Details:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1.) Instead of internal RAM,&amp;nbsp; the file system area is in an external 16Megabit (2MB) device (M25PE16).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2.)&amp;nbsp; The external flash is connected via SPI.&amp;nbsp; I used a P0.2 as the chip select signal &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3.)&amp;nbsp; The file FLASH.c has the M25PE access routines.&amp;nbsp; I implemented enough to get it working.&amp;nbsp;&amp;nbsp; I am pretty sure I could run the SPI with a faster clock but have not optimized this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4.) The MSC_MemoryWrite makes a few assumptions to get writing to work.&amp;nbsp; MSC accesses from a host controller assumes 512 byte sectors but the endpoints are only 64-bytes.&amp;nbsp;&amp;nbsp; When a sector is writting, I assume the first 64-bytes are sector aligned.&amp;nbsp;&amp;nbsp;&amp;nbsp; My flash device has 256-byte pages.&amp;nbsp;&amp;nbsp; If the sector to be written has its lowest 8-bits as zero, I first erase the page before a write.&amp;nbsp;&amp;nbsp; This works under the assumption that the host will write things out in a sane way (i.e. the first 64 bytes of the 512 sector arewritten first, etc)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5.)&amp;nbsp;&amp;nbsp; The first time it was plugged in, I had to do a "quick format".&amp;nbsp;&amp;nbsp; After that everything appeared to read/write as normal.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure why Win7 doesn't like the 6k RAM drive in the NXP sample.&amp;nbsp;&amp;nbsp; The "bootloader" certainly works fine.&amp;nbsp;&amp;nbsp; It may be the very small size of the drive.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;From here I am going to get the Chan FATFs ported so the MCU can access the drive.&amp;nbsp; After than I will port to the CDC/MSC composite example.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Message to NXP:&amp;nbsp;&amp;nbsp; Please make this chip with more Flash and CAN! A 64k or 128k would be *perfect* for 99% of my products.&amp;nbsp;&amp;nbsp; A 12-bit data converter would be great.&amp;nbsp;&amp;nbsp; I don't need the host controller or ethernet like the 1768.&amp;nbsp;&amp;nbsp;&amp;nbsp; The build in MSC makes this product very nice!&amp;nbsp;&amp;nbsp;&amp;nbsp; A version with the CDC and MSC composite drivers in ROM would be nice as well.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:54:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Working-Windows-msc-rom-example/m-p/530684#M2119</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: *Working* Windows msc_rom example</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Working-Windows-msc-rom-example/m-p/530685#M2120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ehughes on Sun Feb 13 10:19:45 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;forgot attachment!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:54:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Working-Windows-msc-rom-example/m-p/530685#M2120</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-16T02:54:23Z</dc:date>
    </item>
  </channel>
</rss>

