<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Can I transfer file to QSPI external flash over USB ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38717/can-i-transfer-file-to-qspi-external-flash-over-usb</link><description>Hi Sir 
 Do you have any suggestion for transfer file from PC to QSPI external flash ? over USB ? please teach me how to start. 
 I need a simplest way for put file to external flash, and read data back to nrf52840, Thanks.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 04 Jan 2019 09:05:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38717/can-i-transfer-file-to-qspi-external-flash-over-usb" /><item><title>RE: Can I transfer file to QSPI external flash over USB ?</title><link>https://devzone.nordicsemi.com/thread/163902?ContentTypeID=1</link><pubDate>Fri, 04 Jan 2019 09:05:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7faab552-0434-48c3-a004-81579be2fbfe</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Are you sure that you connected to the &amp;quot;nRF USB&amp;quot; port along with the one you connect to power the device?&lt;/p&gt;
&lt;p&gt;Once you connect a usb cable to &amp;quot;nRF USB&amp;quot; port , then you can see that there are drives emulated in your system. You can drag and drop or copy/paste any files you want into them. I just tested it and it worked just file.&lt;/p&gt;
&lt;p&gt;To be able to read the contents using terminal com port, disconnect the cable from &amp;quot;nRF USB&amp;quot; port so that the terminal can connect to the MSC (since there cannot be two connections to the instance&amp;quot; and you can read the files using the buttons mentioned by steps in Andreas&amp;#39; reply.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can I transfer file to QSPI external flash over USB ?</title><link>https://devzone.nordicsemi.com/thread/163050?ContentTypeID=1</link><pubDate>Thu, 27 Dec 2018 10:15:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4893d786-be3e-454a-8bd1-9bb439ba6cc1</guid><dc:creator>Justin_Yeh</dc:creator><description>&lt;p&gt;No, I want to put file from PC to device, not to create a random file at device.&lt;/p&gt;
&lt;p&gt;8. Try pressing Button 1 to create a file. Manipulating the file system from the development kit will not be possible while USB is connected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can I transfer file to QSPI external flash over USB ?</title><link>https://devzone.nordicsemi.com/thread/163034?ContentTypeID=1</link><pubDate>Thu, 27 Dec 2018 08:45:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9aa1e2d-8be8-4746-807f-8d6e14340bee</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Did you follow the test procedure in the example?&lt;/p&gt;
&lt;p&gt;Test the USB MSC Example application by performing the following steps:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Compile and program the application.&lt;/li&gt;
&lt;li&gt;Connect the development kit to the host computer through the J-Link port.&lt;/li&gt;
&lt;li&gt;Start a terminal emulator like PuTTY and connect to the used COM port with the following UART settings:
&lt;ul&gt;
&lt;li&gt;Baud rate: 115.200&lt;/li&gt;
&lt;li&gt;8 data bits&lt;/li&gt;
&lt;li&gt;1 stop bit&lt;/li&gt;
&lt;li&gt;No parity&lt;/li&gt;
&lt;li&gt;HW flow control: None&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Observe the debug output.&lt;/li&gt;
&lt;li&gt;Press the buttons on the development kit and observe the results on the host computer terminal.&lt;/li&gt;
&lt;li&gt;Connect the development kit to the host computer through the USB device port.&lt;/li&gt;
&lt;li&gt;Device will enumerate as a Mass Storage Class with multiple disk instances.&lt;/li&gt;
&lt;li&gt;Try pressing Button 1 to create a file. Manipulating the file system from the development kit will not be possible while USB is connected.&lt;/li&gt;
&lt;li&gt;Disconnect the USB cable (from the USB device port) and the development kit buttons will be functional again.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can I transfer file to QSPI external flash over USB ?</title><link>https://devzone.nordicsemi.com/thread/162965?ContentTypeID=1</link><pubDate>Tue, 25 Dec 2018 02:45:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4723faf8-d41d-40f3-a87d-2b437e26dd0b</guid><dc:creator>Justin_Yeh</dc:creator><description>&lt;p&gt;Hi Sir&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I can see mass storage interface at windows 7 now,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;but I have no idea how to put file to mass storage from PC to device ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;PC always shows &amp;quot;Do you want format storage&amp;quot;&amp;nbsp; ? but I tried to format storage always get failed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can I transfer file to QSPI external flash over USB ?</title><link>https://devzone.nordicsemi.com/thread/151354?ContentTypeID=1</link><pubDate>Wed, 03 Oct 2018 08:19:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18b9644a-33ba-4877-8fee-c6925067610d</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Which revision of the board do you have?&lt;/p&gt;
&lt;p&gt;You can read the packet variant on the chip, the middle number, like this:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-25de4b8dbfc1488dae5121690a17a7b9/revison.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;A table for each packet variant with corresponding revision is &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52/dita/nrf52/compatibility_matrix/nRF52840_ic_revision_overview.html"&gt;here&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you have any log outputs you can share?&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can I transfer file to QSPI external flash over USB ?</title><link>https://devzone.nordicsemi.com/thread/151313?ContentTypeID=1</link><pubDate>Wed, 03 Oct 2018 01:35:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80069c57-369c-4aa8-b607-a932cfb0e29d</guid><dc:creator>Justin_Yeh</dc:creator><description>&lt;p&gt;I can&amp;#39;t see&amp;nbsp;all interfaces.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can I transfer file to QSPI external flash over USB ?</title><link>https://devzone.nordicsemi.com/thread/151222?ContentTypeID=1</link><pubDate>Tue, 02 Oct 2018 12:13:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef26dbd3-c990-4872-9b36-5949fc7eb212</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Is it only USB-QSPI you can&amp;#39;t see? can you see other disks emulate and do they appear in the main directory? Can you create files and read them?&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can I transfer file to QSPI external flash over USB ?</title><link>https://devzone.nordicsemi.com/thread/151176?ContentTypeID=1</link><pubDate>Tue, 02 Oct 2018 08:53:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4215a4a-0715-4f15-97bb-f65d9e0e5ad1</guid><dc:creator>Justin_Yeh</dc:creator><description>&lt;p&gt;USB_MSC example is workable on Windows 7 ? because I can&amp;#39;t find USB-QSPI disk interfaces on my laptop, but windows 10 is good.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can I transfer file to QSPI external flash over USB ?</title><link>https://devzone.nordicsemi.com/thread/149564?ContentTypeID=1</link><pubDate>Thu, 20 Sep 2018 08:26:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ce19122-bbce-4e06-81fe-3377fed23dc9</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;Yes, but the QSPI only has 8 MB serial flash memory.&lt;/p&gt;
&lt;p&gt;8.Try pressing Button 1 to create a file. Manipulating the file system from the development kit will not be possible while USB is connected.&lt;/p&gt;
&lt;p&gt;That is correct.&lt;/p&gt;
&lt;p&gt;In the example guide: &lt;strong&gt;5. Press the buttons on the development kit and observe the results on the host computer terminal.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;The button assignments are:&lt;br /&gt;&lt;br /&gt;- Button 1 creates a randomly named file in the root directory.&lt;br /&gt;- Button 2 lists the root directory.&lt;br /&gt;- Button 3 creates a file system (equivalent of the format command).&lt;br /&gt;&lt;br /&gt;This example allows you to manipulate the file system (on QSPI memory) only while USB is not connected. If USB is connected, access to the file system from a user application is not possible because MSC is not designed to allow access to the file system from multiple sources.&lt;br /&gt;&lt;br /&gt;So when you have the USB connected, and try to press button 1 to create a new file, manipulating the file system from the development kit will not be possible.&lt;br /&gt;If you see &lt;strong&gt;point 9&lt;/strong&gt;, this works again after you disconnect the USB cable.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Also, if you only want QSPI you should remove:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;
    NRF_BLOCKDEV_BASE_ADDR(m_block_dev_ram, block_dev),     \
    NRF_BLOCKDEV_BASE_ADDR(m_block_dev_empty, block_dev),   \
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;From:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define BLOCKDEV_LIST() (                                   \
    NRF_BLOCKDEV_BASE_ADDR(m_block_dev_ram, block_dev),     \
    NRF_BLOCKDEV_BASE_ADDR(m_block_dev_empty, block_dev),   \
    NRF_BLOCKDEV_BASE_ADDR(m_block_dev_qspi, block_dev)     \
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;In &lt;strong&gt;main.c&lt;/strong&gt; line 196.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can I transfer file to QSPI external flash over USB ?</title><link>https://devzone.nordicsemi.com/thread/149544?ContentTypeID=1</link><pubDate>Thu, 20 Sep 2018 06:41:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01266d7e-b984-4723-aa4f-25d4c1c6d8a1</guid><dc:creator>Justin_Yeh</dc:creator><description>&lt;p&gt;Can I put my laptop&amp;#39;s file, such as .zip file to&amp;nbsp;&lt;span&gt;usb mass storage ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;8.Try pressing Button 1 to create a file. Manipulating the file system from the development kit will not be possible while USB is connected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Can I transfer file to QSPI external flash over USB ?</title><link>https://devzone.nordicsemi.com/thread/149543?ContentTypeID=1</link><pubDate>Thu, 20 Sep 2018 06:35:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d48459d9-f3af-488d-bd78-430b4e8f900a</guid><dc:creator>AndreasF</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;There is an example which does this that you can take a look at. You can find it in &lt;a href="https://developer.nordicsemi.com/nRF5_SDK/nRF5_SDK_v15.x.x/nRF5_SDK_15.2.0_9412b96.zip"&gt;SDK 15.2 (download here)&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The location is: &lt;strong&gt;nRF5_SDK_15.2.0_9412b96\examples\peripheral\usbd_msc&lt;/strong&gt; and the example is called &lt;strong&gt;usbd_msc&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;More information about the project is found in &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/usbd_msc_example.html?cp=4_0_0_4_5_50_7"&gt;the infocenter here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;- Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>