<?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: LPC1345 ROM_USB_msc corrupts SPI FLASH read in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1345-ROM-USB-msc-corrupts-SPI-FLASH-read/m-p/529516#M1525</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CC58 on Sat Jan 19 16:33:32 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;My bad.&amp;nbsp; Made a mistake. Not a problem with ROM USB routines. Working now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Noticed the new DiskImage.c changed some indexes moving around some things.&amp;nbsp; Changed filename showed up in the readme.txt file as text.&amp;nbsp; Had all that figured out in old Diskimage.c so copied the old one.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It appears a different programmer wrote the USB MSC example code for the LPC1343 and LPC1345.&amp;nbsp; Makes porting a little more difficult than it should be.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 21:45:10 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T21:45:10Z</dc:date>
    <item>
      <title>LPC1345 ROM_USB_msc corrupts SPI FLASH read</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1345-ROM-USB-msc-corrupts-SPI-FLASH-read/m-p/529515#M1524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CC58 on Fri Jan 18 07:35:20 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I successfully used the LPC1343 usbmsd_rom sample code to integrate an external 8meg SPI FLASH.&amp;nbsp; Currently trying to migrate code to LPC1345.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The LPC1345/47 equivalent sample code is ROM_USB_msc. This code is very different from LPC1343 sample code. I modified this sample code callback translate_rd() to use my known good SPI FLASH read routine. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When SPI FLASH read routine is called the SPI FLASH read is corrupted.&amp;nbsp; The odd thing is first 256 byte reads are fine, but after that it returns garbage.&amp;nbsp; This same SPI FLASH read routine works correctly if test code is inserted in main() before USB is initiated.&amp;nbsp; It appears ROM USB code interfers with SPI reads.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone successfully used LPC1345/47 USB rom code to implement an external SPI FLASH?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:45:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1345-ROM-USB-msc-corrupts-SPI-FLASH-read/m-p/529515#M1524</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1345 ROM_USB_msc corrupts SPI FLASH read</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1345-ROM-USB-msc-corrupts-SPI-FLASH-read/m-p/529516#M1525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by CC58 on Sat Jan 19 16:33:32 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;My bad.&amp;nbsp; Made a mistake. Not a problem with ROM USB routines. Working now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Noticed the new DiskImage.c changed some indexes moving around some things.&amp;nbsp; Changed filename showed up in the readme.txt file as text.&amp;nbsp; Had all that figured out in old Diskimage.c so copied the old one.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It appears a different programmer wrote the USB MSC example code for the LPC1343 and LPC1345.&amp;nbsp; Makes porting a little more difficult than it should be.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 21:45:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPC1345-ROM-USB-msc-corrupts-SPI-FLASH-read/m-p/529516#M1525</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T21:45:10Z</dc:date>
    </item>
  </channel>
</rss>

