<?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: USB Mass Storage Device SPI External Flash</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-Mass-Storage-Device-SPI-External-Flash/m-p/1245611#M44281</link>
    <description>&lt;P&gt;Hello ,&lt;/P&gt;
&lt;P&gt;It seems this is the same question with your case in salesforce, and I saw you close it,&lt;/P&gt;
&lt;P&gt;do you still have any question about this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Mar 2021 09:44:49 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2021-03-15T09:44:49Z</dc:date>
    <item>
      <title>USB Mass Storage Device SPI External Flash</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-Mass-Storage-Device-SPI-External-Flash/m-p/1242410#M44195</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;i'm trying to implement a mass storage device on the LPCXpresso55s69 board that uses an external flash connected to the micro with an SPI protocol.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="uiOutputText"&gt;I started with looking at your examples dev_msc_disk_freertos and dev_msc_ramdisk_freertos using MCUXpresso IDE to get the info that i needed.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="uiOutputText"&gt;I modified the function "USB_DeviceMscCallback(class_handle_t handle, uint32_t event, void *param)" replacing code below in the dev_msc_ramdisk_freertos example&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="uiOutputText"&gt;errorCode =&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="uiOutputText"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;USB_Disk_WriteBlocks(lba-&amp;gt;buffer, lba-&amp;gt;offset, lba-&amp;gt;size &amp;gt;&amp;gt; USB_DEVICE_DISK_BLOCK_SIZE_POWER);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="uiOutputText"&gt;errorCode =&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="uiOutputText"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;USB_Disk_ReadBlocks(lba-&amp;gt;buffer, lba-&amp;gt;offset, lba-&amp;gt;size &amp;gt;&amp;gt; USB_DEVICE_DISK_BLOCK_SIZE_POWER);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="uiOutputText"&gt;with a function that reads and writes in the external flash.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="uiOutputText"&gt;I also changed the LBA size with 4096 cause because the sector size of the flash is 4096 and it's easier to program an entire sector.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="uiOutputText"&gt;&lt;SPAN&gt;The function terminates correctly and it seems to write and read the external flash.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="uiOutputText"&gt;&lt;SPAN&gt;But when i initialize the msd from the pc (cause when it's connected the computer sees a RAW msd and needs to initialize it) the computer cannot terminate the initilization.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="uiOutputText"&gt;I'm stuck here and i really don't know how to find the solution of this problem since everythings looks "fine" and gives no error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="uiOutputText"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="uiOutputText"&gt;Is there any function that i can look at or any common problem with this situation?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 09:36:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB-Mass-Storage-Device-SPI-External-Flash/m-p/1242410#M44195</guid>
      <dc:creator>rd1</dc:creator>
      <dc:date>2021-03-09T09:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: USB Mass Storage Device SPI External Flash</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-Mass-Storage-Device-SPI-External-Flash/m-p/1245611#M44281</link>
      <description>&lt;P&gt;Hello ,&lt;/P&gt;
&lt;P&gt;It seems this is the same question with your case in salesforce, and I saw you close it,&lt;/P&gt;
&lt;P&gt;do you still have any question about this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 09:44:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB-Mass-Storage-Device-SPI-External-Flash/m-p/1245611#M44281</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2021-03-15T09:44:49Z</dc:date>
    </item>
  </channel>
</rss>

