This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Can I transfer file to QSPI external flash over USB ?

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.

Parents
  • Hi.

    There is an example which does this that you can take a look at. You can find it in SDK 15.2 (download here).

    The location is: nRF5_SDK_15.2.0_9412b96\examples\peripheral\usbd_msc and the example is called usbd_msc.

    More information about the project is found in the infocenter here.

    - Andreas

  • Hi Sir 

    I can see mass storage interface at windows 7 now, 

    but I have no idea how to put file to mass storage from PC to device ? 

    PC always shows "Do you want format storage"  ? but I tried to format storage always get failed.

  • Hi.

    Did you follow the test procedure in the example?

    Test the USB MSC Example application by performing the following steps:

    1. Compile and program the application.
    2. Connect the development kit to the host computer through the J-Link port.
    3. Start a terminal emulator like PuTTY and connect to the used COM port with the following UART settings:
      • Baud rate: 115.200
      • 8 data bits
      • 1 stop bit
      • No parity
      • HW flow control: None
    4. Observe the debug output.
    5. Press the buttons on the development kit and observe the results on the host computer terminal.
    6. Connect the development kit to the host computer through the USB device port.
    7. Device will enumerate as a Mass Storage Class with multiple disk instances.
    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.
    9. Disconnect the USB cable (from the USB device port) and the development kit buttons will be functional again.

    Best regards,

    Andreas

  • No, I want to put file from PC to device, not to create a random file at device.

    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.

Reply Children
No Data
Related