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

USB MSC Format it every time you insert it into your computer

  • My three buttons are pressed each time, and the LOG information is as follows

  • 0> [00:00:00.000,000] <info> app_timer: RTC: initialized.
    0> [00:00:00.000,000] <info> app: Initializing disk 0 (QSPI)...
    0> [00:00:00.000,000] <error> app: Disk initialization failed.
    0> [00:00:00.000,000] <info> app: USBD MSC example started.
    0> Creating random file: 5851f42d.txt ...[00:00:00.000,000] <error> app:
    0> Unable to open or create file: 12
    0> [00:00:00.000,000] <info> app:
    0> Listing directory: /
    0> [00:00:00.000,000] <error> app: Directory listing failed: 12
    0> [00:00:00.000,000] <info> app:
    0> Listing directory: /
    0> [00:00:00.000,000] <error> app: Directory listing failed: 12
    0> [00:00:00.000,000] <info> app:
    0> Creating filesystem...
    0> [00:00:00.000,000] <error> app: Mkfs failed.
    0> [00:00:00.000,000] <info> app:
    0> Creating filesystem...
    0> [00:00:00.000,000] <error> app: Mkfs failed.
    0> [00:00:00.000,000] <info> app:
    0> Creating filesystem...
    0> [00:00:00.000,000] <error> app: Mkfs failed.
    0> [00:00:00.000,000] <info> app:
    0> Creating filesystem...
    0> [00:00:00.000,000] <error> app: Mkfs failed.
    0> [00:00:00.000,000] <info> app:
    0> Creating filesystem...
    0> [00:00:00.000,000] <error> app: Mkfs failed.
Parents
  • Hi,

    What board are you testing this on? You do need a board with external QSPI flash, such as the nRF52840 DK (PCA10056) for this example to work. You also need to power the board, and SW6 near the top right corner of the board should be in the "default" position.

    Regards,
    Terje

  • I want to make a bootloader program by simulating a usb flash drive. I just need to drag in.hex and.bin to upgrade the program. Do you have any official documents here?

  • Hi,

    I am afraid we do not have any documents describing how to do that. Our DFU solution using USB is the same solution as for BLE or UART, the only difference is that it uses serial over USB for transport layer. It does not use MSD. It is most likely possible to make a solution based on MSD, but that is not something we have looked into.

    Regards,
    Terje

Reply
  • Hi,

    I am afraid we do not have any documents describing how to do that. Our DFU solution using USB is the same solution as for BLE or UART, the only difference is that it uses serial over USB for transport layer. It does not use MSD. It is most likely possible to make a solution based on MSD, but that is not something we have looked into.

    Regards,
    Terje

Children
No Data